Skip to content
PynPyn

Add a custom bot

You want messages to come from @PeopleTeam rather than from the Pyn Bot or a person. A custom bot is a Slack app you create in your workspace from a manifest Pyn gives you; you paste its bot token into Pyn and it appears as a sender.

  • The Slack integration is Active under Settings > Integrations.
  • You, or a Slack workspace administrator working with you, can create apps at api.slack.com/apps.
The Installed integrations gallery showing the File Upload and Email tiles as Active.
Installed lists every connected integration; select the Slack tile to open its panel.
  1. In Pyn, open Settings in the left navigation, then Installed under Integrations, and select the Slack tile.

  2. Open the … menu and select Add custom bot.

  3. Expand Slack set up and select Copy manifest. The manifest requests channels:read, channels:write.invites, chat:write, groups:read, groups:write.invites and im:write for the bot.

  4. In Slack, go to api.slack.com/apps, select Create New App, then From a manifest. Choose the workspace, paste the manifest on the YAML tab and finish creating the app. Replace both occurrences of CHANGEME_Name with the bot’s name.

  5. Install the app to the workspace and, under Basic Information, set its display name, description and icon.

  6. Under OAuth & Permissions, copy the Bot User OAuth Token (it starts with xoxb-).

  7. Back in Pyn, paste it into Bot Token and select Add.

The bot appears under Settings > General > Senders with status Active and in the From list of Slack steps in Automations. If Pyn rejects the token, the dialog shows “We could not add the custom bot. Please check the token and try again.” or Slack’s own reason; check you copied the bot token, not the signing secret or an xoxp- user token.