To connect the Dialogflow Agent to the MARBEL Agent, after creating the agent, you have to download the service key connected to your agent. This can be done by going 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 bot project
You will have to create a service account for the project (button at top under 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 hopefully now have your .json file downloaded.
After properly doing this, you should have a downloaded
.json
file. This file should be added 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 agent name. This name can be found in the same Google Cloud Platform as 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 will have worked if the utterances of the user in the chat window are properly translated into the intents and entities that you specified in the dialog agent. Make sure to use exactly the same intent name in the MARBEL agent as those ones.
Quick Links
0 Comments