Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Update readme.md for cms integration with botkit #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ var controller = Botkit.platform({
})
```

Also add a studio_token in the parameters above which will equal the token set up in the cms. To add the skills of your cms to your bot create a new file under skills folder in botkit and the contents of the file should be as below(where zolo_flow is the script defined on the cms) -

```
module.exports = function(controller) {
controller.hears('zolo','message_received', function(bot, message) {
controller.studio.run(bot, 'zolo_flow', message.user, message.channel).catch(function(err){
debug("error encountered in cms addition", err);
});

});
}
```

[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/import/github/howdyai/botkit-cms)

## Migrate from Botkit Studio
Expand Down