> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/flow-studio/nodes/gmail-node.md).

# Gmail Node

####

{% embed url="<https://www.loom.com/share/38786455d56b462ea48adf0d69ed58fc>" %}

#### 📧 This action will allow you to send emails using your Gmail account

***

**📘 What you’ll learn in this document:**

* **Step 1:** Set Up Credentials
* **Step 2:** Connect Gmail
* **Step 3:** Send a Test Email

***

#### 🔐 Step 1: Set Up Credentials

> Inside a flow, go to **"Actions"** and search for **Gmail**.

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

#### ✉️ Step 2: Connect Gmail

* Choose the **"✉️ Send Email"** integration node from Gmail and **drag it into the flow**.
* Connect the arrow from the **Trigger** to the **Gmail node**.
* Then click on the **Gmail node**, go to the **"Configuration"** section, and click **"+ Add Credential"** to add your credentials.

> ⚠️ **Note:** Don’t forget to save your flow by clicking **"Save"**.

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

#### ✅ Step 3: Authorize Gmail

* When you click **"+ Add Credential"**, you’ll be taken to an interface where you need to enter the **email you want to integrate with Dapta**.
* Enter your **email address** and click **"Confirm"**.

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

#### 🔓 Step 4: Grant Access

* You’ll be asked to **confirm the email** and **allow access**.
* Click **"Allow"** to proceed.

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

#### 📬 Step 5: Gmail Connected

* You will now see that you have a **Gmail account connected**.

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

#### 🔄 Step 6: Select Gmail Credential

* Back in **Flow Studio**, go to the flow you created.
* Click on the **Gmail node**, and now you’ll be able to **select the email credential** you configured earlier.

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

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

#### ✅ Confirmation

* If you see this, it means **Dapta is now connected to your email**!

***

#### ✉️ Step 7: Send a Test Email

* Now let’s send a **test email**.
* Inside the **Configuration** section, go to the **"To:"** field and enter the **email address** where you want to send the test message.

<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/uz7SAC56cKfd8zJkcs0i" alt=""><figcaption></figcaption></figure>

#### 📝 Step 8: Fill in Email Details

* **CC:** Carbon copy of the email. Enter multiple recipients separated by commas.
* **BCC:** Blind carbon copy. Enter multiple recipients separated by commas.
* Enter the **subject** of the test email.
* Then, enter the **body text** of the email.

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

#### 🧩 Step 9: Choose Format and Send

* You can write your email in **plain text** or **HTML**.
* If you want to **save this email as a template** for future use, click **"Save as Template"**.
* Then click **"Run Flow"**.
* Your email will be sent to the recipient(s) you configured.

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

#### 🔍 Step 10: Verify the Flow

* You can verify that the flow worked by checking the **"Output"** section.

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

#### 🧾 Step 11: Check the Email ID

* Go to the **"send\_email" object**, then open the **"output"** object inside it.
* You should see an **ID** that looks like this: `"1981ab80023222f3"`.

***

#### 🎉 All Done!

You can now **send emails directly from Flow Studio**!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.dapta.ai/flow-studio/nodes/gmail-node.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
