Dialogflow: Connecting Dialogflow Agent to MARBEL Agent
To connect the Dialogflow Agent to the MARBEL Agent, you have to download the service key connected to your agent after creating the agent (you should have already done this in the Getting Started: What You Need to Install step). This can be done by following the Google instructions here with some extra clarification provided down below:
Follow the link to the Service Accounts (while logged in to the email account that made the Dialogflow agent).
Click the Project ID of your agent project.
You will have to create a service account for the project (button at top under the blue bar).
Then click on the email for the service account.
Go to Keys → Add Keys → Create New Key → Select JSON file → Create.
You should now see that your .json file is being downloaded.
After doing this, you should have a downloaded
.json
file. You need to add this file to your MARBEL agent project folder.In the
.mas2g
file, specify the name of this.json
file (see figure below).
In addition to the filename, you have to specify the ‘flowagent’ name. This name can be found in the same Google Cloud Platform where you have generated the key-file, by clicking on the name next to the Google Cloud Platform title, and checking the 'ID' column (see below). You will find that the ID is slightly different from the name that you have given to your agent.
The connection to the MARBEL agent works if the utterances of the user in the chat window are properly translated into the intents and entities that you specified in the Dialogflow agent.
Make sure to use exactly the same intent name in the conversational pattern specification in the MARBEL agent as the names of the intents you implemented in Dialogflow.
Â