{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/channels/slack/slack/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"8cf65268-0125-524c-a433-486ff96b5b79","excerpt":"Slack as an incoming channel To use slack as an incoming channel: Create and configure an application. Create a channel. Connect the bot. Test the bot. Create…","html":"<h1>Slack as an incoming channel</h1>\n<hr>\n<p>To use slack as an incoming channel:</p>\n<ul>\n<li><a href=\"#Create-and-configure-an-application\">Create and configure an application</a>.</li>\n<li><a href=\"#Creating-a-channel\">Create a channel</a>.</li>\n<li><a href=\"#Connecting-the-bot\">Connect the bot</a>.</li>\n<li><a href=\"#Testing-the-bot\">Test the bot</a>.</li>\n</ul>\n</br>\n<h4>Create and configure an application</h4>\n<p>Create an application in Slack by following the <a href=\"https://api.slack.com/apps\" target=\"_blank\" rel=\"noopener noreferrer\">instructions</a>.</p>\n<p class='warn'>In the future, using the application, we will get a token that will allow us to work with the <a href=https://api.slack.com/ target=\"_blank\" rel=\"noopener noreferrer\">slack API</a>.</p>\n<p>Next, in the <em>Add features and functionality</em> section, select the category *<em>Bots</em>.</p>\n<p>Configure the application:</p>\n<ol>\n<li>Click the <em>OAuth &#x26; Permissions</em> tab.</li>\n</ol>\n<p>Here, in the section <em>Scopes</em>, set the following parameters:</p>\n<ul>\n<li>For <em>Bot Token Scopes</em> - <code class=\"language-text\">chat:write</code>, <code class=\"language-text\">im:history</code>, <code class=\"language-text\">users.profile:read</code>.</li>\n<li>For <em>User Token Scopes</em> - <code class=\"language-text\">im:history</code>, <code class=\"language-text\">im:read</code>, <code class=\"language-text\">im:write</code>.</li>\n</ul>\n<ol start=\"2\">\n<li>Click on the <em>App Home</em> tab.</li>\n</ol>\n<p>Under <em>How Your App Displays</em>, press <em>Edit</em>:</p>\n<ul>\n<li>Enter in the <em>Display name</em> field the name of the bot that will be displayed for users.</li>\n<li>Enter the default user name in the <em>Default username</em> field.</li>\n<li>Move the <em>Always Show My Bot as Online</em> switch to the active position. Your bot will now always be displayed in online status.</li>\n</ul>\n<ol start=\"3\">\n<li>\n<p>Click on the <em>Outh &#x26; Permissions</em> tab. Click <em>Install App to Workspace</em> to publish the application. Here, copy the tokens from the <em>OAuth Access Token</em> and <em>Bot User OAuth Access Token</em> fields.</p>\n</li>\n<li>\n<p>Click on the <em>Basic Information</em> tab. Copy the verification token from the <em>Verification Token</em> field.</p>\n</li>\n</ol>\n<p class='warn'>The copied tokens will be needed to form the configuration of a channel.</p>\n</br>\n<h4>Creating a channel</h4>\n<p>On the control panel click on <em>Channels</em> > <em>Incoming</em> > <em>Create channel</em>. In the section <em>Messaging and social networks</em> select <em>Slack</em>.</p>\n<p>Fill in the fields:</p>\n<ul>\n<li><em>Name</em> — enter a name for the channel or leave it as default.</li>\n<li><em>Access token</em> — paste your access key copied from the <em>Bot User OAuth Access Token</em> field.</li>\n<li><em>Verification token</em> — paste your access key copied from the <em>Verification Token</em> field.</li>\n<li><em>Application token</em> — paste your access key copied from the <em>OAuth Access Token</em> field.</li>\n<li><em>Branch</em> — specify the branch of the project that you want to deploy in the channel, <code class=\"language-text\">master</code> by default.</li>\n<li><em>Agent</em> — select customer engagement platform or leave this field empty..</li>\n<li><em>Deploy</em> — select <em>Automatic</em> (after each saving of the changes made to the project) or <em>Manual</em> (using the <em>Publish</em> button in the line with the description of the channel).</li>\n</ul>\n<p class='tip'>Please note the <em>Deploy</em> radio button. You have to deploy a script before starting the chatbot. At this stage, the system builds the chatbot, checks script syntax and performs tests.</p>\n<p>Click on <em>Create</em>. Wait for the pop-up window with the result of the deployment. If it is successful chatbot is ready for use.</p>\n</br>\n<h4>Connecting the bot</h4>\n<p>Click on the icon <span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 18px; \"\n    >\n      <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 155.55555555555554%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAfCAYAAADnTu3OAAAACXBIWXMAABJ0AAASdAHeZh94AAABWElEQVRIx9WWTYuCUBSG+91mIWKLQDfuCoRWrYIgAt2EmxKslQtx0UpciNDHoiA/sHc4FyaaaGby6gwzFw4I4sN773nOxdb1ekWT1fp/wLIsb8/369n7SgnpwyzLcLlcWBVFUW/L5/MZs9kM/X4fuq5js9kgz/MPaSsBJ5MJer0eut0uOp0ONE3Der3mBxKAQASkEgQB8/mcHzgYDBiQqt1uQ5IkLBYLfmAQBBgOhxBFEbIsYzqdIo5jfiDVdrvFcrmE67pIkuRbWCUP32GVPWwceA8+nU7Y7XbY7/dM7lpiH49H5qKiKFBVFavVikG5mzIej1l3SRvqNE2M4zj8QErVqNiGYdzGjsSmtLZt8wPDMMRoNGJAOkfLsnA4HOqJHUURPM+D7/svwb708Nmq5eFjQnKRK+FnZ2ia5kvQ3+ty4x42PimPs0ywNE35gY3dNj92H/6Zf5s3LsA0SI6372IAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <img\n        class=\"gatsby-resp-image-image\"\n        alt=\"Go to &quot;more details&quot; to view channel settings\"\n        title=\":size=15%\"\n        src=\"/1.10.3/static/bbbd96a760ddc60de5e4afe2372bb608/428de/Screenshot_1.png\"\n        srcset=\"/1.10.3/static/bbbd96a760ddc60de5e4afe2372bb608/428de/Screenshot_1.png 18w\"\n        sizes=\"(max-width: 18px) 100vw, 18px\"\n        style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n        loading=\"lazy\"\n        decoding=\"async\"\n      />\n    </span> > <em>Edit</em>. You are now in the channel settings.</p>\n<p>Copy the links:</p>\n<ul>\n<li>to subscribe to events;</li>\n<li>to subscribe to interactive events.</li>\n</ul>\n<p>Event handling:</p>\n<ol>\n<li>In the application settings go to the <em>Event Subscriptions</em> tab.</li>\n<li>Move the <em>Enable Events</em> slider to the active position.</li>\n<li>Paste the link you copied from the <em>Event Subscription Link</em> field into the <em>Request URL</em> field.</li>\n<li>Add event handling for <em>Bot Subscribe to Events</em> for direct messages to the bot: <code class=\"language-text\">message.im</code>.</li>\n<li>Save the changes.</li>\n</ol>\n<p>Handling interactive events:</p>\n<ol>\n<li>In the application settings, click on the <em>Interactive Components</em> tab.</li>\n<li>Paste the link you copied from the <em>Interactive Event Subscription Link</em> field into the <em>Request URL</em> field.</li>\n<li>Save the changes.</li>\n</ol>\n</br>\n<h4>Testing the bot</h4>\n<p>Open the bot dialog window in Slack and send it a welcome/activation phrase provided by your script. After that, your dialogue with the bot should begin.</p>\n<p class='warn'><a href=https://api.slack.com/ target=\"_blank\" rel=\"noopener noreferrer\">Learn more about working with the Slack</a></p>","frontmatter":{"title":"","description":null},"headings":[{"value":"Slack as an incoming channel"}]}},"pageContext":{"slug":"/docs/en/channels/slack/slack/","previous":{"fields":{"slug":"/docs/en/channels/telegram/parameters_transfer/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/channels/slack/jaicf/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}