This Secretary bot is powered by Natural Language Processsing (NLP) with Recast.AI and is plugged to Slack Bot, to easily connect it to Slack applications.
- You must be a 42 student to use this bot
- Log in to your Recast.AI account
- Go to leon42bot
- Click on the
Fork Bot
Button
- In your profile, click your forked
leon42bot
- In the tab-menu, click on
settings
- Here is the
request access token
you need to configure your bot!
- Log in to your slack team
- Go to https://"NAME OF TEAM".slack.com/apps/new/A0F7YS25R-bots and fill the form
- go to 42newapp
- in Redirec URI enter: https://profile.intra.42.fr/
- Copy your Recast.AI
request access token
- Copy your 42key
request access token
- Copy your 42Secret
request access token
- Copy your Slack token
token
var config = {
api42: {
Key: '{42-UID}',
Secret: '{42-SECRET}'
},
recast: {
route: 'https://api.recast.ai/v1/request',
request_token: '{YOUR-TOKEN}'
},
slack: {
Token: '{SLACK-TOKEN}'
}
};
Install the dependencies
npm install
npm install recastai
npm install @slack/[email protected]
npm install [email protected]
Run your bot
node bot.js