d25d482dc2
Publish CLI Package / publish-npm (push) Waiting to run
Publish Python SDK / publish-pypi (push) Waiting to run
Publish TypeScript SDK / publish-npm (push) Waiting to run
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
76 lines
2.7 KiB
TypeScript
76 lines
2.7 KiB
TypeScript
import { BookOpen, Table } from '@sim/emcn/icons'
|
|
import { RssIcon } from '@/components/icons'
|
|
import type { BlockConfig, BlockMeta } from '@/blocks/types'
|
|
import { IntegrationType } from '@/blocks/types'
|
|
import { getTrigger } from '@/triggers'
|
|
|
|
export const RssBlock: BlockConfig = {
|
|
type: 'rss',
|
|
name: 'RSS Feed',
|
|
description: 'Monitor RSS feeds and trigger workflows when new items are published',
|
|
longDescription:
|
|
'Subscribe to any RSS or Atom feed and automatically trigger your workflow when new content is published. Perfect for monitoring blogs, news sites, podcasts, and any content that publishes an RSS feed.',
|
|
category: 'triggers',
|
|
integrationType: IntegrationType.Search,
|
|
bgColor: '#F97316',
|
|
icon: RssIcon,
|
|
triggerAllowed: true,
|
|
docsLink: 'https://docs.sim.ai/workflows/triggers/rss',
|
|
|
|
subBlocks: [...getTrigger('rss_poller').subBlocks],
|
|
|
|
tools: {
|
|
access: [], // Trigger-only for now
|
|
},
|
|
|
|
inputs: {},
|
|
|
|
outputs: {
|
|
title: { type: 'string', description: 'Item title' },
|
|
link: { type: 'string', description: 'Item link' },
|
|
pubDate: { type: 'string', description: 'Publication date' },
|
|
item: { type: 'json', description: 'Raw item object with all fields' },
|
|
feed: { type: 'json', description: 'Raw feed object with all fields' },
|
|
},
|
|
|
|
triggers: {
|
|
enabled: true,
|
|
available: ['rss_poller'],
|
|
},
|
|
}
|
|
|
|
export const RssBlockMeta = {
|
|
tags: ['automation', 'content-management'],
|
|
templates: [
|
|
{
|
|
icon: RssIcon,
|
|
title: 'RSS post to Slack',
|
|
prompt:
|
|
'Build a workflow that triggers when a new item is published in an RSS feed, writes a one-line summary of the item with an agent, and posts the title, summary, and link to a Slack channel.',
|
|
modules: ['agent', 'workflows'],
|
|
category: 'marketing',
|
|
tags: ['content', 'automation'],
|
|
alsoIntegrations: ['slack'],
|
|
},
|
|
{
|
|
icon: Table,
|
|
title: 'RSS feed to content table',
|
|
prompt:
|
|
'Create a workflow that triggers on each new RSS feed item, extracts the title, link, and publish date, tags the topic with an agent, and appends a row to a content tracking table.',
|
|
modules: ['tables', 'agent', 'workflows'],
|
|
category: 'marketing',
|
|
tags: ['content', 'automation'],
|
|
},
|
|
{
|
|
icon: BookOpen,
|
|
title: 'Competitor blog watcher',
|
|
prompt:
|
|
'Build a workflow that triggers when a competitor publishes a new RSS item, summarizes the post and flags anything relevant to our roadmap with an agent, and emails the brief to the team.',
|
|
modules: ['agent', 'workflows'],
|
|
category: 'marketing',
|
|
tags: ['content', 'monitoring'],
|
|
alsoIntegrations: ['gmail'],
|
|
},
|
|
],
|
|
} as const satisfies BlockMeta
|