# DialogFlow

La integración de **Dialogflow con Zasbot** permite mejorar la comprensión del lenguaje natural del chatbot, facilitando la gestión de preguntas frecuentes (FAQs) y el manejo de conversaciones más fluidas. Con esta herramienta, el bot puede responder automáticamente a consultas simples y escalar las más complejas a un agente humano o un flujo de automatización específico.

***

### **Configuración de Dialogflow en Zasbot**

#### **1. Configurar Dialogflow y Obtener la Clave de Servicio**

1. Accede a tu panel de **Dialogflow** y haz clic en el ícono de **configuración**.
2. Haz clic en el **enlace del proyecto** asociado.
3. En la esquina superior izquierda, abre el menú de opciones y selecciona **"IAM & Admin"** > **"Service Accounts"**.
4. Crea una **nueva cuenta de servicio** y sigue las instrucciones para configurarla.
5. Una vez creada, accede a la opción **"Administrar Claves"** y haz clic en **"Agregar Clave"**.
6. Descarga el archivo **JSON** generado, que contiene la clave de servicio.

#### **2. Integrar Dialogflow en Zasbot**

1. En Zasbot, dirígete a **Integraciones** > **Dialogflow**.
2. Sube el archivo **JSON** descargado de Dialogflow.
3. Haz clic en **"Sincronizar Agentes"** para completar la integración.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zasbot.gitbook.io/zasbot-help-docs/inteligencia-artificial/dialogflow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
