# Nodo Gmail ✉️

Esta acción le permitirá enviar correos usando su cuenta de Gmail\
Lo que vas a aprender en este documento es:

Paso 1: Configurar Credenciales

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FVV83IkGULT6JeneFD4aR%2FCredenciales%20Gmail.mp4?alt=media&token=9aef6109-3e61-4150-a3ee-3efae3257497>" %}

{% file src="/files/97L2dKiNe3SvsW8SRiCk" %}

Paso 2: Conectar Gmail

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMUYDYzjmxpzlYaw0gcaZ%2Fuploads%2FuVwVSuMOxWe5EqIJWNTF%2FEnviar%20mails%20Lista%20GSheet.mp4?alt=media&token=0f6ed8d9-8e52-43e8-9af3-2b7cb3c20365>" %}

Paso 3: Enviar Correo de Prueba

### Paso 1: Configurar Credenciales

1. Dentro de un flujo, vas a **"Actions"** y buscas Gmail

<figure><img src="/files/8GWByYJOh8BrdPooaQKW" alt=""><figcaption></figcaption></figure>

2. Eliges "✉️**Send Email**" Integration node from Gmail y lo arrastras al flujo
3. Conectas la flecha del Trigger con el nodo Gmail,\
   luego haces click en el nodo de Gmail, y en "Configuration" haces click en **"+ Add Credential"** para añadir tus credenciales.\
   \
   **Nota:** *No olvides guardar tu flujo haciendo click en **"*** :floppy\_disk: ***Save"***

<figure><img src="/files/UYT8xYun4195bznZqlBy" alt=""><figcaption></figcaption></figure>

4. Al hacer click en "**+ Add Credential**" te lleva a una interfaz donde debes ingresar el email que deseas integrar con Dapta.\
   Ingresa el email y dale a **"Confirm"**

<figure><img src="/files/dZSuLtLlPaR6i5nFmuro" alt=""><figcaption></figcaption></figure>

5. Te pedirá confirmar el email y Permitir el acceso,\
   Haz Click en **"Allow"**

<figure><img src="/files/0QyBexp6keAdwrAfh2p0" alt=""><figcaption></figcaption></figure>

6. Ahora verás que tienes una cuenta conectada en Gmail

<figure><img src="/files/Rz5jmJiJrFw2OVGjTLNS" alt=""><figcaption></figcaption></figure>

### Paso 2: Conectar Gmail

De vuelta a Flow Studio, ve al flujo que creaste, y al hacer click en el nodo Gmail, ahora podrás elegir la credencial del email que configuraste previamente.

<figure><img src="/files/SstJ8JjQ2Lut05K5bzY3" alt=""><figcaption></figcaption></figure>

Si ves esto, quiere decir que Dapta ya se puede conectar a tu email!

### Paso 3: Enviar mensaje de prueba

1. Ahora vamos a enviar un email de prueba.\
   Dentro de Configuration, vas a la opción **"To:"** y vas a ingresar el email al que quieres enviar el mensaje de prueba

<figure><img src="/files/fbNBys9YbqZZE3yd5hbX" alt=""><figcaption></figcaption></figure>

2. Tienes también las siguientes opciones para enviar mensajes desde Gmail:

<figure><img src="/files/QOYHrmRD6Q8sENbLhAJH" alt=""><figcaption></figcaption></figure>

* **CC:** Copia del correo electrónico. Introduce varios destinatarios del mail separados por comas.
* BCC: Copia oculta del correo electrónico. Introduzca varios destinatarios separados por comas.

3. Ahora debes ingresar el Título del Email de Prueba,\
   y también el texto del email.

<figure><img src="/files/UcLbRZptvhzqj8GfQcCY" alt=""><figcaption></figcaption></figure>

Puedes escribir tanto en texto plano como en HTML

Si quieres que este email se guarde como una "plantilla" para volver a usar en otros mensajes, dale click en **"Save as Template"**

4. Ahora dale click a Run Flow\
   Tu email se enviará al destinatario(s) que configuraste.

<figure><img src="/files/sGMdhTJ9dXF2ziQpqSZo" alt=""><figcaption></figcaption></figure>

5. Puedes verificar que el flujo funcionó en la sección **"Output"**

<figure><img src="/files/dcp6gTOyENUEwFo9L6z2" alt=""><figcaption></figcaption></figure>

Vas al "objeto" send\_email, dentro tiene otro "objeto" output,\
y debe tener un id con una cadena de caracteres parecida a esta: "1981ab80023222f3"

6. Y listo!\
   De esta forma puedes enviar mensajes desde Flow Studio

<figure><img src="/files/nosSiKlu74ki4j0wsfkr" alt="" width="217"><figcaption></figcaption></figure>


---

# 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://docs.dapta.ai/dapta-docs-es/nodo-gmail.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.
