Interactive Slack bot using AWS Serverless

Let us first set up the Serverless Slack Bot in AWS

Serverless Slack Bot
// config.dev.json{
"CREATOR_EMAIL": "example@abc.com", // your email
"BOT_TOKEN": "<Sample_Bot_Token>" // sample bot token
}
config.dev.json
// In project directory: serverless-slack-bot/sls deploy
sls deploy

Now let’s set up the Slack App

Create a new Slack app
Select Event Subscriptions
Verify your Bot API URL
Add app_mention and message.im bot user events
Install the Slack app
Copy the Bot Token
Add chat:write Bot Token Scope
// config.dev.json{
"CREATOR_EMAIL": "example@abc.com", // your email
"BOT_TOKEN": "<Bot_Token>" // paste your bot token
}
config.dev.json
// In project directory: serverless-slack-bot/sls deploy
Enable your bot to be Online
Serverless Slack Bot in Action

Learn something new every day — Cheers!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store