Skip to main content
Connect an AskTable agent to Slack so your team can ask data questions where they already work. People can mention the bot in a channel or message it directly, and the answer returns to Slack. AskTable connects through Slack’s Socket Mode. You do not need to expose a public callback URL.

Before you start

You need:
  • Permission to create and install an app in your Slack workspace. If your organization restricts app installation, ask a Slack workspace administrator to approve it.
  • An AskTable agent with its data sources and skills already configured.
One AskTable project can connect to one Slack workspace.

1. Create the Slack app

Open Slack apps, select Create New App, then choose From an app manifest. Select your workspace and paste this YAML manifest:
Review the settings, then select Create. You can change the app name and bot display name before creating the app. The requested permissions let the bot:
Keep messages_tab_enabled: true. Without it, people cannot send direct messages to the bot.
The manifest does not request channels:history or groups:history. AskTable cannot read unrelated channel conversations; as a result, every channel question must mention the bot.

2. Get the two tokens

First, open OAuth & Permissions and select Install to Workspace. Approve the requested permissions, then copy the Bot User OAuth Token. It starts with xoxb-. Next, open Basic Information → App-Level Tokens:
  1. Select Generate Token and Scopes.
  2. Enter a name for the token.
  3. Add the connections:write scope.
  4. Generate and copy the token. It starts with xapp-.
The Bot Token lets AskTable receive user details and send replies. The App Token opens the Socket Mode connection. You do not need a Signing Secret.
Treat both tokens as passwords. Do not include them in screenshots, support tickets, or chat messages. If a token is exposed, revoke it in Slack and update AskTable with the replacement.

3. Connect Slack in AskTable

Open the agent you want to connect, then select the Channel tab:
  1. Under Platform, select Slack.
  2. Enter the xoxb- token in Bot Token.
  3. Enter the xapp- token in App Token.
  4. Select Save.
AskTable checks both token prefixes before saving. After a successful save, Slack becomes the active platform for this agent. You can also adjust these settings:

4. Check the connection

The Channel card shows the current connection status: The status refreshes automatically every five seconds. Refresh only reloads the status; the Slack connection reconnects automatically when needed.
Connected confirms the Slack connection only. After sending a test question, check Latest message to confirm that AskTable received, processed, and replied to it.

5. Add the bot to a channel

The bot must be a member of a channel before it can receive mentions there. In the target channel, enter:
You can also open the channel settings and select Integrations → Add apps. Direct messages do not require an invitation.

6. Ask questions

In channels, mention the bot in every question, including follow-ups inside a thread. AskTable deliberately avoids permissions that would let it read the full channel history. A thread belongs to the person who started it. If someone else mentions the bot in that thread, AskTable asks them to start a new question in the channel. Multi-person direct messages are not supported.
Answers posted in a channel are visible to everyone in that channel. Use a direct message when the result should remain private.

Troubleshooting

Next steps