Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:google:dialogflow [2023/03/15 11:34] – [Step by Step Guide] gerardorourke | vendors:google:dialogflow [2023/03/16 16:01] (current) – [Troubleshooting] gerardorourke | ||
|---|---|---|---|
| Line 52: | Line 52: | ||
| *https:// | *https:// | ||
| + | ==== Creating Conversation Profile ==== | ||
| - | Step 1 | + | Looks like one is needed for each CX Agent! |
| - | Get the agent ID: | + | |
| - | Open https:// | + | Watch out for the double quotes when coping from Google website - it can get corrupted. |
| - | Select | + | *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 | ||
| + | < | ||
| - | Note the agent ID to be configured. If no new agents are created, you can select a preconfigured agent. | + | This service account is a account you previously |
| - | + | ||
| - | 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, | + | |
| - | + | ||
| - | Step 3 | + | |
| - | Install and configure the Google SDK on your system. | + | |
| - | + | ||
| - | For more information, | + | |
| - | + | ||
| - | 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 | + | |
| - | | + | |
| - | *to get the bearer token - impersonate the Service | + | |
| | | ||
| | | ||
| + | | ||
| 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 ' | ||
| + | *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:// | URL: https:// | ||
| Line 174: | Line 155: | ||
| file tail activelog speechserver/ | file tail activelog speechserver/ | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Training ===== | ||
| + | |||
| + | *https:// | ||