Email (Gmail)
Send emails through connected Google accounts — gated by the per-account daily send budget and warming system — and configure Google App Passwords.
Tools (2)
Section titled “Tools (2)”send_gmail
Section titled “send_gmail”Full name: campaignstack_send_gmail
Send an email via Gmail using a connected Google account. Requires a Google account to be connected and linked to the workspace — use the Google integrations settings in the app to connect one first. If googleAccountId is omitted, uses the first connected Google account linked to the workspace. Returns the Gmail messageId and threadId on success. Provide htmlBody for rich formatting; body is used as the plain-text fallback.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
workspaceId | string | No | — | Workspace ID (defaults to the bound workspace) |
to | string | Yes | — | Recipient email address |
subject | string | Yes | — | Email subject line (min length: 1) |
body | string | Yes | — | Plain-text email body (min length: 1) |
htmlBody | string | No | — | Optional HTML email body (used instead of body for rich formatting) |
googleAccountId | string | No | — | Google account ID to send from. Defaults to the first connected Google account linked to the workspace. |
set_google_app_password
Section titled “set_google_app_password”Full name: campaignstack_set_google_app_password
Set or update the Google App Password for a connected Google account. Validates the App Password via IMAP before storing it encrypted. Required for email warmup (MailReach integration) and future IMAP-based features. Generate an App Password at myaccount.google.com > Security > App Passwords. IMAP must be enabled in Gmail settings. Returns { success: true, status: ‘valid’, authenticatedEmail } on success. Use campaignstack_list_integrations to find valid googleAccountId values.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
workspaceId | string | No | — | Workspace ID (defaults to the bound workspace) |
googleAccountId | string | Yes | — | Google account ID to configure the App Password for. Use campaignstack_list_integrations to find valid account IDs. (min length: 1) |
appPassword | string | Yes | — | 16-character Google App Password (without spaces). Generate one at myaccount.google.com > Security > App Passwords. (min length: 1, max length: 64) |
email | string | No | — | Email address to associate with this App Password (defaults to the account’s primary email). Used to verify IMAP authentication matches the correct account. |