The settings below are related to the Artificial Intelligence tab.
Synchronization #
To start using the Google AI services and Dialogflow follow the steps below.
Manual sync mode
- Enable the setting ParrotGPT > Settings > Artificial Intelligence > Google > Dialogflow Chatbot and save the changes.
- Go to console.cloud.google.com and sign in.
- Select or create a project by clicking the Select a project button on top-left. Name the project as you want.
- Activate the Dialogflow API by entering Dialogflow API on the top search bar. Click Dialogflow API and then click Enable.
- Select the project and the go to Left menu > APIs and services > OAuth consent screen. Select External and click Create. In App name enter what you want, in User support email and Developer contact information enter your email. Click Save and continue.
- In the scopes area, click Add or remove scopes, scroll bottom and into the Manually add scopes area enter https://www.googleapis.com/auth/dialogflow,https://www.googleapis.com/auth/cloud-language,https://www.googleapis.com/auth/cloud-translation. Click Add to table and then Update and Save and continue.
- In the test users area, click Add users and add your Google email, use the same email as the currently logged in account. Click Save and continue.
- Go to Left menu > APIs and services > Credentials and click Create credentials, select OAuth client ID. As Application type select Web application. Enter any name you want. In Authorised redirect URI enter the redirect URL, get it from ParrotGPT > Settings > Artificial Intelligence > Google > Authorised redirect URI. Click Create.
- Copy Client ID and Client Secret and paste them into ParrotGPT > Settings > Artificial Intelligence > Dialogflow. Save the settings.
- In Settings > APIs & Services > OAuth Consent Screen click PUBLISH APP. There is no need to complete the review process, leave it in the pending review state.
- Click ParrotGPT > Settings > Artificial Intelligence > Google > Synchronize. Login with the same Google account you have used till now. On the next screen click Continue. On the next screen select all scopes and click Continue.
- Copy the Refresh token and paste it into ParrotGPT > Settings > Artificial Intelligence > Google > Refresh token.
- You are done! If you want to activate the Dialogflow chatbot, check Settings > Artificial Intelligence > Google > Dialogflow chatbot. Also, you have to enter your chatbot Project ID or Agent Name, to get it follow the steps below. Note that the app does not need to be approved by Google.
- If you are a Google Workspace user, go to https://admin.google.com/ and click Google Cloud Session control. Set Re-authentication policy to Never require re-authentication.
Dialogflow #
The information provided below is relevant to Dialogflow.
Get Project ID
- Log in to the Dialogflow ES console by going to dialogflow.cloud.google.com. You must sign in with the same Google account used during the synchronization.
- Click the gear icon at the top left, near the chatbot name, and open the settings area. . If you haven’t created a chatbot yet, follow the instructions below to create your first bot.
- Copy the Project ID .
- Make sure to choose US / GLOBAL on the top left of the Dialogflow dashboard. Please note that our system does not support mega agents. .
Get Dialogflow CX Agent Name
- Log in to the Dialogflow CX console by going to https://dialogflow.cloud.google.com/cx/.
- Select the project of the desidered agent and go to the agents page. You can enter the agents page by selecting the agent and by clicking the top button Agents > View all agents .
- Click the options menu for the desiderate agent in click Copy name .
- More details at https://cloud.google.com/dialogflow/cx/docs/quick/api#detect-intent-drest.
Location
Set the location or region of your Dialogflow agent. This setting is optional if your agent location is set to global.
Welcome Intent
Trigger the Dialogflow Welcome Intent for new visitors. The option Settings > Messages > Welcome message must be active.
Send the user details
Send the user details of the registration form and email rich messages to Dialogflow.
Add Intents to saved replies
Include the Dialogflow Intents into the saved replies. To access the saved replies option, go to Settings > Admin > Saved replies.
Create a basic chatbot #
If you haven’t created a chatbot yet, follow the instructions below to create your first one. The creation and management of your Dialogflow chatbot is handled entirely by Dialogflow. There are a lot of tutorials online that can help you create and configure your Dialogflow bot.
- To create your first chatbot enter the Dialogflow console and create an agent. As Google project select the same project used during the synchronization.
- Add a new Intent from the left menu and open it.
- In the Training phrases area adds the user’s question you want the chatbot to reply to, add as many variants are you can. For example, if you want to the chatbot to reply to users asking for your business address, add variants like “what is your address”, “address”, “where are you”.
- In the Responses area adds the chatbot answer as a text response.
- You have created your first question and answer! Test if from the right area or from the ParrotGPT chat. Add new Intents to populate your chatbot with the questions and answers you want. You can include basic pre-built questions and answers by enabling the Small Talk feature from the left menu.