jsondialogflow-estelegram-botgupshup

What is the JSON I have to put in Gupshup's Dialogflow JSON?


Since last week there's a new Gupshup functionality in which in order to add a new bot, I can paste in the JSON of the Dialogflow agent. Where do I get that JSON? When I export the agent from Dialogflow as ZIP, and unzip it, I have 2 folders (entities + intents) and an 'agent' JSON + 'package' JSON (image below). Image of files downloaded from Exporting dialogflow agent

Do I have to take the agent.json and put it in Gupshup?

Gupshup User interface to put the json

I did that, and deployed it on Telegram to test it (I don't know other way to test it). It's not working. It does not answer anything. I did the Telegram set up correctly.

Thank you in advance.


Solution

    1. In Dialogflow Console. Click On The COG icon In Dialogflow Console. Click On The COG icon

    2. Click On The Google Project Click On The Google Project

    3. Once in Google Console. Click on The Hamburger Icon

    Once in Google Console. Click on The Hamburger Icon

    1. Click On IAM & Admin

    Click On IAM & Admin

    1. Click On The Service Account

    Click On The Service Account

    1. Create A New Service Account

    Create A New Service Account

    1. Make Sure To Provide Viewer Access

    Make Sure To Provide Viewer Access To The Service Account

    1. After Creation, in the service account list, click on Manage Keys.

    After Creation, in the service account list click on Manage Keys.

    1. Add a new Key For that service account

    Then Click on Add Key Button

    1. Select Type as JSON

    Select Type as JSON

    Then a JSON file will be downloaded to your local machine. Copy-paste the content into the JSON field. Your Dialogflow agent will be linked.

    Happy Coding. :)