# Dialogflow runtime integration

You can opt in to the Dialogflow runtime integration feature to integrate data
from other Dialogflow-powered Contact Center AI services into
CX Insights. These services also include
[Agent Assist](https://cloud.google.com/agent-assist/docs)
and [virtual agents](https://docs.cloud.google.com/agent-assist/docs/agent-virtual).

## Dialogflow runtime integration use cases

We recommend that you enable this feature if you use Agent Assist or Virtual
Agent to create conversations and you want to use
[CX Insights features](https://docs.cloud.google.com/contact-center/insights/docs/how-to) on
these conversations. For example, Dialogflow runtime integration is useful if
you want to:

- View your conversations and their metadata from a user interface.
- Run more machine learning analytics on your conversations.
- Export your conversations to BigQuery for custom analysis or visualization in Looker.

## How Dialogflow runtime integration works

### One-time sync for every new conversation

After you enable Dialogflow runtime integration, CX Insights will
create a representation of this
[conversation](https://docs.cloud.google.com/contact-center/insights/docs/reference/rpc/google.cloud.contactcenterinsights.v1#conversation)
and its
[associated metadata](https://docs.cloud.google.com/contact-center/insights/docs/reference/rpc/google.cloud.contactcenterinsights.v1#runtimeannotation)
each time you
[complete a conversation](https://docs.cloud.google.com/agent-assist/docs/smart-reply#create_a_conversation)
in Agent Assist or Virtual Agent. If the source conversation has a transcript,
Insights will generate
[additional metadata](https://docs.cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations.conversations.analyses#callanalysismetadata)
for it if you specified a percentage of conversations to be analyzed in your
[analysis rule](https://docs.cloud.google.com/contact-center/insights/docs/analysis-rule) or [project settings](https://docs.cloud.google.com/contact-center/insights/docs/reference/rest/v1/Settings).
The default analysis percentage is 0.

If you modify the source data from Agent Assist or a Virtual Agent, the
CX Insights representation of the data won't be affected. The
opposite is also true.

### Synced data can be queried and exported from CX Insights

Conversations exported to CX Insights will be queryable from
CX Insights along with their associated metadata. You can also
[export conversation data to BigQuery](https://docs.cloud.google.com/contact-center/insights/docs/export)
to perform your own raw queries.

## What's next

To enable Dialogflow runtime integration, see the
[Dialogflow runtime integration quickstart](https://docs.cloud.google.com/contact-center/insights/docs/enable-dialogflow-runtime-integration).