GMAIL_EMAIL_SENT_TRIGGER
Fires whenever you send an email from Gmail. You'll receive details about the message including who it was sent to, the subject line, and when it was sent.
Gmail
2 triggers and 63 actions for Gmail workflows.
Each trigger lists the event it fires on, the data it sends, and a template you can use it in.
Real-time push from the source.
GMAIL_EMAIL_SENT_TRIGGER
Fires whenever you send an email from Gmail. You'll receive details about the message including who it was sent to, the subject line, and when it was sent.
GMAIL_NEW_GMAIL_MESSAGE
Fires when a new email arrives in your Gmail inbox. This happens immediately when the message is received.
Operations are the actions a workflow can take in Gmail, grouped by category. Each lists its method, parameters, and a template you can drop it into.
Manage email aliases that represent different send-as identities for your Gmail account. Use these operations to create, view, and update the addresses from which you can send emails in automated workflows.
List send-as aliases
GMAIL_LIST_SEND_ASRetrieves all available email addresses and aliases you can send from in your Gmail account, including your primary address and any custom 'from' addresses you've configured.
Patch send-as alias
GMAIL_PATCH_SEND_ASUpdate an existing send-as email alias in Gmail by modifying its display name, reply-to address, signature, or other settings without creating a new one.
Retrieve file attachments from Gmail messages during workflow automation. This enables you to access and process documents, images, and other files included in emails without downloading them manually.
Get Gmail attachment
GMAIL_GET_ATTACHMENTDownload and retrieve a specific attachment from a Gmail message so you can access files sent to you by clients, customers, or collaborators. The attachment is returned as a downloadable file that you can immediately use or store.
Access and search your Gmail contacts and People directory to enrich workflows with recipient information. Use these operations to look up contact details or integrate contact data into your automation processes.
Search People
GMAIL_SEARCH_PEOPLEFind contacts in your Gmail address book by searching across names, emails, phone numbers, and organizations. This helps you quickly locate specific people you've saved without manually browsing your entire contact list.
Get contacts
GMAIL_GET_CONTACTSRetrieve your saved contacts and other connections from your Google account to access their names, email addresses, and other details. Use this to programmatically access your contact list for automation and integration purposes.
Get People
GMAIL_GET_PEOPLERetrieves contact information from your Gmail account, including details about specific people or your other contacts list. This helps you access and manage your contact data programmatically for business purposes.
Create, manage, and send email drafts programmatically as part of your automation workflow. These operations let you compose messages, save them for later, modify content, and ultimately send them when ready.
Create email draft
GMAIL_CREATE_EMAIL_DRAFTCreates a Gmail email draft that you can review and edit before sending, allowing you to compose messages with recipients, subject, body content, and attachments. This gives you time to refine your message and send it on your schedule.
Delete Draft
GMAIL_DELETE_DRAFTPermanently removes a draft email from Gmail, freeing up space and ensuring unwanted messages don't get accidentally sent later.
Get Draft
GMAIL_GET_DRAFTRetrieve the full content and details of a specific Gmail draft to review or verify it before sending. This helps you check formatting, recipients, and message body without opening your email client.
List Drafts
GMAIL_LIST_DRAFTSRetrieve all email drafts from your Gmail inbox to view, organize, or recover unsent messages. Use this to audit draft content, find incomplete emails, or build automated workflows around your drafting process.
Send Draft
GMAIL_SEND_DRAFTSends a pre-written draft email to its existing recipients without any modifications. Use this when you've already prepared and reviewed an email draft and are ready to deliver it immediately.
Define and manage Gmail filters that automatically organize, label, or process incoming emails based on rules. Use these operations to set up automated email handling in your workflows without manual sorting.
Create Gmail filter
GMAIL_CREATE_FILTERAutomatically organize and manage your incoming emails by creating filters that sort messages based on criteria like sender, subject, or keywords, then apply actions such as labeling, archiving, or deleting them.
Delete Gmail filter
GMAIL_DELETE_FILTERPermanently removes an email filtering rule from your Gmail account so emails matching that filter's criteria will no longer be automatically organized or processed.
Get Gmail filter
GMAIL_GET_FILTERRetrieve the details of a specific Gmail filter to view its criteria and actions. This helps you understand how messages are being automatically organized or processed in your inbox.
List Gmail filters
GMAIL_LIST_FILTERSRetrieve all email filter rules configured in your Gmail account to review existing automation and prevent duplicate filter creation. Use this before setting up new filters or conducting a security check of your email management setup.
Configure email forwarding rules and auto-forwarding settings for your Gmail account. These operations allow you to redirect emails automatically and manage which addresses receive your incoming mail.
Get Auto-Forwarding Settings
GMAIL_GET_AUTO_FORWARDINGRetrieve your Gmail account's auto-forwarding configuration, including whether it's enabled and where emails are being sent. This helps you verify your email routing setup and ensure messages reach the right destinations.
List forwarding addresses
GMAIL_LIST_FORWARDING_ADDRESSESRetrieve all email forwarding addresses configured on a Gmail account to see which addresses can receive forwarded messages. This helps you manage where your emails are being sent and maintain visibility over your email routing setup.
Retrieve the history of changes to your Gmail account, including message additions, deletions, and label modifications. This helps you track and audit email activity for compliance or debugging purposes in your automation.
List Gmail history
GMAIL_LIST_HISTORYRetrieve incremental changes to your Gmail mailbox since a specific point in time, allowing you to stay synchronized with new messages, deletions, and label changes without processing your entire inbox repeatedly.
Create, modify, and manage labels to organize and categorize emails in your Gmail account. These operations enable you to automate email classification, update label properties, and apply labels to messages and threads.
Create label
GMAIL_CREATE_LABELOrganize your Gmail inbox by creating custom labels to categorize and manage emails effectively. This operation generates a unique label that can be applied to messages and threads for better email organization.
Modify email labels
GMAIL_ADD_LABEL_TO_EMAILOrganize and categorize your emails by applying Gmail labels to specific messages, helping you keep your inbox structured and easy to search. This is useful for sorting incoming mail into projects, clients, or priority levels.
Delete label from account (permanent)
GMAIL_DELETE_LABELPermanently removes a custom Gmail label from your account, deleting it from all associated messages. This is useful for cleaning up outdated or unused organizational categories.
Get label details
GMAIL_GET_LABELRetrieve detailed information about a specific Gmail label including its name, visibility settings, and message counts. This helps you understand how your emails are organized and manage your labeling system.
List Gmail labels
GMAIL_LIST_LABELSRetrieves all labels in your Gmail account and returns their internal IDs needed to organize, filter, and manage emails programmatically. Use this to get the exact label identifiers required by other Gmail operations.
Modify thread labels
GMAIL_MODIFY_THREAD_LABELSOrganize your Gmail threads by adding or removing labels in bulk, allowing you to quickly categorize entire conversations for better email management and retrieval.
Patch Label
GMAIL_PATCH_LABELUpdate the name, color, or other properties of a custom Gmail label you've created to keep your email organization system current and aligned with your business needs.
Remove label (Deprecated)
GMAIL_REMOVE_LABELPermanently deletes a custom Gmail label from your account, helping you clean up and reorganize your email management system.
Send, retrieve, modify, and delete individual emails and threads in Gmail. These core operations form the foundation of email automation, allowing you to manage message lifecycle from creation through archival.
Batch delete Gmail messages
GMAIL_BATCH_DELETE_MESSAGESPermanently remove multiple Gmail messages at once, completely deleting them without sending to Trash. Use this when you need to enforce email retention policies or maintain a clean inbox at scale.
Fetch emails
GMAIL_FETCH_EMAILSRetrieve a list of emails from your Gmail inbox with support for filtering and pagination to find specific messages or manage large volumes of email data efficiently.
Reply to email thread
GMAIL_REPLY_TO_THREADSend a reply within an existing Gmail conversation thread to continue an ongoing discussion with clients or contacts. This keeps related messages organized together rather than starting a new email chain.
Send Email
GMAIL_SEND_EMAILSend emails directly from your Gmail account with support for recipients, attachments, and HTML formatting. This is ideal for automating customer communications, notifications, and follow-ups without leaving your workflow.
Batch modify Gmail messages
GMAIL_BATCH_MODIFY_MESSAGESUpdate labels and status across multiple Gmail messages simultaneously, allowing you to organize, archive, or categorize dozens of emails in a single action.
Create Prompt Post
GMAIL_CREATE_PROMPT_POSTSend a single prompt to the Sanity Content Agent and receive an immediate response without maintaining conversation history, perfect for one-off requests that don't require context from previous interactions.
Delete message
GMAIL_DELETE_MESSAGEPermanently removes a specific email message from your Gmail mailbox, helping you clean up unwanted or outdated messages.
Delete thread
GMAIL_DELETE_THREADPermanently remove a specific email thread and all its messages from your Gmail account. This action is irreversible, so use it only when you're certain you no longer need the conversation.
Fetch message by message ID
GMAIL_FETCH_MESSAGE_BY_MESSAGE_IDRetrieves the full content of a specific email message by its ID, allowing you to access the complete message details including body, attachments, and metadata. This is essential for reading individual emails when you know their ID or need to process specific messages for business workflows.
Fetch Message by Thread ID
GMAIL_FETCH_MESSAGE_BY_THREAD_IDRetrieves all messages from a specific Gmail conversation thread, allowing you to access the full context and history of an email exchange with a customer or collaborator.
Forward email message
GMAIL_FORWARD_MESSAGEForward an existing Gmail message to new recipients while keeping the original content and attachments intact, helping you quickly share important emails with team members or clients.
Import message
GMAIL_IMPORT_MESSAGEAdds an existing email message directly into your Gmail mailbox, allowing you to import messages from external sources or archives without going through standard email delivery. This is useful when you need to restore, organize, or consolidate emails that didn't arrive through normal channels.
Insert message into mailbox
GMAIL_INSERT_MESSAGEAdds an email directly to your mailbox without sending it, allowing you to archive important messages, create drafts, or restore emails from backups.
List Gmail messages (Deprecated)
GMAIL_LIST_MESSAGESRetrieves a list of email messages from your mailbox with optional filtering by labels or search criteria to help you find and organize specific emails.
List threads
GMAIL_LIST_THREADSRetrieve a list of email threads from your Gmail inbox with optional filtering and pagination to organize and find conversations. This helps you bulk-process, search, or analyze your emails programmatically without manually opening Gmail.
Move to Trash
GMAIL_MOVE_TO_TRASHSafely removes an email message to your trash folder, allowing you to recover it later if needed without permanently deleting it. Use this when you want to clean up your inbox while maintaining the option to restore important messages.
Trash thread
GMAIL_MOVE_THREAD_TO_TRASHMoves an entire email conversation and all its messages to trash, allowing you to clean up your inbox and organize communications. This helps you remove old threads without permanently deleting them.
Retrieve your Gmail account profile information including your email address and basic account details. This operation provides foundational account metadata for use in workflow initialization and validation.
Get Profile
GMAIL_GET_PROFILERetrieves essential Gmail account information including the email address, total message and conversation counts, and a history ID for tracking changes. This helps you verify mailbox connectivity and get a snapshot of account activity.
Access security configurations including S/MIME certificates and Client-Side Encryption identities and key pairs. Use these operations to manage encrypted communication and verify secure email setup in your automation.
List CSE identities
GMAIL_LIST_CSE_IDENTITIESRetrieve all client-side encrypted email identities and their associated key pair configurations for your Gmail account. Use this to manage and audit your encrypted email setup.
List CSE key pairs
GMAIL_LIST_CSE_KEYPAIRSRetrieve all client-side encryption key pairs configured for your Gmail account, including their public keys and current status. This helps you manage encrypted communication settings and verify which encryption keys are active for your email security.
List S/MIME configs
GMAIL_LIST_SMIME_INFORetrieve all S/MIME certificate configurations for a specific email address so you can verify which security certificates are active and available for encrypted email sending.
Configure Gmail account settings such as language preferences, vacation responders, and IMAP/POP protocols. These operations let you automate account configuration and enable or disable features programmatically.
Get IMAP Settings
GMAIL_SETTINGS_GET_IMAPRetrieve your Gmail account's IMAP configuration details to understand how your email client can access and manage your messages. This helps you verify your email setup is correct and troubleshoot connection issues.
Get Language Settings
GMAIL_GET_LANGUAGE_SETTINGSRetrieve the language preference currently set for a Gmail account to understand how the interface is displayed for that user.
Get Vacation Settings
GMAIL_GET_VACATION_SETTINGSRetrieve your Gmail vacation responder settings to check if out-of-office auto-replies are enabled and view their configuration. This helps you verify your away messages are properly set up before taking time off.
Get POP settings
GMAIL_SETTINGS_GET_POPTool to retrieve POP settings for a Gmail account.
Get send-as alias
GMAIL_SETTINGS_SEND_AS_GETTool to retrieve a specific send-as alias configuration for a Gmail user.
Stop watch notifications
GMAIL_STOP_WATCHTool to stop receiving push notifications for a Gmail mailbox.
Untrash Message
GMAIL_UNTRASH_MESSAGETool to remove a message from trash in Gmail.
Untrash thread
GMAIL_UNTRASH_THREADTool to remove a thread from trash in Gmail.
Update draft
GMAIL_UPDATE_DRAFTUpdates (replaces) an existing Gmail draft's content in-place by draft ID.
Update IMAP settings
GMAIL_UPDATE_IMAP_SETTINGSTool to update IMAP settings for a Gmail account.
Update Label
GMAIL_UPDATE_LABELTool to update the properties of an existing Gmail label.
Update Language Settings
GMAIL_UPDATE_LANGUAGE_SETTINGSTool to update the language settings for a Gmail user.
Update POP settings
GMAIL_UPDATE_POP_SETTINGSTool to update POP settings for a Gmail account.
Update send-as alias
GMAIL_UPDATE_SEND_ASTool to update a send-as alias for a Gmail user.
Update User Attributes Values
GMAIL_UPDATE_USER_ATTRIBUTES_VALUESUpdate user attribute values for a resource.
Update Vacation Settings
GMAIL_UPDATE_VACATION_SETTINGSTool to update vacation responder settings for a Gmail user.
Combine these triggers and actions with the tools you already run.