Let's create a bot user in Slack and get a token to impersonate this user.
- View Offline
- [Narrator] To use a bot on Slack,…we have to create a bot user,…and creating a new bot user…is currently not completely intuitive,…as there is no dedicated option…on the settings page of Slack,…but I will show it to you.…Press this arrow down here,…go to Team Settings,…and open the menu,…and in the menu you will see one item called API,…open that,…and in the next menu you see a menu item Integrations,…and there is a Bot Users link,…let's click on that,…and there is some documentation about bot users,…and down here there is a link that is named…new bot user integration.…
We click on that,…and finally here we can create this new bot user…and we will call it iris in our case,…so we type in iris, click on Add bot integration,…and we see that we created a new bot user,…and we also get an API Token,…and this API Token is important,…so we copy it out and we copy it to some safe place.…In my case I copy it into some file,…call it token.txt…in my project, just to not lose it.…
Let's go back into the browser.…So in the end we just have to save this,…
After explaining some basics about Node.js and microservices, Daniel shows you how to sketch out the planned architecture for your application and get the boilerplate code, modules, and credentials in place. Next, he shows how to create a bot user in Slack, connect to Slack, and post messages. He also shows you how to get your bot to process variations in text by creating logic that delegates the processing of intent to dedicated modules. Lastly, he shows how to register additional services and he covers how to use monitoring to identify architectural or performance issues.
- Using Slack APIs
- Sketching out a Slack bot architecture
- Setting up a project and choosing modules
- Creating and naming your bot
- Connecting to Slack
- Setting up and using natural language processing
- Routing by intents
- Implementing geocoding and time calculation
- Adding and monitoring services