Slack is where your team talks. With HostWebhook you can start a flow when someone mentions the bot, posts a message, reacts to one, shares a file, or runs your slash command, and send, read and react to messages from a flow. You add the app to your workspace on Slack's own page: nothing to copy and no keys.
You can start from Slack or from HostWebhook.
You can add HostWebhook to Slack from its page in the Slack Marketplace, or from HostWebhook, in Settings → Credentials. Both end in the same place: a Slack credential in your account.
Connect your Slack workspace
From HostWebhook. Click Settings in the left sidebar, then Credentials, and start a new credential. Choose Slack, give it a name, like My Slack, and click Add to Slack. Slack opens: pick your workspace and approve the HostWebhook app. A Slack admin may have to approve it first.
From the Slack Marketplace. Click Add to Slack on HostWebhook's page, pick your workspace and approve it. Slack sends you back to HostWebhook. Sign in, or create your account: the workspace is connected as soon as you do. If you have to confirm your email first, sign in afterwards and open the same page again within one hour: it waits for you in the same browser.
Use the same browser.
The installation is tied to the browser where you came back from Slack. If you started in one browser and finished in another, add HostWebhook to Slack again.
HostWebhook asks Slack for 19 permissions, the least it needs. This is what each one is for.
| Permission | What HostWebhook does with it |
|---|---|
app_mentions:read | Starts your flow when someone mentions the bot |
channels:history, groups:history | Reads messages in the public and private channels the bot is in: starts flows on new messages, and reads a message or thread that a flow picked |
channels:read, groups:read | Lists channels so you can pick one |
channels:join | Joins a public channel only when you press Add bot for it |
channels:manage, groups:write | Creates a channel or invites people, when a flow says so |
chat:write | Posts the messages your flows send |
chat:write.public | Posts in a public channel you picked without joining it |
commands | Starts your flow from a slash command |
files:read, files:write | Starts a flow when a file is shared, and uploads a file from a flow |
im:write | Sends the direct message a flow defines |
reactions:read, reactions:write | Starts a flow on a reaction, and adds or removes reactions |
users:read, users:read.email | Lets you pick people, and matches a member with the same person in your other tools by email |
team.billing:read | Tells if the workspace is on the free plan, so a free workspace never shows history older than 90 days |
HostWebhook doesn't read direct messages, and it only uses a permission when a flow you built needs it.
Creating and changing members is separate.
HostWebhook's app doesn't ask Slack to create or change members: Slack doesn't allow that kind of permission in an app from its Marketplace. If you need it, you make a small app of your own in your workspace: see Manage users in step 03. Leave it out if you don't.
Reconnect to get new permissions.
Slack grants permissions when the app is added. If HostWebhook starts asking for one more, a credential that is already connected needs Reconnect, from its page.
Add a Slack node
In Flows, add a Slack node and open it. Pick your credential under Slack account, then choose how the node works under Mode: Single operation runs the operation you choose, and AI toolkit lets an AI node use Slack for you.
Choose what it does
Open Operation and pick one. They are grouped like this:
| Group | Operations |
|---|---|
| Messages | Send message, Update message, Delete message, Send ephemeral, Schedule message, Get message |
| Channels | List channels, Get channel history, Get thread replies, Create channel, Invite to channel |
| Reactions | Add reaction, Remove reaction |
| Users | List users, Get user info |
| Files | Upload file |
| Manage users | Update profile, Create user, Update user, Delete user (only with a Slack app of your own, below) |
Manage users: use a Slack app of your own. These four operations run with an app that you make in your own Slack workspace, so HostWebhook's own Slack app never asks for the permission to manage your members. The token you paste is kept encrypted and used only for these four operations; uninstall your app in Slack to take it back. It takes five minutes:
- Go to api.slack.com/apps, click Create New App, choose From scratch, give it a name and pick your workspace.
- Open OAuth & Permissions. Under User Token Scopes, add
admin(Create user, Update user and Delete user) andusers.profile:write(Update profile). - Click Install to Workspace. Do it signed in as a Slack Owner or Admin.
- Copy the User OAuth Token. It starts with
xoxp-. - In HostWebhook, open Settings, then Credentials, and start a new credential. Choose Slack app of your own, give it a name and paste the token. HostWebhook checks it with Slack before it saves it.
- In the Slack node, pick that credential under Slack account and choose one of the four operations. The other operations need the workspace you connected with Add to Slack.
Create, Update and Delete user need Slack Business+ or Enterprise.
They use Slack's SCIM API, which only exists on those plans. Update profile changes another member's profile only on a paid plan, as an Admin. Delete user deactivates the member, and an Owner can't be deactivated.
Slack limits how much you can read.
HostWebhook is not in the Slack Marketplace yet, so Slack lets it read the history of a channel or a thread only once a minute per workspace and up to 15 messages per call. Get message, Get channel history and Get thread replies ask for 15 at most. If you call them again too soon, the node says so, with how many seconds to wait (Retry-After).
Free workspaces show 90 days.
On Slack's free plan only the last 90 days of messages are visible. HostWebhook never shows anything older from a free workspace: an older message says it is not available, and a history or thread starts 90 days back at most.
Send a message
Pick Send message, choose the Channel, and write the Text. You can use data from earlier steps, like {{payload.name}}. Under Thread, a message ts replies inside a thread.
The bot can post to a public channel without joining it. To read, react or listen in a channel, the bot has to be in it: press Add bot next to the channel, or type /invite @HostWebhook in the channel. For a private channel, only /invite @HostWebhook works.
Update message and Delete message only work on messages the bot posted itself, and delete them one at a time.
Start a flow from Slack
Add a Slack trigger. Pick your credential, then the Event Trigger:
| Event | When the flow starts |
|---|---|
| Messages | A message is posted in a channel the bot is in |
| Mentions | Someone @mentions the bot |
| Reactions added / removed | Someone adds or takes back an emoji reaction |
| Channel created | A new channel is added to the workspace |
| Member joined | Someone joins a channel |
| File shared | A file is uploaded or shared in a channel the bot is in |
Under Channels you can limit the trigger to some channels. Turn on Ignore bot messages to skip what bots post, and Slash commands & interactivity to start the flow from a slash command. Click Apply changes and the trigger is live.
Slash commands. Type the command in Slack, like /hostwebhook order 123: the text after it goes to your flow. Type /hostwebhook help and Slack shows you, and only you, what the command does. That message does not start the flow.
Let an AI node use Slack (optional)
Set the Slack node to AI toolkit and connect it to an AI node. The AI node picks the operation, the channel and the text on each call. You choose which operations it can use.
Nothing that changes members is on by default: Update profile, Create user and Update user appear blocked until you turn them on. Delete user is never available to an AI: it only runs from the Slack node in a flow that a person built.
Disconnect Slack (optional)
To remove HostWebhook from your workspace, use Slack: in Apps, open HostWebhook and remove it. HostWebhook hears about it and deletes the connection, the Slack triggers and what they and the Slack nodes saved. The flows stay, with their Slack nodes empty and without a credential.
To disconnect without touching Slack, delete the credential in Settings → Credentials. The Slack triggers that used it pause. The next morning, and every morning after, HostWebhook empties what the Slack nodes and triggers without a credential saved: their last output and the data you pinned on them. The nodes and the triggers stay, empty, in your flows.
If something goes wrong, write to support@hostwebhook.com. We reply within 24 hours, every day.