/recipe-skills:slack-recipesfrom recipe-skills
Generates valid Workato recipe JSON for Slack integrations using Workbot for Slack, covering slash commands, dialogs, modals, message posting, buttons, and channel management.
Ships in recipe-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
DEPENDENCY: Load the
workato-recipesbase skill first if not already loaded. This skill requires the base Workato knowledge for triggers, control flow, datapills, and recipe structure.
.recipe.json files to understand local patternstemplates/feedback-collection.json as referencetrigger-001, post-reply-002Before testing Workbot recipes, verify your Slack app is configured for your Workato environment:
coak_id parameter matches your OAuth profile IDWhen switching environments (e.g., trial → production), ALL Slack app URLs must be updated.
Example URLs (trial environment):
Redirect URL: https://app.trial.workato.com/oauth/callback
Events URL: https://app.trial.workato.com/slack_webhooks/event?coak_id=XXX
Actions URL: https://app.trial.workato.com/slack_webhooks/actions?coak_id=XXX
Data Source URL: https://app.trial.workato.com/slack_webhooks/data_source?coak_id=XXX
Required Slack Bot Token Scopes:
app_mentions:read, channels:read, chat:write, commandsfiles:read, files:write, groups.readim:history, im:write, mpim:readusers:read, users:read.emailRequired User Token Scopes:
users:read, users:read.emailThis skill provides Slack-specific knowledge for generating Workato recipes. It covers two Slack connectors:
| Connector | Provider | Actions | Trigger | Use Case |
|---|---|---|---|---|
| Workbot for Slack | slack_bot | 3 + adhoc | bot_command_v2 | Interactive bots, slash commands, dialogs, buttons |
| Slack (native) | slack | 9 | 2 triggers | Programmatic actions, button replies, channel management |
This skill extends the workato-recipes base skill.
Use this skill when building Workato recipes that:
Prerequisites:
workato-recipes base skill loadedAlways ask the user what slash command name to use. Slack reserves certain command names that cannot be used:
/feedback, /remind, /call, /dnd, /help, /invite, /leave, /me, /msg, /mute, /prefs, /search, /shortcuts, /status, /topic, /who
Before generating a recipe with a slash command, verify the name is available in the user's workspace or explicitly ask for their preferred command name.
Avoid common words as domain or scope values - they may conflict with existing Workbot functionality:
feedback, help, support, status, settings, admin, configUse unique, project-specific names instead:
shoe-request, myapp-feedback, project-onboardingslack_bot) when:slack) when:{
"keyword": "application",
"provider": "slack_bot",
"skip_validation": false,
"account_id": {
"zip_name": "my_workbot_account.connection.json",
"name": "My Workbot for Slack account",
"folder": "Connections"
}
}
The Workbot for Slack connector provides 4 built-in actions and 1 trigger.
| Name | Description |
|---|---|
bot_command_v2 | Trigger on slash commands, button clicks, or dialog submissions |
| Name | Description | Notes |
|---|---|---|
post_bot_reply_v2 | Reply to the triggering user in context | No channel ID needed |
post_bot_message | Post a message to any channel or DM | Requires channel ID |
open_bot_dialog | Open a dialog/modal to collect user input | Requires trigger_id from trigger context |
| Name | Description |
|---|---|
__adhoc_http_action | Direct HTTP call to Slack API endpoints (e.g., conversations.create, conversations.invite, users.info) |
Use __adhoc_http_action for Slack API operations not covered by the 4 native Workbot actions: channel management, user lookups, file operations, etc. See Adhoc HTTP Action below.
The primary trigger for Slack recipes is bot_command_v2:
{
"number": 0,
"provider": "slack_bot",
"name": "bot_command_v2",
"as": "trigger_001",
"keyword": "trigger",
"dynamicPickListSelection": {
"domain": "Slack"
},
"toggleCfg": {
"domain": true,
"name": false,
"scope": false
},
"input": {
"allow_dialog": "true",
"slash_command": {
"enable": "true",
"name": "/mycommand",
"first_reply": "Processing your request..."
},
"scope": "project",
"description": "Create a new project",
"dialog_title": "New Project",
"parameters": "[...]",
"hide_from_help": "false",
"name": "create",
"domain": "my-app"
}
}
The toggleCfg object controls whether fields use picklist selections or custom values:
| Field | true | false |
|---|---|---|
domain | Use picklist domain | Use custom domain value |
name | Use picklist action name | Use custom action name |
scope | Use picklist scope | Use custom scope value |
For most custom Workbot commands, use:
"toggleCfg": {
"domain": true,
"name": false,
"scope": false
}
Attribute order matters for Workbot triggers. Use this exact order:
allow_dialogslash_commandscopedescriptiondialog_titleparametershide_from_helpnamedomainIncorrect ordering can cause the recipe to fail validation or behave unexpectedly
### Trigger Input Fields
| Field | Required | Description |
|-------|----------|-------------|
| `domain` | Yes | App domain grouping (e.g., "my-app") |
| `name` | Yes | Command name within domain |
| `scope` | No | Command scope for organization |
| `description` | Yes | Help text shown to users |
| `allow_dialog` | No | Enable dialog/modal support ("true"/"false") |
| `dialog_title` | No | Title shown on dialog modal |
| `hide_from_help` | No | Hide from Workbot help command |
| `slash_command.enable` | No | Enable slash command ("true"/"false") |
| `slash_command.name` | No | Slash command (e.g., "/mycommand") |
| `slash_command.first_reply` | No | Immediate response before processing |
| `parameters` | No | JSON string defining dialog form fields |
### Parameters Format
Parameters define the dialog form fields as a JSON string.
#### Text Parameters (Simple)
```json
{
"name": "project_name",
"label": "Project Name",
"hint": "Enter the project name",
"optional": "false",
"control_type": "text"
}
{
"name": "comments",
"label": "Comments",
"hint": "Provide detailed feedback",
"optional": "false",
"control_type": "text-area"
}
Select parameters require ALL these fields or the dialog won't display correctly:
{
"name": "rating",
"label": "Rating",
"hint": "Rate from 1 to 5",
"optional": true,
"control_type": "select",
"pick_list": [
["1 - Poor", "1"],
["2 - Fair", "2"],
["3 - Good", "3"],
["4 - Very Good", "4"],
["5 - Excellent", "5"]
],
"type": "array",
"prompt": "true",
"dialog_data_source": "custom",
"options": "1 - Poor,2 - Fair,3 - Good,4 - Very Good,5 - Excellent",
"properties": []
}
Required fields for select parameters:
| Field | Required | Description |
|---|---|---|
name | Yes | Field identifier |
label | Yes | Display label |
control_type | Yes | Must be "select" |
pick_list | Yes | Array of [display, value] pairs |
type | Yes | Must be "array" |
prompt | Yes | Must be "true" (as string) |
dialog_data_source | Yes | Must be "custom" |
options | Yes | Comma-separated display values |
properties | Yes | Must be [] (empty array) |
Missing any of these fields will cause the dialog to fail silently.
"parameters": "[
{
\"name\": \"rating\",
\"label\": \"Rating\",
\"hint\": \"Rate from 1 to 5\",
\"optional\": true,
\"control_type\": \"select\",
\"pick_list\": [[\"1 - Poor\",\"1\"],[\"2 - Fair\",\"2\"],[\"3 - Good\",\"3\"]],
\"type\": \"array\",
\"prompt\": \"true\",
\"dialog_data_source\": \"custom\",
\"options\": \"1 - Poor,2 - Fair,3 - Good\",
\"properties\": []
},
{
\"name\": \"comments\",
\"label\": \"Comments\",
\"hint\": \"Provide details\",
\"optional\": \"false\",
\"control_type\": \"text-area\"
}
]"
| Control Type | Description | Extra Fields Required |
|---|---|---|
text | Single-line text input | None |
text-area | Multi-line text input | None |
select | Dropdown | type, prompt, options, properties, pick_list |
| Action | Use When | Channel Required? |
|---|---|---|
post_bot_reply_v2 | Simple response to triggering user | No - replies to trigger context |
post_bot_message | Post anywhere, including DMs | Yes - requires channel ID |
Use post_bot_reply_v2 for:
Use post_bot_message for:
Send a message to a channel or DM (requires channel ID):
{
"number": 1,
"provider": "slack_bot",
"name": "post_bot_message",
"as": "send_message",
"keyword": "action",
"input": {
"channel": "C1234567890",
"text": "Hello from Workbot!",
"message": {
"title": "Notification",
"attachment_text": "Here are the details..."
}
}
}
Send DM to triggering user:
"channel": "=_dp('{\"pill_type\":\"output\",\"provider\":\"slack_bot\",\"line\":\"trigger_001\",\"path\":[\"context\",\"user\"]}').gsub('\"','')"
Send a reply with interactive buttons:
{
"number": 1,
"provider": "slack_bot",
"name": "post_bot_reply_v2",
"as": "reply_with_buttons",
"keyword": "action",
"input": {
"message": {
"title": "Ready to proceed?",
"attachment_text": "Click a button to continue"
},
"attachment_buttons": [
{
"title": "Approve",
"bot_command": {
"zip_name": "Recipes/handle_approval.recipe.json",
"name": "Handle Approval",
"folder": "Recipes"
},
"params": "#{_dp('{\"pill_type\":\"output\",\"provider\":\"slack_bot\",\"line\":\"trigger_001\",\"path\":[\"context\",\"trigger_id\"]}')}"
},
{
"title": "Reject",
"bot_command": {
"zip_name": "Recipes/handle_rejection.recipe.json",
"name": "Handle Rejection",
"folder": "Recipes"
}
}
]
}
}
Open a dialog/modal to collect additional input:
{
"number": 1,
"provider": "slack_bot",
"name": "open_bot_dialog",
"as": "open_dialog",
"keyword": "action",
"input": {
"trigger_id": "#{_dp('{\"pill_type\":\"output\",\"provider\":\"slack_bot\",\"line\":\"trigger_001\",\"path\":[\"context\",\"trigger_id\"]}')}",
"title": "Enter Details",
"bot_command": {
"zip_name": "Recipes/process_dialog.recipe.json",
"name": "Process Dialog Submission",
"folder": "Recipes"
},
"elements": "=[{\"type\":\"text\",\"name\":\"field1\",\"label\":\"Field 1\",\"optional\":false}]"
}
}
Call Slack API endpoints directly:
{
"number": 1,
"provider": "slack_bot",
"name": "__adhoc_http_action",
"as": "create_channel",
"keyword": "action",
"input": {
"mnemonic": "Create channel",
"verb": "post",
"request_type": "json",
"response_type": "json",
"path": "conversations.create",
"input": {
"schema": "[{\"control_type\":\"text\",\"label\":\"Name\",\"type\":\"string\",\"name\":\"name\"}]",
"data": {
"name": "my-new-channel"
}
},
"output": "[{\"control_type\":\"text\",\"label\":\"Ok\",\"type\":\"boolean\",\"name\":\"ok\"},{\"properties\":[{\"control_type\":\"text\",\"label\":\"ID\",\"type\":\"string\",\"name\":\"id\"}],\"label\":\"Channel\",\"type\":\"object\",\"name\":\"channel\"}]"
}
}
Common Slack API paths:
conversations.create - Create a channelconversations.invite - Invite users to a channelconversations.list - List channelsusers.info - Get user information{
"keyword": "application",
"provider": "slack",
"skip_validation": false,
"account_id": {
"zip_name": "my_slack_account.connection.json",
"name": "My Slack account",
"folder": ""
}
}
The native Slack connector provides 9 actions and 2 triggers. See lint-rules.json for the authoritative list of valid action and trigger names.
new_event — Subscribe to Slack events (new messages, reactions, channel changes, etc.).button_action — Trigger when a user clicks a button posted via the native Slack connector.Messaging:
post_message_to_channel — Post a message to a channel. Supports threading via thread_ts.post_button_action_reply — Reply to a button action interaction.Channel management:
create_conversation — Create a new channel. Set private: "false" for public channels.archive_conversation / unarchive_conversation — Archive or unarchive a channel.set_conversation_purpose / set_conversation_topic — Set a channel's purpose or topic text.invite_user_to_conversation — Invite a user to a channel. Requires channel ID + user ID.Users:
get_user_by_email — Look up a Slack user by email address. Returns user ID, name, profile, role flags.See patterns/native-slack-actions.md for detailed examples and output fields.
"path": ["context", "user"]
"path": ["context", "trigger_id"]
"path": ["context", "channel"]
"path": ["parameters", "project_name"]
Although select parameters are defined with type: array, the runtime output is a STRING.
CORRECT - simple path:
"path": ["parameters", "rating"]
WRONG - causes "non array value" error:
"path": ["parameters", "rating", {"path_element_type": "current_index"}]
Do NOT use current_index or array iteration patterns with select parameter values. They return the selected value directly as a string
"path": ["id"]
"path": ["name"]
"path": ["profile", "email"]
"path": ["ts"]
"path": ["body", "channel", "id"]
"path": ["body", "ok"]
| Path | Description |
|---|---|
["context", "user"] | User ID who triggered the command |
["context", "channel"] | Channel where command was invoked |
["context", "trigger_id"] | Required for opening dialogs |
["context", "team"] | Slack workspace ID |
["parameters", "<name>"] | Dialog parameter values |
Minimal, validated recipe examples:
| Template | Description |
|---|---|
templates/slash-command-with-dialog.json | Slash command that collects input via dialog |
templates/button-interaction.json | Message with buttons that chain to other recipes |
templates/create-channel-invite-user.json | Create channel via API and invite user |
See patterns/workbot-triggers.md for complete trigger configuration.
Buttons can invoke other Workbot command recipes:
"bot_command": {
"zip_name": "Recipes/next_step.recipe.json",
"name": "Next Step Recipe",
"folder": "Recipes"
}
Slack channel names have restrictions. Sanitize user input:
"name": "=_dp('{...}').downcase.gsub(/[^a-z0-9]/, '-').gsub(/-+/, '-').gsub(/^-|-$/, '')[0..79]"
Use the user context as the channel:
"channel": "=_dp('{\"pill_type\":\"output\",\"provider\":\"slack_bot\",\"line\":\"trigger_001\",\"path\":[\"context\",\"user\"]}').gsub('\"','')"
See validation-checklist.md for Slack-specific validation, which references the base checklist in workato-recipes/validation-checklist.md.
| Mistake | Symptom | Fix |
|---|---|---|
Missing toggleCfg | Custom action names ignored | Add toggleCfg with name: false |
| Wrong input attribute order | Validation/runtime errors | Follow exact order documented above |
| Incomplete select params | Dialog doesn't display | Add ALL required fields: type, prompt, options, properties |
current_index on select | "non array value" error | Use simple path: ["parameters", "field"] |
| Reserved domain name | Conflicts with Workbot | Use unique names like myapp-feedback |
Using post_bot_message for replies | Requires channel lookup | Use post_bot_reply_v2 instead |
Missing dynamicPickListSelection | Provider lookup fails | Add { "domain": "Slack" } |
lint-rules.json (opens in a new tab)patterns/dialog-parameters.md (opens in a new tab)patterns/native-slack-actions.md (opens in a new tab)patterns/posting-messages.md (opens in a new tab)patterns/slack-api-reference.md (opens in a new tab)patterns/workbot-triggers.md (opens in a new tab)skill.yaml (opens in a new tab)slack_bot/lint-rules.json (opens in a new tab)templates/button-interaction.json (opens in a new tab)templates/create-channel-invite-user.json (opens in a new tab)templates/feedback-collection.json (opens in a new tab)templates/slash-command-with-dialog.json (opens in a new tab)validation-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/asana-recipesAsana integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Asana operations including task management, project organization, portfolio tracking, goal setting, team management, and workspace administration./datatable-recipesData Tables connector recipes for Workato. Covers triggers, CRUD actions, search, upsert, batch operations, UUID column mapping, and table reference objects for the internal workato_db_table connector./gmail-recipesGmail integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Gmail operations including sending emails, listing/searching messages, managing labels, and message details.npx claudepluginhub workato-devs/recipe-skills --plugin recipe-skillsOther plugins' skills for the same job