Connect Slack Bot
1
Start the connection
In a session, click Slack in the Chat with me from an app you already use banner. Or go to Settings → Integrations, find Slack Bot, and click Connect.
2
Approve in Slack
Slack opens in a new tab. Pick the workspace and approve the Script.it app. If Script.it asks which permissions to grant, the ones messaging needs are always included.
3
Open your DM
Back in Script.it, click Slack in the banner again to open your direct-message conversation with the Script.it app. You can also find it under your apps in Slack.
Direct messages
Message the Script.it app as you’d message a person. While the agent works, Slack shows that Script.it is on it… in the thread. Each Slack thread is one conversation, and one session in the app:- A new top-level message starts a new session.
- A reply in its thread continues that session.
- The agent always answers in the thread, so the conversation stays in one place.
Mentions in a channel
@mention Script.it in a channel to ask your agent something in front of the team. Add the app to the channel if it isn’t there yet.- The agent runs in your sandbox, with your integrations, as it does for a direct message.
- Its answer posts in the thread you mentioned it in, where everyone in the channel can read it. Keep that in mind before asking it to look something up in your private tools.
- One thread is one session. Mention it again in the same thread to continue.
A mention in a channel can’t answer a run that’s waiting for you, because anyone in the channel can post in that thread. Reply to the agent’s direct message instead. See Approvals and waits.
Files and formatting
- Send files in a DM, with or without a message. The agent opens them when it needs them.
- The agent can upload files into the thread with its reply.
- The agent writes in Slack’s own formatting, so bold text, links and code show up as Slack displays them.
Account and sharing
Slack Bot belongs to the account you connected it in, Personal or an organization. Conversations run there and use that account’s credits. See Ways to reach your agent. Scripts can also use your Slack Bot connection to post as the bot. You can share the connection with a workspace so its scripts post as the bot too. Direct messages and mentions are never shared: they reach only the agent of the person who sends them, so teammates connect Slack Bot for themselves.Pause or disconnect
- To pause Slack, turn off the Slack DMs or Slack Mentions trigger. See Manage triggers.
- To disconnect, go to Settings → Integrations, open the Slack Bot row’s ⋮ menu, and select Disconnect.
Not to be confused with
- Slack (Personal) is a separate integration that lets scripts act in Slack as you. It doesn’t let you message your agent.
- A Slack bot that answers other people — customers or a whole team — uses your own Slack app and an External Agent. See Agents.