banner



How To Add A Bot To A Slack Channel

To setup Slack every bit a channel, you must associate the bot with a Slack app. Adding the Slack channel to your Kore.ai bot allows end-users of your bot to interact with your bot using their Slack accounts.

  1. Create a Slack App – Create and configure a new app in Slack, and and then re-create app data from Kore.ai bot builder into the Slack app configuration for the bot proper name and Redirect URL.
  2. Re-create Authorization Details – Copy app authorization details from Slack to the bot builder Slack channel Become App Details tab.
  3. Create a Bot User in Slack – In Slack, add a bot username to identify your bot.
  4. Enable the Channel – In Bot Builder, save the channel settings.

Add together Slack Channel to a Bot

To complete this procedure, yous must already have a Slack business relationship and be a member of a Slack team.

  1. Nether the Bots department of the bot builder, click the bot to which you lot want to add the Slack channel.
  2. On the Channels tab, click the Slack icon. The Slack Channel page is displayed.
  3. In a new browser tab, Login to the Slack programmer portal and go to the Apps section https://api.slack.com/apps. If this is your first app, click Create an App and if you already have some apps, then click Create New App.
  4. On the Create App window, enter App Name and select a team from Development Slack Team drop-downwardly list. Apply your bot name equally the App Name.
  5. After you lot enter the required information, click Create App. Slack will now create a new app and you are redirected to Bones Information section of the new app.
  6. Go to OAuth & Permissions tab and click Add a new Redirect URL. Re-create the Redirect URL provided in the Configurations tab of Slack aqueduct folio and enter in the Redirect URLs field.
  7. Click Add > Save URLs.

  8. Keep to the Bot Token Scopes department nether the 'Scopes' section.
  9. Add 'incoming-webhook' and 'conversation:write' scopes.
  10. If you would like your users to send attachments to your bot, then select the 'files:write' telescopic
  11. If you would similar to send Proactive Notifications to your users on Slack, and so select the users:read, users:read.e-mail, team:read scopes
  12. In the OAuth & Permissions tab, navigate to the OAuth Tokens & Redirect URLs section, and select the Install to Workspace option. Cull the required Workspace and complete the procedure.
    Optionally, if you would similar to transport Proactive Notifications to your users on Slack, re-create the 'Bot User OAuth Token' from the 'OAuth Tokens for Your Squad' section and provide information technology in the Configurations tab of this page.
  13. To enable Interactive Components, go to the b department and enable Interactivity. Re-create the Webhook URL provided in the Configurations tab of this page and enter it in Asking URL field.
  14. Click Save Changes.
  15. Go to the Event Subscriptions department and actuate the Enable Events option.
    • Copy the Webhook URL provided in the Configurations tab of Slack Channel page and enter information technology in the Request URL field.
    • In the Subscribe to Bot Events department, add together app_mention, message_channels, and message_im events.
    • In the Subscribe to Workspace Events section, add message_im result.
    • Click Save Changes.

  16. Navigate to the App Home section and under Show tabs. Enable the Messages Tab and too enable the Allow users to send Slash commands and messages from the letters tab. This is required to allow your users to directly interact with the app from the Letters tab.
  17. Go to the Basic Information department and curl downward to App Credentials department. Capture the values of Client ID, Customer Undercover, and Verification Token fields and provide them in the Configurations tab of the Slack Channel page.
  18. If you want to enable the public distribution of your app on Slack, you must proceed with the following steps. Go to the Manage Distribution section and click on Remove Hard Coded Data.
  19. Select the checkbox I've reviewed and removed any hard-coded information and click Activate Public Distribution.

  20. Get to the Configurations tab to review and consummate the channel setup.

The Successfully added Slack channel message is displayed at the peak of the Bot Builder Homepage. In Slack, information technology is optional to submit your app to the Slack App Directory.

Edit Slack Channel

To edit the Slack aqueduct, follow the beneath steps:

  1. Hover over the channel and click to modify. Y'all can make necessary updates to your aqueduct configurations and relieve them.
  2. You can also disable or delete the channel data past clicking the Settings icon.
  3. Select one of the following commands to alter the channel:
  • Disable/Enable – Click Disable to temporarily disable the apply of the Slack channel for your bot. To enable the utilise of the Slack, click Enable.
  • Delete – Click Delete, and then click OK in the Delete Confirmation dialog to permanently delete the bot channel configuration.

Warning: This functioning is permanent, and cannot be undone.

How To Add A Bot To A Slack Channel,

Source: https://developer.kore.ai/v9-1/docs/bots/channel-enablement/adding-the-slack-channel/

Posted by: johnstonyoulle.blogspot.com

0 Response to "How To Add A Bot To A Slack Channel"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel