Enable Dialogflow runtime integration

Dialogflow runtime integration allows you to integrate data from other Dialogflow-powered Contact Center AI services into Contact Center AI Insights. These services also include Agent Assist and virtual agents. After you enable the integration, you can view conversations created in Agent Assist and virtual agent in Contact Center AI Insights. To learn more about this feature, see the Concepts documentation.

Prerequisites

  1. Follow the instructions on the before you begin page to enable Contact Center AI Insights for your Google Cloud project.
  2. Create a service account, and download the private JSON key file. You will need this file to authorize the integration. The service account associated with your project should be granted the Dialogflow API Admin role in order to authorize the integration.
  3. Authorize the integration by turning on the Contact Center AI Insights export feature.

    export GOOGLE_APPLICATION_CREDENTIALS=PATH
    curl -H "Content-Type: application/json" \
         -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" \
         -X PATCH https://LOCATION-dialogflow.googleapis.com/v3/projects/PROJECT/locations/LOCATION/securitySettings/SECURITY_SETTINGS?update_mask=insights_export_settings \
         --data '{"insights_export_settings": {"enable_insights_export": true}}'
    

Create a conversation in Agent Assist and view it in Contact Center AI Insights

  1. Create a conversation profile using the Agent Assist console by following the tutorial instructions. Do not enable the virtual agent option.
  2. (Optional) Test the performance of your conversation profile using the Agent Assist simulator.
  3. Follow the instructions to create a Smart Reply conversation. Handling conversations at runtime requires direct API calls. These actions cannot be carried out using the Agent Assist console. Make sure that you complete the conversation before moving on. Only completed conversations are visible in Contact Center AI Insights.
  4. Navigate to the Contact Center AI Insights console.
  5. Enter the project ID that you used to create the Agent Assist conversation above and view this conversation in Contact Center AI Insights. The Contact Center AI Insights conversation name matches the conversation name in Agent Assist.

Create a conversation in virtual agents and view it in Contact Center AI Insights

  1. Create a virtual agent and optionally import sample data to your agent.
  2. The remaining steps are the same as creating a conversation in Agent Assist, with the exception that you must enable the virtual agent option when you create a conversation profile in order for the profile to use your newly created agent.

Create a conversation in Dialogflow CX console and view it in Contact Center AI Insights

  1. Create a virtual agent.
  2. Go to agent settings, enable interaction logging and attach the same security setting used in the prerequisites.
  3. Test the agent to create a conversation.
  4. Navigate to the Contact Center AI Insights console. After a few moments, you should see your conversation with the test agent on your conversation history.

Troubleshooting

For help with issues related to Dialogflow Runtime Integration, see the Troubleshooting page.