To start using the Google AI services and Dialogflow follow the steps below.
- Enable the setting
AiX > 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. ClickDialogflow API
and then clickEnable
. - Select the project and the go to
Left menu > APIs and services > OAuth consent screen
. SelectExternal
and clickCreate
. In App name enter what you want, inUser support email
andDeveloper contact information
enter your email. ClickSave and continue
. - In the scopes area, click
Add or remove scopes
, scroll bottom and into theManually add scopes
area enter https://www.googleapis.com/auth/dialogflow,
https://www.googleapis.com/auth/cloud-language,
https://www.googleapis.com/auth/cloud-translation.
ClickAdd to table
and thenUpdate
andSave 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. ClickSave and continue
. - Go to
Left menu > APIs and services > Credentials
and clickCreate credentials
, selectOAuth client ID
. AsApplication type
selectWeb application
. Enter any name you want. InAuthorised redirect URI
enter the redirect URL, get it fromAiX > Settings > Artificial Intelligence > Google > Authorised redirect URI
. ClickCreate
. - Copy
Client ID
andClient Secret
and paste them intoAiX > Settings > Artificial Intelligence > Dialogflow
. Save the settings. - In
Settings > APIs & Services > OAuth Consent Screen
clickPUBLISH APP
. There is no need to complete the review process, leave it in the pending review state. - Click
AiX > Settings > Artificial Intelligence > Google > Synchronize
. Login with the same Google account you have used till now. On the next screen clickContinue
. On the next screen select all scopes and clickContinue
. - Copy the
Refresh token
and paste it intoAiX > Settings > Artificial Intelligence > Google > Refresh token
. - You are done! If you want to activate the Dialogflow chatbot, you have to enter your chatbot Project ID or Agent Name, to get it follow the steps. Note that the app does not need to be approved by Google.
PREVIOUS < Google
NEXT > Dialogflow