Connect
Slack: start tasks and approve changes from Slack
TL;DR
The Slack bot turns a mention or a direct message into an Agent Planners task in the workspace the Slack is connected to. The task runs as the member whose Slack e-mail matches their Agent Planners sign-in, with that member's role, accounts, Forbidden Rules and credits. Progress, approval cards and the result come back in the same thread.
Step 1 — Prepare the Slack app (a Slack workspace admin, once)
- 1Open api.slack.com/apps → your Agent Planners app → OAuth & Permissions. Under Redirect URLs add
https://www.agentplanners.com/api/integrations/slack/callback. - 2Under Bot Token Scopes add:
app_mentions:read,chat:write,files:read,files:write,im:history,users:read,users:read.email. - 3Manage Distribution → tick the checklist → Activate Public Distribution. Without it, installing into any Slack workspace other than the one the app was created in fails with
invalid_team_for_non_distributed_app. - 4Event Subscriptions → On → Request URL
https://www.agentplanners.com/api/webhooks/slack(it shows Verified) → Subscribe to bot events:app_mention,message.im,app_uninstalled,tokens_revoked. - 5Interactivity & Shortcuts → On → Request URL
https://www.agentplanners.com/api/webhooks/slack/interactivity. Without it the Approve / Reject buttons do nothing. - 6App Home → tick “Allow users to send Slash commands and messages from the messages tab”, so people can DM the bot.
Step 2 — Connect it to your Agent Planners workspace
- 1In Agent Planners, an admin or editor opens Integrations → Slack and clicks Add to Slack.
- 2Slack shows the permissions; pick the Slack workspace and click Allow. You come back to Integrations with the Slack workspace listed on the card.

Step 3 — Ask for something in a direct message
- 1In Slack, open Apps → Agent Planners → Messages and write what you want, for example “Read-only: which 3 Google Ads accounts spent the most in the last 7 days?”.
- 2The bot answers in a thread right away (“On it…”) with a link to follow the task in Agent Planners.

Step 4 — Read the result in the thread
- 1When the task finishes, the report is posted in the same thread — headings, bold text and tables formatted for Slack — with a link to the full run (charts, files, every step).
- 2Reply in the thread to follow up (“just the Meta numbers, please”): it continues the same task.

Step 5 — Mention it in a channel and approve a change
- 1Add the bot to a channel (
/invite @Agent Planners), then mention it: “@Agent Planners create a schedule named … every Monday at 9:00”. - 2A change waits for a person: the thread gets a card with what would change and Approve / Reject. Only an admin or editor of the connected workspace can decide (an admin for access changes); the decision is recorded once.

Install it
- An admin or editor opens Integrations → Slack and clicks Add to Slack, then approves the permissions in Slack.
- One Slack workspace connects to ONE Agent Planners workspace. Connecting it to a second one is refused until an admin of the first disconnects it.
- Disconnect on the card deletes the stored token and revokes it at Slack. Removing the app in Slack does the same.
Use it
- Mention the bot in a channel it was added to, or send it a direct message, with what you want done. A new thread is a new task.
- Reply in the thread to add to the task (a correction, a follow-up). While a run is in progress the message waits until it finishes.
- Attach files (up to 3, 10 MB each). They are saved to the Asset Library and given to the task; a file that could not be read is named.
- Only people whose Slack e-mail is confirmed and matches a member of the workspace can use the bot, and only people of the Slack workspace it is installed in — not people of another organization in a shared (Slack Connect) channel. Guests and people who are not members get a short refusal and nothing runs.
- Only these file types are saved: images, videos, audio, PDF, ZIP, CSV, text, Markdown, JSON, Word, Excel and PowerPoint. Other files (for example HTML or SVG) are named as not attached.
- Everyone in the channel sees the thread. Progress, approval cards and the result are posted to the thread, so anyone who can read that channel — guests and people of another organization in a shared channel included — can read them. Approval cards withhold personal values and mask e-mail addresses (the approval e-mail's rules); the result is the task's report. Use a direct message for work that should stay between you and the bot.
- A task started from Slack never returns people's names or contact details from a CRM or store, and never stops mid-run to ask a question — reply in the thread to correct it.
Approvals
- A change that waits for a person posts a card with Approve and Reject in the thread — the same changes that wait in the app.
- Only an admin or editor of the workspace can decide from Slack (a change to who can access an account: an admin). Members open the task in the app.
- A click is recorded once. A card for a step that was already decided, or is no longer waiting, says so and changes nothing.
Permissions the app asks for
app_mentions:readchat:writefiles:readfiles:writeim:historyusers:readusers:read.email- Events:
app_mention,message.im,app_uninstalled,tokens_revoked. - Optional (not requested):
channels:history— follow a thread in a public channel without being mentioned again (message.channels event);groups:history— the same in private channels the bot was invited to (message.groups event);im:write— start a DM with a person the bot has never talked to (not needed to answer a DM);commands— a /agentplanners slash command (not built).
If the install fails
- invalid_team_for_non_distributed_app — the Slack app installs only in the Slack workspace it was created in. In the app's settings open Manage Distribution and press Activate Public Distribution (this does not list it in the Slack App Directory), or install from that workspace.
- invalid_client_id or bad_client_secret — the Client ID or Client Secret stored for the deployment does not match the app's App Credentials page; copy them again (no spaces or line ends) and redeploy.
- Slack did not return a bot token — the install was approved without the bot scopes; add them under OAuth & Permissions and install again.
- Events or buttons do nothing — check that Event Subscriptions points to
https://www.agentplanners.com/api/webhooks/slack, Interactivity tohttps://www.agentplanners.com/api/webhooks/slack/interactivity, and that the Signing Secret on the deployment is the app's Signing Secret (a wrong one makes every request refused).
What is stored
- The bot token, encrypted (AES-256-GCM), per Slack workspace — never shown in the app or sent to the browser.
- The thread a task came from, so replies and results go back to it. Event ids are kept for two days so a retried event is processed once.
- Every install, disconnect, task, refusal and Slack approval is in the audit log.