Gmail Integration
Connect Gmail to Arahi's no-code AI agents and automate workflows in minutes.
About the Gmail integration
Gmail offers private and secure email by Google at no cost, for business and consumer accounts. With Arahi AI, you can connect Gmail to Bird, Bot for Slack, ClickSend SMS and 1,500+ other apps using AI-powered workflows. No coding required — set up triggers, actions, and intelligent automation in minutes.
- Category
- Communication
- Authentication
- oauth
Gmail automation use cases
- Message → CRM activity log
- Log threaded conversations from Gmail into the matching CRM contact or account record.
- Channel summary digest
- Summarize busy Gmail channels at end of day into a digest so nobody has to scroll up.
- Escalation routing
- Auto-route messages containing billing, bug, or churn keywords from Gmail to the right team.
- New-hire onboarding drip
- Drip onboarding tasks into Gmail DMs over a new hire's first two weeks — no manual prodding.
Gmail workflow examples
- Inbound thread to CRM ticket
New Gmail Message Received Trigger extracts sender and intent, then runs Create Zendesk Ticket for the right queue.
New support@ email -> Create Zendesk Ticket routed by topic.
- Contract draft flagging
When New Gmail Message Received Trigger sees an attachment on a contracts alias, save to Google Drive and ping legal in Slack.
Contracts email -> Drive save + Slack #legal alert.
- Outbound reply drafting
On each incoming thread, call OpenAI to draft a reply and save via Create email draft so the rep can review and send.
Incoming Gmail -> OpenAI draft -> saved as Gmail draft.
Gmail triggers
- Email Sent
- Triggers when a Gmail message is sent by the authenticated user. It polls the\ 'SENT' label and emits metadata including sender, recipients, subject, timestamp,\ and thread ID.
- New Gmail Message Received Trigger
- Triggers when a new message is received in Gmail.
Gmail actions
- Modify email labels
- Adds and/or removes specified gmail labels for a message; ensure `message id` and all `label ids` are valid (use 'listlabels' for custom label ids).
- Create email draft
- Creates a gmail email draft, supporting to/cc/bcc, subject, plain/html body (ensure `is html=true` for html), attachments, and threading.
- Create label
- Creates a new label with a unique name in the specified user's gmail account.
- Delete Draft
- Permanently deletes a specific gmail draft using its id; ensure the draft exists and the user has necessary permissions for the given `user id`.
- Delete message
- Permanently deletes a specific email message by its id from a gmail mailbox; for `user id`, use 'me' for the authenticated user or an email address to which the authenticated user has delegated access.
- Fetch emails
- Fetches a list of email messages from a gmail account, supporting filtering, pagination, and optional full content retrieval.
- Fetch message by message ID
- Fetches a specific email message by its id, provided the `message id` exists and is accessible to the authenticated `user id`.
- Fetch Message by Thread ID
- Retrieves messages from a gmail thread using its `thread id`, where the thread must be accessible by the specified `user id`.
- Get Gmail attachment
- Retrieves a specific attachment by id from a message in a user's gmail mailbox, requiring valid message and attachment ids.
- Get contacts
- Fetches contacts (connections) for the authenticated google account, allowing selection of specific data fields and pagination.
- Get People
- Retrieves either a specific person's details (using `resource name`) or lists 'other contacts' (if `other contacts` is true), with `person fields` specifying the data to return.
- Get Profile
- Retrieves key gmail profile information (email address, message/thread totals, history id) for a user.
- List drafts
- Retrieves a paginated list of email drafts from a user's gmail account. use verbose=true to get full draft details including subject, body, sender, and timestamp.
- List Gmail labels
- Retrieves a list of all system and user-created labels for the specified gmail account.
- List threads
- Retrieves a list of email threads from a gmail account, identified by `user id` (email address or 'me'), supporting filtering and pagination.
- Modify thread labels
- Adds or removes specified existing label ids from a gmail thread, affecting all its messages; ensure the thread id is valid.
- Move to Trash
- Moves an existing, non-deleted email message to the trash for the specified user.
- Patch Label
- Patches the specified label.
- Remove label
- Permanently deletes a specific, existing user-created gmail label by its id for a user; cannot delete system labels.
- Reply to email thread
- Sends a reply within a specific gmail thread using the original thread's subject, requiring a valid `thread id` and correctly formatted email addresses. supports attachments via the `attachment` parameter with valid `s3key`, `mimetype`, and `name`.
- Search People
- Searches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'other contacts'.
- Send Draft
- Sends the specified, existing draft to the recipients in the to, cc, and bcc headers.
- Send Email
- Sends an email via gmail api using the authenticated user's google profile display name, requiring `is html=true` if the body contains html and valid `s3key`, `mimetype`, `name` for any attachment.