*This page
applies to **Apigee** and **Apigee hybrid**.*


*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*
![](https://fonts.gstatic.com/s/i/googlematerialicons/help/v13/gm_grey-24dp/1x/gm_help_gm_grey_24dp.png)
This document describes the support available in Apigee for integrating with Google's [Contact Center AI](https://cloud.google.com/solutions/contact-center).

## Introduction


Google's Contact Center AI solution offers natural interactions based on AI-powered
conversation. By using the Contact Center AI, you can automate the interactions between
your customers and your backend support agents. The Contact Center
AI frees human agents to focus on more complex and specialized calls, providing them
with real-time information, workflows, and turn-by-turn guidance.


The Contact Center AI has many components. One of the components is Dialogflow which lets you
create advanced Virtual Agents within a short time. These Virtual Agents can seamlessly
switch between topics, handle supplemental questions, and operate across multiple channels
24/7 to minimize live agent interventions.


When your customer is interacting with a Dialogflow virtual agent, the agent might
access your backend services to gather information. Also, the agent might send
information that you want to store in your backend systems. Dialogflow defines the format of
the response data. So, a Dialogflow agent accepts the response
data from your backend services only in the specified format. Similarly, your backend services might
require the request data in a specific format. As a backend service integrator, you have to
ensure seamless communication between your Dialogflow agent and your backend services.

## Support for Dialogflow in Apigee

You can use Apigee to manage the interactions between Dialogflow and your backend services.
Apigiee's ParseDialogflowRequest and SetDialogflowResponse policies enable easier integration
with Dialogflow. By using these policies, you can easily plug-in your backend services
to handle fulfillment requests from Dialogflow.


The ParseDialogflowRequest policy processes the [WebhookRequest](https://docs.cloud.google.com/dialogflow/cx/docs/concept/webhook.md.txt#webhook-request) from a Dialogflow
virtual agent before sending the request data to your backend services. The policy extracts data from
the WebhookRequest into the flow variables, which your backend services can use.
For more information, see [ParseDialogflowRequest policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/parse-dialogflow-request-policy.md.txt).


The SetDialogflowResponse policy processes and formats the response data from your
backend services as a [WebhookResponse](https://docs.cloud.google.com/dialogflow/cx/docs/concept/webhook.md.txt#webhook-response) to the Dialogflow virtual agent.
The policy constructs a WebhookResponse in the required format for a Dialogflow agent.
For more information, see [SetDialogflowResponse policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/set-dialogflow-response-policy.md.txt).


If you are a backend service integrator, you need not spend time understanding the
format of the Dialogflow's WebhookRequest or WebhookResponse. The Dialogflow policies will handle
the format conversion for you.


The following image shows how the ParseDialogflowRequest and SetDialogflowResponse
policies assist you in handling Webhook requests and responses from the Dialogflow agents.
![Diagram of Webhook requests in Apigee runtime.](https://docs.cloud.google.com/static/apigee/docs/api-platform/develop/images/dialogflow-request-response.png)


Apart from the ParseDialogflowRequest and SetDialogflowResponse policies, Apigee provides
the AssertCondition policy that lets you evaluate conditional statements using
your flow variables. You can use the AssertCondition policy together with the
Dialogflow policies to further simplify your effort in integrating Apigee with Dialogflow.
For more information, see [AssertCondition policy](https://docs.cloud.google.com/apigee/docs/api-platform/reference/policies/assert-condition-policy.md.txt).