# Connect Dialogflow ES or CX

> Use a Google Dialogflow agent (API V2 or CX) to detect intents: project ID, service account key, default reply, agent language, webhook URL and authentication.

Source: https://www.wpbot.pro/help/chatbot-dialogflow/  
Section: ChatBot › Start menu and conversations  
Updated: 2026-11-26

Dialogflow is Google's tool for building conversation flows with intents and entities. If you already have a Dialogflow agent, WPBot can use it to understand visitors and answer with its intents. Open **WPBot Pro → ChatBot → Dialogflow** (under **Advanced**).

![Dialogflow settings](https://www.wpbot.pro/wp-content/uploads/2026/11/wpbot-docs-cb1-dialogflow.jpg)

_The Dialogflow tab._

Note

Most sites do not need Dialogflow: an AI provider with your knowledge base answers free-form questions without building intents. The screen asks you to use either Dialogflow or the AI, not both at the same time.

The tab also shows **Enable Chat File Upload** and **Allowed File Extensions**: a paperclip next to the send button so visitors can attach files during AI chat. This is the same setting as **Chat file upload** in **AI / Settings → Answers** ([Control how the chatbot answers](/help/how-the-chatbot-answers/)).

## Connect your agent

1. Tick **Enable DialogFlow AI Engine to process Natural Language commands from users.**
2. Check that the screen says **Google Client Package is Installed on Your Website.**  Dialogflow V2 needs this package (about 10 MB). If it is missing, click **Download and Install the Google Client** ; it is saved in your `wp-content` folder, which must be writable. The screen also explains how to upload it by FTP instead.
3. Enter the **DialogFlow Project ID**  of your Google Cloud project.
4. Paste the **Private Key** : the JSON key of a Google service account that has owner permission on the agent.
5. Set the **DialogFlow Defualt reply**  (used when the agent returns no text) and the **DialogFlow Agent Language (Ex: en)** .
6. For a CX agent, tick **Enable Dialogflow CX** . WPBot uses the first agent of the project.
7. Click **Save Settings** , then **Test Dialogflow Connection** .

The key stays on your server. WPBot talks to Dialogflow from the server, never from the visitor's browser.

## Use WPBot's starter agent

The tab links to the Dialogflow console and to WPBot's agent training data. Import it in your agent under **Settings → Export and Import**. You can add your own intents, but do not change WPBot's intents: email, email subscription, faq, get email, get name, help, phone, reset, site search and start.

## Fulfillment webhook

The **DialogFlow Webhook URL** is the address to enter as the fulfillment webhook in your agent. To protect it, tick **Enable Authentication for Dialogflow fulfillment Webhook URL** and set an **Auth Username** and **Auth Password**; enter the same in Dialogflow. The saved password is not shown again.

## Where Dialogflow sits

Dialogflow answers after your Simple Text Responses and before site search and the AI (see [How the chatbot chooses an answer](/help/chatbot-how-answers-are-chosen/)). Its intents can be used anywhere you pick an intent: the start menu, Chat Icon Messages and shortcodes. CX intents appear under **Dialogflow CX** in **Available menu items** ([Build the start menu](/help/chatbot-start-menu-items/)). Links in Dialogflow answers open as set in **Bot Response Options** ([Chat window and bot response options](/help/chatbot-window-and-response-options/)).

## Availability

In every edition, including WPBot Free.
