# Gmail

Gmail is a robust email service provided by Google. It enables users to send, receive, and manage emails efficiently with powerful spam filtering, advanced search capabilities, and seamless integration with other Google services, making it ideal for personal and professional communication and collaboration.

To integrate Gmail with ZBrain Flow, follow these detailed steps:

* Click the '+' button in the Flow and search for **Gmail** in the ZBrain Flow.
* Select the specific task from the list you want to include in the Flow. You can perform the below listed tasks:
  * **Custom API Call**: Make a custom API call to a specific endpoint.
  * **Send Email**: Send an email through a Gmail account.

### **Custom API Call** <a href="#custom-api-call" id="custom-api-call"></a>

Make a custom API call to a specific endpoint.

#### **How to Configure Custom API Call** **to ZBrain Flow?** <a href="#how-to-configure-custom-api-call-to-zbrain-flow" id="how-to-configure-custom-api-call-to-zbrain-flow"></a>

* Create a **Connection** with your Gmail ID and save the connection with a proper name, or select the already created connection.
* Provide the **URL.** The **URL** refers to the specific endpoint of the API you want to interact with. This endpoint determines the resource or action the request will address (e.g., creating events, updating calendars, retrieving event details).
* Choose the **Method** to be used for the API call.
* Provide the **Headers.** These are key-value pairs sent along with the API request to convey additional information (e.g., authentication tokens, content type). Headers help the server process your request correctly. Authorization headers are injected automatically from your connectio&#x6E;**.**
* Provide the **Query Parameters** object. These are appended to the URL and are typically used to filter or modify the request. For example, adding `?status=active` might limit results to only active records.
* Include the main data payload (in formats such as JSON or form data) in **the Body** when making a request to create, update, or process the server's information.

### **Send Email** <a href="#send-email" id="send-email"></a>

Send an email through a Gmail account.

#### **How to Configure Send Email** **to ZBrain Flow?** <a href="#how-to-configure-send-email-to-zbrain-flow" id="how-to-configure-send-email-to-zbrain-flow"></a>

* Create a **Connection** with your Gmail ID and save the connection with a proper name, or select the already created connection.
* Provide the receiver's email address in the **Receiver Email (To)** field.
* If you want to copy a user, use the **CC Email** field and provide the email address.
* Add the email address if required for the **BCC Email** field.
* Provide the text for the **Subject** in the text box.
* Select the format of the email from the **Body Type** drop-down.
* Provide the content of the email in the **Body** field.
* If you reply to an email, add the email id value in the **Reply-To Email**.
* Provide the sender name in the **Sender Name** box.
* Provide email ID in the **Sender Email** box.
* Provide the required file you want to send as an attachment in the **Attachment** box.
* Enable the **Create draft** button to save the email.

<br>
