Stay organized with collections
Save and categorize content based on your preferences.
Dialogflow runtime integration lets you integrate data from other
Dialogflow-powered Contact Center AI services into Conversational 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 Conversational Insights. To learn more about this feature, see the Concepts documentation. Conversational Insights supports the use of audio conversation data in addition to chat conversation data facilitated through a SIPREC endpoint. The SIPREC integration is established through Agent Assist.
Prerequisites
To enable Conversational Insights for your Google Cloud project, follow the instructions on the before you begin page.
Attach your security settings to all your conversation profiles in the Conversation profile page.
Enable audio export
(Optional) Enable Conversational Insights audio export settings for voice conversations. This step is necessary to make your audio files available for listening within Conversational Insights. Your audio files are stored in a Cloud Storage bucket and nowhere else. So if you don't enable audio_export_settings, Conversational Insights will only have access to the transcript and cannot play back the conversation audio.
Go to the security settings page at the following link. Enter your project ID where indicated.
Click V2 Security Settings or security settings created in the previous step.
Click the Export tab.
Enter your Cloud Storage bucket's name.
Click Save.
To save the audio recordings for an entire telephony conversation, specify the format of your audio files, for example, MP3, MULAW, M4A, or OGG. This setting is available only when using the API.
Verify Conversational Insights service agent permissions
Make sure that the Conversational Insights service agent has the permissions to fetch conversations from Dialogflow. This is enabled by default, you can come back to this step if the conversations don't show up.
You can add conversation metadata such as labels or qualityMetadata to Conversational Insights either before or after the conversation is imported by using the UpdateConversation API with allow_missing set to true. Provide metadata of valid input fields along with the ID of the Dialogflow conversation in the UpdateConversationRequest, and Conversational Insights merges the conversation and metadata.
Create a conversation in Agent Assist and view it in Conversational Insights
Create a conversation profile using the Agent Assist console by following
the tutorial instructions.
Don't enable the virtual agent option.
(Optional) Test the performance of your conversation profile using the
Agent Assist simulator.
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
Conversational Insights.
Enter the project ID that you used to create the Agent Assist conversation and view this conversation in Conversational Insights. The Conversational Insights conversation name matches the conversation name in Agent Assist.
Create a conversation in virtual agents and view it in Conversational Insights
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 Conversational Insights
Navigate to the
Conversational 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eDialogflow runtime integration allows you to view conversations from Agent Assist and virtual agents within Conversational Insights.\u003c/p\u003e\n"],["\u003cp\u003eEnabling this integration involves configuring settings in both the Agent Assist console and the Dialogflow CX console, including enabling data sending and conversation history.\u003c/p\u003e\n"],["\u003cp\u003eConversational Insights supports both chat and audio conversation data, with optional audio file export settings available for voice conversations.\u003c/p\u003e\n"],["\u003cp\u003eConversation metadata, such as labels and quality metrics, can be added to Conversational Insights using the \u003ccode\u003eUpdateConversation\u003c/code\u003e API either before or after the conversation is imported.\u003c/p\u003e\n"],["\u003cp\u003eConversations created through Agent Assist, virtual agents, or the Dialogflow CX console can be viewed in Conversational Insights after the relevant settings have been enabled and completed conversations have been created.\u003c/p\u003e\n"]]],[],null,["# Enable Dialogflow runtime integration\n\nDialogflow runtime integration lets you integrate data from other\nDialogflow-powered Contact Center AI services into Conversational Insights.\nThese services also include\n[Agent Assist](/agent-assist/docs)\nand [virtual agents](/dialogflow/es/docs/agents-overview).\nAfter you enable the integration, you can view conversations created in\nAgent Assist and virtual agent in Conversational Insights. To learn more about this feature, see the [Concepts documentation](/contact-center/insights/docs/dialogflow-runtime-integration). Conversational Insights supports the use of audio conversation data in addition to chat conversation data facilitated through a SIPREC endpoint. The SIPREC integration is established through [Agent Assist](/agent-assist/docs/siprec).\n\nPrerequisites\n-------------\n\nTo enable Conversational Insights for your Google Cloud project, follow the instructions on the [before you begin page](/contact-center/insights/docs/before-you-begin).\n\nEnable runtime integration (global endpoint)\n--------------------------------------------\n\n1. Go to the [Agent Assist console](https://agentassist.cloud.google.com/).\n\n2. Click the settings **Settings** option.\n\n3. Verify that **Send data to Insights** is enabled.\n\n4. Go to the [Dialogflow CX console](https://dialogflow.cloud.google.com/cx/projects).\n\n5. Click settings **Agent settings**.\n\n6. Under the **General** tab, go to the **Logging settings** header and ensure that **Enable Conversation History** is checked.\n\nEnable runtime integration (regional endpoint)\n----------------------------------------------\n\n1. Go to the security settings page at the following link. Substitute your project ID where it says *PROJECT_ID*.\n\n ```bash\n https://ccai.cloud.google.com/projects/PROJECT_ID/securitySettings\n ```\n2. Create or update existing security settings in the correct region.\n\n3. Verify that **Send data to Insights** is enabled in the **Export** tab.\n\n4. Go to the [Dialogflow CX console](https://dialogflow.cloud.google.com/cx/projects).\n\n5. Click settings **Agent settings**.\n\n6. Go to the **General** tab.\n\n7. Go to the **Logging settings** header.\n\n8. Ensure **Enable Conversation History** is checked.\n\n9. Attach security settings from the previous step in the **Security** tab. Repeat this step for each virtual agent.\n\n10. Go to the [Agent Assist console](https://agentassist.cloud.google.com/).\n\n11. Attach your security settings to all your conversation profiles in the **Conversation profile** page.\n\nEnable audio export\n-------------------\n\n1. (Optional) Enable Conversational Insights audio export settings for voice conversations. This step is necessary to make your audio files available for listening within Conversational Insights. Your audio files are stored in a Cloud Storage bucket and nowhere else. So if you don't enable `audio_export_settings`, Conversational Insights will only have access to the transcript and cannot play back the conversation audio.\n\n 1. Go to the security settings page at the following link. Enter your project ID where indicated.\n\n ```bash\n https://ccai.cloud.google.com/projects/PROJECT_ID/securitySettings\n ```\n 1. Filter to the correct region.\n\n 2. Click **V2 Security Settings** or security settings created in the previous step.\n\n 3. Click the **Export** tab.\n\n 4. Enter your Cloud Storage bucket's name.\n\n 5. Click **Save**.\n\n2. To save the audio recordings for an entire telephony conversation, specify the format of your audio files, for example, `MP3`, `MULAW`, `M4A`, or `OGG`. This setting is available only when using the API.\n\n ```bash\n curl -H \"Content-Type: application/json\"\\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \\\n -H \"x-goog-user-project: \u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e\" \\\n -X PATCH https://LOCATION-dialogflow.googleapis.com/v3/projects/PROJECT/locations/LOCATION/securitySettings/SECURITY_SETTINGS?update_mask=audio_export_settings\\\n --data '{\"audio_export_settings\":{\"gcs_bucket\": \"\u003cvar translate=\"no\"\u003eBUCKET\u003c/var\u003e\",\"audio_format\": \"\u003cvar translate=\"no\"\u003eFORMAT\u003c/var\u003e\"}}'\n ```\n\nVerify Conversational Insights service agent permissions\n--------------------------------------------------------\n\n- Make sure that the Conversational Insights service agent has the [permissions to fetch conversations from Dialogflow](/contact-center/insights/docs/known-issues). This is enabled by default, you can come back to this step if the conversations don't show up.\n\nImport conversation metadata\n----------------------------\n\n|\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\n[Contact your Google representative](/contact-center/insights/docs/getting-support)\nto enable this feature in your project.\n\nYou can add conversation metadata such as `labels` or [`qualityMetadata`](/contact-center/insights/docs/reference/rest/v1/projects.locations.conversations#QualityMetadata) to Conversational Insights either before or after the conversation is imported by using the `UpdateConversation` API with `allow_missing` set to `true`. Provide metadata of valid input fields along with the ID of the Dialogflow conversation in the [`UpdateConversationRequest`](/contact-center/insights/docs/reference/rest/v1alpha1/projects.locations.conversations/patch#request-body), and Conversational Insights merges the conversation and metadata.\n\nCreate a conversation in Agent Assist and view it in Conversational Insights\n----------------------------------------------------------------------------\n\n1. Create a conversation profile using the Agent Assist console by following [the tutorial instructions](/agent-assist/docs/conversation-profile). Don't enable the virtual agent option.\n2. (Optional) Test the performance of your conversation profile using the [Agent Assist simulator](/agent-assist/docs/simulator).\n3. Follow the instructions to [create a Smart Reply conversation](/agent-assist/docs/smart-reply). 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](/agent-assist/docs/smart-reply#complete_the_conversation) before moving on. Only completed conversations are visible in Conversational Insights.\n4. Navigate to the [Conversational Insights console](https://ccai.cloud.google.com/insights/projects).\n5. Enter the project ID that you used to create the Agent Assist conversation and view this conversation in Conversational Insights. The Conversational Insights conversation name matches the conversation name in Agent Assist.\n\nCreate a conversation in virtual agents and view it in Conversational Insights\n------------------------------------------------------------------------------\n\n1. [Create a virtual agent](/agent-assist/docs/agent-virtual) and optionally [import sample data to your agent](/agent-assist/docs/agent-virtual#import-the-example-file-to-your-agent).\n2. The remaining steps are the same as [creating a conversation in Agent Assist](/contact-center/insights/docs/enable-dialogflow-runtime-integration#create_a_conversation_in_agent_assist_and_view_it_in_insights), 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.\n\nCreate a conversation in Dialogflow CX console and view it in Conversational Insights\n-------------------------------------------------------------------------------------\n\n1. [Create a virtual agent](/agent-assist/docs/agent-virtual).\n2. Test the agent to create a conversation.\n3. Navigate to the [Conversational Insights console](https://ccai.cloud.google.com/insights/projects). After a few moments, you should see your conversation with the test agent on your conversation history.\n\nTroubleshooting\n---------------\n\nFor help with issues related to Dialogflow runtime integration, see the\n[Troubleshooting page](/contact-center/insights/docs/troubleshooting)."]]