## What it does

Dialogflow is Google's chatbot service. This integration lets you **connect your Dialogflow bot to a Madyis Hub inbox**. The bot handles the **first questions** automatically, then hands the conversation over to a human agent if needed.

Note: if you mainly want a ready-to-use AI, the built-in Madyis AI agent can already answer your customers with no Dialogflow setup. Dialogflow is for those who have already built a Google bot.

## Before you start

From your Google Cloud / Dialogflow project, you will need:

- the Dialogflow **project ID**;
- the project's **key file** (service account key, in JSON format);
- optionally the project's **region**.

## Connect Dialogflow

1. Sign in to your Madyis Hub dashboard.
2. Open **Settings → Integrations**.
3. Click **Dialogflow**.
4. Enter the **project ID**, upload the **key file** and provide the **region** if requested.
5. Confirm to save the integration.

## Enable the bot on an inbox

1. Open **Settings → Inboxes**.
2. Choose the relevant inbox, then its bot / Dialogflow settings section.
3. Link your Dialogflow bot to that inbox.