Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 2.56 KB

README.md

File metadata and controls

55 lines (31 loc) · 2.56 KB

CoCo Dialogflow Connector

CoCo dialog flow connector is a Flask application which allows you to expose your Dialogflow bots as a components at the CoCo marketplace.

Deployment Flow:

  1. Create a bot on Dialogflow.
  2. Create 3 actions at your conversation flow:
    • Done Action - Action which will be triggered when the bot/component achived it's goal(Default: input.complete).
    • Failed Action - Action which will be triggered when the bot/component will not complete it's goad(Default: input.failed).
    • Out Of Context - Action which will be triggered when the conversation went out of context(input.unknown).
  3. Create private key for bot/component service account in JSON format.
  4. Place the key JSON at the following directory at the CoCo DialogFlow Connector source: /DialogFlowManager/components - Each file represent a component which can be accessed through an http call to https://<host>/api/exchange/<file name - no extension>/<session ID>
  5. Map the 3 actions that were created at the config or just use the default action names which are mentioned above.
  6. Upload the Flask app to a cloud service(Google app engine is recommende - yaml file included.)

1. Create a bot on Dialogflow.

Create a new agent.

Create a new agent.

2. Create 3 actions at your conversation flow.

Create relevant action.

At the example the created action will complete the component.

3. Create private key for bot/component service account in JSON format.

Create key for service account. Create key for service account, Create key button. Create key for service account, Choose JSON.

4. Place the key JSON at the following directory at the CoCo DialogFlow Connector source.

Place component key in connector source directory.

5. Map the 3 actions that were created at the config or just use the default action names.

Configure component actions.

Map the bot actions to component states at the config.py file.

6. Upload the Flask app to a cloud service.

Open bash, configure gcloud tools and then run the following command:

`gcloud app deploy`