Gmail is a widely used email service by Google, allowing you to send, receive, and organize emails effortlessly. It offers robust features like spam filtering, advanced search, and integration with Google Drive and Calendar. With strong security and mobile access, Gmail is ideal for efficient, secure communication.
Integrating Gmail with your application enables seamless communication, email automation, and efficient data management.
Authentication
Before integrating Gmail, ensure you have the following information:
Connection Name
: Choose a descriptive name for your Gmail connection to help you identify it within your application or integration settings. A meaningful name, like "MyAppGmailIntegration," helps maintain organization, especially when managing multiple integrations.Authentication Type
: Select the type of authentication to connect to your Gmail account securely:OAuth
Service Account Authentication
OAuth Based Authentication
The OAuth method involves signing in with your Google account credentials on Google's Single Sign-On page, and granting the necessary permissions to UnifyWorkflows, For OAuth-based authentication, you'll need to perform the following steps to generate access credentials:
Click on the Authorise button. You’ll be redirected to a Google sign-in page.
If you're not already logged into Google, enter your Google account credentials and Sign in.
Google will display a permissions request screen, showing the app name and the specific Google services we are requesting access to “
Read, compose, send, and permanently delete all your email from Gmail
” and “Send email on your behalf
”.Carefully review the permissions being requested. If you’re comfortable with them, click the "
Allow
" button.After granting access, you will be automatically redirected back to our platform, where you should see a confirmation message indicating that your Google account is now connected.
Service Account Based Authentication
Create a service account by following these steps.
Add domain-level access to the service account (based on client ID) by following these steps.
Ensure that the following scopes are added to your service account and domain-level access:
Use the service account email, private key, and a sample user email to authenticate the connection.
Actions Supported
Action | Description |
| Sends an email using Gmail. |
| Add labels to a message. |
| Creates a draft email in Gmail. |
| Creates a draft reply to an email in Gmail. |
| Creates a label in Gmail. |
| Moves the specified email to the trash. |
| Retrieves attachments from a specific email in Gmail |
| Gets a message from Gmail. |
| Gets a specific thread from Gmail. |
| Get specific details of a message. |
| Lists all emails received on your Gmail account |
| Removes labels from a message |
| Replies in a thread in Gmail |
| Searches for email in gmail |
Triggers Supported
Trigger | Description |
| Triggers when a new email is received in Gmail. |