Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vendors:google:dialogflow [2023/03/15 11:34] – [Step by Step Guide] gerardorourkevendors:google:dialogflow [2023/03/16 16:01] (current) – [Troubleshooting] gerardorourke
Line 52: Line 52:
   *https://www.cisco.com/c/en/us/support/docs/contact-center/unified-contact-center-enterprise/217947-configure-contact-center-enterprise-virt.pdf   *https://www.cisco.com/c/en/us/support/docs/contact-center/unified-contact-center-enterprise/217947-configure-contact-center-enterprise-virt.pdf
  
 +==== Creating Conversation Profile ====
  
-Step 1  +Looks like one is needed for each CX Agent!
-Get the agent ID:+
  
-Open https://dialogflow.cloud.google.com/cx/projects.+Watch out for the double quotes when coping from Google website - it can get corrupted.
  
-Select the appropriate project. The list of configured agents is displayed.+  *Open Google SDK CLI 
 +  *Login using the command **gcloud auth login**- which will open your browser and ask you to log into the account 
 +  *to get the bearer token - impersonate the Service account using the command  
 +<code>gcloud auth print-access-token --impersonate-service-account=Service Account IDM</code>
  
-Note the agent ID to be configured. If no new agents are created, you can select a preconfigured agent. +This service account is account you previously setup which should the following roles
- +
-Step 2  +
-Create a user via Google IAM (Identity and Access Management) and add the following roles: Dialogflow API admin, Service Account Token Creator, and Service Account user . +
- +
-For more information, see https://cloud.google.com/iam/docs/creating-managing-service-accounts. +
- +
-Step 3  +
-Install and configure the Google SDK on your system. +
- +
-For more information, see https://cloud.google.com/sdk/docs/quickstart. +
- +
-Step 4  +
-When you are asked to log in during the installation of Google SDK, log in using the ID of the agent for whom you want to create the conversation profile. +
- +
-Note  +
-You can also log in using the same ID to the GCP CLI with the command gcloud auth login after installing the Google SDK. +
- +
-Step 5  +
-Run the following command: gcloud auth print-access-token --impersonate-service-account=Service Account ID +
- +
-Service Account ID is found Service Account -> 'OAuth 2 client ID' Field +
- +
-=== creating Profile ==== +
-What out for the double quotes when coping from website - it can get corrupted. +
- +
- *Open Google SDK CLI +
- *Login using the command **gcloud auth login**- which will open your browser and ask you to log into the account +
- *to get the bearer token - impersonate the Service account you setup which should +
    *Service Account Token Creator    *Service Account Token Creator
    *Dialogflow API Admin    *Dialogflow API Admin
 +   *Service Account User
  
 Here is an example Here is an example
Line 112: Line 88:
  
 === Request ==== === Request ====
 +
 +  *Use Postman for the HTTP POST request.
 +  *Set the Authorization Header and the value to be 'Bearer <token>'
 +  *The URL should use the of your Project - as per below example
 +  *The Agent should include the URL of your Agent - as per below example
  
 URL: https://europe-west1-dialogflow.googleapis.com/v2beta1/projects/my-dev-project1/locations/europe-west1/conversationProfiles URL: https://europe-west1-dialogflow.googleapis.com/v2beta1/projects/my-dev-project1/locations/europe-west1/conversationProfiles
Line 174: Line 155:
 file tail activelog speechserver/logs/SpeechServer/SpeechServer.log file tail activelog speechserver/logs/SpeechServer/SpeechServer.log
 </code> </code>
 +
 +
 +===== Training =====
 +
 +  *https://cloud.google.com/dialogflow/cx/docs/tutorials/samples
  • vendors/google/dialogflow.1678880049.txt.gz
  • Last modified: 2023/03/15 11:34
  • by gerardorourke