Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Connect a Service to Slack

Connect a service to Slack so people can ask it questions where they already work, without building an integration yourself. Each service can have one Slack connection.


About Channels​

Channels let you make a service available to people, either in the tools they already work in or as a page they can try before you go live. You manage them on a service's Connect tab, which groups them into two sections:

  • Live channels: connect the service to the tools your people already work in. This section has a Slack row. An MCP row lets AI assistants call the service as a tool. For details, see Use Your Services as MCP Tools.
  • Prototypes: let people try the service and give feedback before you go live. This section has a Chat row: a chat page you share as a link with people who don't have platform access. The Chat row is hidden for a service with no published revision.

To use the service from n8n, open the Use it from your own tools section on the Connect tab, above the endpoint details. Click n8n, then click Copy workflow to copy an example workflow that's prefilled for the service. Paste it onto your n8n canvas and add your API key there. The section also links to the full setup guide. For details, see Use Haystack Enterprise Nodes in n8n.

Prerequisites​

Connect a Service to Slack​

You create a Slack app for the service, install it in your Slack workspace, and paste its credentials into the platform. The platform prepares the app's configuration for you, so you don't have to set it up by hand.

  1. In Haystack Enterprise Platform, click Gateway in the navigation and open the service.
  2. Click Connect.
  3. In the Live channels section, in the Slack row, click Connect.
  4. Open the link to create the Slack app. Slack opens in a new tab with the app configuration already filled in. Confirm the app creation in Slack.
  5. Install the app in your Slack workspace.
  6. In Slack, copy the app's bot token and signing secret.
    • The bot token starts with xoxb-. If you paste a user token (xoxp-) or an app token (xapp-), the form shows an error before anything is sent.
    • Extra spaces around either value are removed for you.
  7. Paste the bot token and the signing secret into the form.
  8. Click Connect.
  9. To check the connection, mention the Slack app in a channel where you added it and confirm the service replies.
info

Your credentials aren't saved until you click Connect and the connection succeeds. If you close the drawer with Cancel and click Connect in the Slack row again later, you continue with the same Slack app link.

Mention the Slack App in a Thread​

To get an answer about a discussion that's already underway, mention the Slack app in that thread. When someone mentions the app for the first time in the middle of a thread, the service receives more than the mention text. It gets the most recent earlier messages in the thread (up to a fixed limit), oldest first, then the link to the thread, then the mention text. This lets the service act on what the mention refers to, for example "summarize this" in a thread that already has a discussion.

This applies only to services that use a pipeline deployed on the platform:

  • Mentions at the top level of a channel send only the mention text.
  • Mentions in a thread where the Slack app has already replied send only the mention text, because the service keeps the conversation history of that thread.
  • If Slack doesn't return the earlier messages, the service receives only the mention text.
  • If Slack doesn't return the thread link, the service receives the earlier messages without it.

Disconnect Slack from a Service​

Disconnect Slack when you no longer want the service to answer in your Slack workspace.

  1. Open the service and click Connect.
  2. In the Slack row, click Disconnect.
  3. Confirm the action in the confirmation prompt.

What To Do Next​

  • Troubleshoot Services if the Slack row shows an error, its actions are disabled, or Slack rejects the token.
  • Gateway to learn how services work.