The Dialogflow Endpoint enables you to connect your AI Agent to the [Dialogflow platform](https://dialogflow.cloud.google.com/).

## Prerequisites

- Access to [the Dialogflow platform](https://dialogflow.cloud.google.com/).
- A fallback intent named **Default Fallback Intent** in Dialogflow with webhooks enabled.
- For Phone Gateway, a configured Dialogflow Phone Gateway and a connected phone number.

## Generic Endpoint Settings

Learn about the generic Endpoint settings on the following pages:

- [Endpoints Overview](https://docs.cognigy.com/ai/agents/deploy/endpoints/overview)
- [NLU Connectors](https://docs.cognigy.com/ai/platform-features/nlu/external/nlu-connectors/overview)
- [Data Protection & Analytics](https://docs.cognigy.com/ai/agents/deploy/endpoints/data-protection-and-analytics)
- [Real-Time Translation Settings](https://docs.cognigy.com/ai/agents/deploy/endpoints/real-time-translation-settings)
- [Transformer Functions](https://docs.cognigy.com/ai/for-developers/transformers/overview)

## Specific Endpoint Settings

Dialogflow Settings

| **Parameter** | **Description** |
| --- | --- |
| Reparse Slots | A toggle that lets you combine Dialogflow and Cognigy NLU. This feature allows slots found by Dialogflow to be passed to Cognigy.AI and further processed by its NLU. |

## How to Set Up

### On the Dialogflow Side

1. Access an Agent

1. Log in to Dialogflow, then select your agent.
2. Ensure intents are configured.
3. Create an intent named **Default Fallback Intent**.
4. In the **Fulfillment** section of your Dialogflow agent, enter the Endpoint URL to enable webhooks.

2. Set up Integrations

1. Choose from supported integrations:
   - **Built-in Telephony**: AudioCodes, Avaya, Genesys, SignalWire, Voximplant.
   - **Dialogflow Built-in**: Messenger, Phone Gateway, Web Demo, Facebook, Google Assistant (legacy), and more.
   - **Google-contributed Open Source**: Kik, Skype, Twilio, Viber, and more.
2. Then, follow Dialogflow’s instructions to enable Google Actions Account linking.

### On the Cognigy.AI Side

1. Create a Dialogflow Endpoint

1. In the left-side menu of your Agent, click **Deploy > Endpoints**.
2. On the **Endpoints** page, click **\+ New Endpoint**.
3. In the **New Endpoint** section, do the following:
   1. Select the **Dialogflow** Endpoint type.
   2. Specify a unique name.
   3. Select a relevant Flow from the list. Save changes.
   4. Copy the URL from the **Endpoint URL** field.

2. Handle the `TELEPHONY_WELCOME` Message

1. In your Flow, add a Once Node or an Intent rule that triggers on `TELEPHONY_WELCOME` and greet the user, for example, `Welcome to our service! How can I help you today?`.

## More Information

- [Cognigy Help Center: Dialogflow Intro](https://support.cognigy.com/hc/en-us/articles/360016153980)
- [Cognigy Help Center: Dialogflow Deployment](https://support.cognigy.com/hc/en-us/articles/360016154040)
