# 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-91c2c04683d819ce5eacb9ec1c27c1914c04d99b%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-570378377dd88c35cab5b658db0be26a63289cdf%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-1cde21f3f261b60957e11d089f4602c68dddce10%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-fe6d7604f48f5305e719abe65232b5dadf4dff8a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 📬 Step 5: Gmail Connected

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

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-30cd38b11675a8e7ce9eea6c5bc126074c115c18%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-f4a094ccfdad6ff2f0e0f760702c448690a77609%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-e4a583101b2e8ec4462dcc3b15cd19027d48c56e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-c43f7d896b320cbe99c1905e5fa56bda575fbb44%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-7814ba6ac29ff95e3da58c98becac50664410165%2Fimage.png?alt=media" 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="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-c49d33fd91226d0eb1c437cb7a40326f01aecf30%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 🔍 Step 10: Verify the Flow

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

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-98cf4beba2e411d1313f9dce15cd00ae8621b8e0%2Fimage.png?alt=media" 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**!
