Skip to content

How to configure Slack Bot

Integrating Slack with Mindflow allows you to receive notifications, share updates, and trigger actions directly within your Slack workspace, improving collaboration and efficiency.

Before you start, make sure you:

  • Have an active Slack account.
  • Have admin access to your Slack workspace (or request permission from your admin).
  • Are logged into your Mindflow account.
  1. Go to the Slack Developer portal: https://api.slack.com/apps.

  2. Click on Create new app.

    • Choose From scratch.
    • Give it a name (e.g., Mindflow).
    • Select your workspace.

    Select your workspace

👉 At this stage, you have a “blank” app. You still need to assign permissions and generate a token.

Slack uses scopes (specific permissions).

To add them:

  1. On your app page, go to OAuth & Permissions.

  2. Scroll down to Scopes → add the required scopes under Bot Token Scopes.

    Scroll down scopes add required scopes

  1. Still in OAuth & Permissions, click Install App to <Workspace>.
  2. Accept the permissions.

👉 You will return to the OAuth page. There you will see:

  • Bot User OAuth Token → starts with xoxb-... → this is the API key to paste in Mindflow.
  • User OAuth Token → xoxp-..., used in some cases to act “as a user.”

You can now copy the Bot User OAuth Token to this same tab.

User oauth token

Reference: Slack Web API Authentication.

  1. Copy your Bot User OAuth Token (xoxb-…).

  2. In your environment, create a credential for Slack Web.

  3. Set Credential type to HTTP Bearer Token.

  4. Paste the raw bot token into the Token field (do not add a Bearer prefix).

    Create Slack HTTP Bearer Token credential

Mindflow stores the token securely and sends Authorization: Bearer … on requests automatically — you do not need to configure headers.


Now that we have our Bot installed and have established authentication, let’s shift our focus to triggers. Slack provides the option to create slash commands that trigger webhooks. Let’s learn how to create a command that triggers a straightforward reply in a public channel.

  1. Go to the Slash commands tab and click on Create New Command

    Go slash commands tab click create

  2. Before filling in the required command fields, go to the flow you wish to trigger with the command, choose the **Trigger**in the ****Trigger tab and copy the URL of Asynchronous.

    Before filling required command fields go

  3. Fill in the required fields, paste the webhook in the Request URL field and click on the Save button.

    Fill required fields paste webhook request

  4. Now go back to your target flow, access the steps menu and add Slack’s Sends a message to a channel action.

    Now go back your target flow

  5. Go to your Slack space, right-click on the channel where you want the bot to respond, select Show channel information and copy the Channel ID

    Go your slack space right click

  6. We’re now going to write the message that the bot will send in response to our slash command. Go to app.slack.com/block-kit-builder/ and click on Templates.

    Were now going write message bot

  7. Select the first template by clicking on Use Message Template and copy the configuration in square brackets.

    Select first template clicking use message

  8. Go back to your flow and paste your Slack channel id in the Channels field and the message configuration in the Blocks field.

    Go back your flow paste your

You’ve now set up your flow and your Slack order. Now it’s time to test and deploy your flow!

  1. Go to your Slack channel and write /test

    Go your slack channel write test

  2. Congratulations, your flow has worked successfully and sent you the template message you set up.

    Congratulations your flow has worked