Skip to main content

Slack Message Trigger

Jake Rosenthal avatar
Written by Jake Rosenthal
Updated over a week ago

How to set up and use Slack Message Trigger

Run the workflow when a message is posted in a Slack channel. Follow these steps:

*For more information on the integration needed, visit the related article in the Integrations collection.

  1. Add a Slack Message Trigger: Create a workflow with a Slack Message Trigger, use an existing workflow with a Slack Message Trigger, or change an existing workflow's trigger type to a Slack Message Trigger.

  2. Add Slack connection: If you haven't already, connect your Slack account to Cassidy.

  3. Choose the Message Event Type: Select either "Message in Channel" to run the workflow when a message is posted in a Slack channel, or "Direct Message" to trigger the workflow when a direct message is sent to Cassidy.

  4. Select the Channel (if Message in Channel): If you chose "Message in Channel", select the Slack channel where you want the trigger to listen for messages.


    ​*Private channels will only be visible once Cassidy has been added to them. In the desired channel, send: /invite @Cassidy

  5. Reference the Slack variables: In the rest of your workflow, you can use the following variables from the Slack Message Trigger:

    • Message Contents: The content of the message posted in Slack

    • Message with History: Full conversation history from the Slack channel, including previous messages and responses from Cassidy and other users

    • Message with Thread History: Thread-specific conversation history if the message is part of a thread

    • Message Attachments: Any files or attachments included with the message can be passed through to your workflow

  6. Activate the trigger: In the Slack Message Trigger block, click the toggle switch to turn it on.

Did this answer your question?