CoCo Rasa connector is a Flask application which allows you to expose your Rasa bots as a components at the CoCo marketplace.
- Deploy Rasa Bot(Do not forget to enable the API).
- Place the bot API URL in a JSON format at the following directory at the CoCo Rasa Connector source:
/RasaManager/components
- Each file represent a component which can be accessed through an http call tohttps://<host>/api/exchange/<file name - no extension>/<session ID>
- Map the 3 intents from Rasa bot at the config.py file(Create new
record for your component):
- Done Action - Action which will be triggered when the bot/
component
achived it's goal. - Failed Action - Action which will be triggered when the bot/
component
will not complete it's goad. - Out Of Context - Action which will be triggered when the conversation went out of context.
- Done Action - Action which will be triggered when the bot/
- Upload the Flask app to a cloud service(Google app engine is recommende - yaml file included.)
https://rasa.com/docs/getting-started/
config.py:
ACTIONS_MAPPING_CONFIG = {
"default": {
"COMPLETE_ACTION": "goodbye",
"FAILED_ACTION": "deny",
"OUT_OF_CONTEXT_ACTION": "bot_challenge"
},
"default_bot": {
"COMPLETE_ACTION": "goodbye",
"FAILED_ACTION": "deny",
"OUT_OF_CONTEXT_ACTION": "bot_challenge"
}
}
Open bash, configure gcloud tools and then run the following command:
```gcloud app deploy```