Overview
Slack workflows allow you to automate routine tasks and interactions within your Slack workspace. You can integrate Dust agents into these workflows. For example:- create a Slack workflow sending a message every day at 10a.m. in the #general channel:
@dust+highlights What have been the highlights since yesterday? - trigger a Dust agent in the #your-channel channel every time a member adds an emoji to a Slack message.
Setting up a Slack Workflow with a Dust agent
- Create a Slack workflow. This includes defining the workflow trigger, for example a scheduled time (such as daily at 10a.m.) or an action (such as adding an emoji to a message). You can find more details about creating a Slack workflow in Slack’s documentation.
- Connect the Dust Slack bot to your workspace. The bot must be connected before a workflow can summon Dust agents. If the bot is not connected, follow the Slack connection setup guide.
-
Allow the workflow in Dust. Workspace admins on credit-priced plans can manage workflow access themselves:
- Open Admin > Automations.
- Select the Slack workflows tab.
- Select Allow a workflow.
- Enter the exact sender name shown in Slack on the workflow’s messages. Spelling and capitalization must match.
- Select the Spaces the workflow can reach. The Company Space is always included; add any regular or project Spaces whose agents the workflow should be able to summon.
- Select Allow.
Plan availabilityThe self-serve Slack workflows tab is available to workspace admins on credit-priced plans. Legacy-plan workspaces continue using the existing support or Poke workflow for access management. -
Invoke @dust and the Dust Agent of your choice in the Slack workflow message. Specify which Dust agent to use in a workflow by including the agent’s name following this message format:
@dust +agentName. This ensures that the correct Dust agent responds to workflow-triggered messages.
Workflow access rules
- Access is granted per exact Slack workflow name. If you rename the workflow in Slack, allow the new name again.
- Access is scoped to the Spaces selected by the admin. If the workflow needs to use another Restricted Space or private Pod, update its allowed Spaces before running it.
- The workflow’s Slack sender must be able to run the workflow in Slack, and the Dust Slack bot must be connected to the workspace.