Gmail Actions
Automate your email workflows with comprehensive Gmail actions. Send emails, manage drafts, search your inbox, and handle email threads — all within SmartFlow.

Prerequisites
Before using Gmail actions, you must:
- Connect your Gmail account in Channels → Gmail
- Authorize the required permissions via Google OAuth
See Gmail Channel Setup for detailed connection instructions.
Available Triggers
📥 Gmail AI Draft
Trigger Type: CHAT_SERVICE
Triggered when a user sends an email to your connected Gmail instance. Use this to automatically process incoming emails with AI.
| Field | Description |
|---|---|
| Channel | Gmail |
| Event | New email received |
Example Workflow:
Gmail AI Draft (Trigger)
↓
AI Request (Analyze email content)
↓
Create Gmail Draft (Generate AI response)
Available Actions
| Action | Code | Description |
|---|---|---|
| 📤 Send Gmail Email | GMAIL_SEND_EMAIL | Send a new email directly |
| 📬 Read Gmail Emails | GMAIL_READ_EMAILS | Fetch emails from your inbox |
| 📧 Get Gmail Email | GMAIL_GET_EMAIL | Get a specific email by ID |
| ↩️ Reply to Gmail Email | GMAIL_REPLY | Reply to an existing email thread |
| 🔍 Search Gmail Emails | GMAIL_SEARCH | Search emails with Gmail query syntax |
| ✅ Mark Gmail Email as Read | GMAIL_MARK_READ | Mark an email as read |
| 📝 Create Gmail Draft | GMAIL_CREATE_DRAFT | Create a new email draft |
| 📋 List Gmail Drafts | GMAIL_LIST_DRAFTS | List all drafts in your account |
| 📨 Send Gmail Draft | GMAIL_SEND_DRAFT | Send an existing draft |
| 🗑️ Delete Gmail Draft | GMAIL_DELETE_DRAFT | Delete a draft |
| 📂 Get Email Thread | GMAIL_GET_THREAD | Retrieve full email conversation |
📤 Send Gmail Email
Send a new email directly from your connected Gmail account.
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
| To | ✅ | Recipient email address | |
| Subject | String |