Use the familiar shadcn CLI with our custom registry to install workflow steps. The CLI handles everything automatically:
npx shadcn@latest add https://workflow-registry.vercel.app/r/send-slack-messageSet up the registry URL once in your config:
npx shadcn@latest init -u https://workflow-registry.vercel.appThen add steps easily:
npx shadcn@latest add send-slack-message send-emailYou can also manually copy step code from the website:
Visit the steps page and find the step you need.
Click on a step to view its details. Copy the code from the "Code" tab.
Create a new file in your steps/ directory and paste the code.
steps/send-slack-message.tsCheck the "Setup" tab for required dependencies and install them:
npm install @slack/web-apiAdd required environment variables to your .env file.
Here's the recommended project structure for workflows:
project-root/ ├── steps/ # Workflow steps │ ├── send-slack-message.ts │ ├── send-email.ts │ └── generate-ai-content.ts ├── workflows/ # Your workflows │ ├── onboarding.ts │ └── data-processing.ts ├── .env # Environment variables └── package.json
Most steps require environment variables for API keys and configuration. Here are some common ones:
SLACK_BOT_TOKEN=xoxb-...RESEND_API_KEY=re_...RESEND_FROM_EMAIL=noreply@example.comBLOB_READ_WRITE_TOKEN=vercel_blob_...Make sure you're using the full registry URL or have initialized the registry with npx shadcn@latest init -u https://workflow-registry.vercel.app
The shadcn CLI will automatically install dependencies. If it fails, install them manually from the step's "Setup" tab.
Make sure the workflow package is installed and you've imported FatalError where needed.