Gmail Custom icon

Gmail Custom

Interact with Gmail API with auto-refreshing token

Actions12

Draft → Create

AI-generated

Summary

Create a new draft Gmail message with specified recipients, subject, and body, optionally including CC, BCC, and sender name.

Inputs

  • Authentication — Choose to authenticate using either a refresh token (auto-refresh) or a bearer token (manual).
  • Custom Refresh Token — Optionally override the refresh token from credentials when using refresh token authentication.
  • To (required) — Comma-separated recipient email addresses.
  • Subject (required) — Subject line of the draft message.
  • Message (required) — Body content of the draft message.
  • Additional Fields — Optional supplementary fields, including CC addresses, BCC addresses, and the sender's name.
  • Options — Additional optional parameters, including an override for the refresh token.

Output shape

A single record representing the created draft message.

Returns the full draft resource object as received from the Gmail API upon successful creation.

Discussion