Connecting Dialogflow to the SmartChat Platform is quick and easy. You will simply need to retrieve a JSON file (Google Service Account Key) from Google and upload it to the Platform.
This tutorial assumes that the user has a Dialogflow agent ready for integration with the Platform. If you haven't created your Dialogflow agent, please follow this link to set up your Dialogflow account.
Connecting to Dialogflow
Press the blue "Connect" button next to the Dialogflow integration. This should open the Connect Dialogflow menu.
In order to integrate with your Dialogflow agent, you will have to retrieve the API key.
Getting the Account Key
On the Dialogflow dashboard, navigate to the Agent Settings by pressing the gear icon button on the left navigation panel. Make sure you have the agent you wish to connect selected.
From this page, click on the Service Account link under the Google Project section. This will open up a list of service accounts for your Agent's Google Cloud Project on the Google Cloud Platform.
Look for the entry with the name "Dialogflow Integrations" and press the Actions button on the far right of the table. Look for the three vertical dots.
Under the dropdown menu, select the "Create key" option. This should open up a menu where you can create a private key.
Make sure the JSON key type is selected and press the blue "Create" button. Your computer should begin downloading the key as a JSON file.
When the download has completed, go back to the SmartChat Platform and upload the API key JSON file in the Connect Dialogflow menu.
Once the file has been uploaded, press the blue "Connect" button to finish your integration.
Your Dialogflow Agent is now connected to the SmartChat Platform. Your Agent will now respond to messages received from any of the channels connected on your Space.