Gmail

GMAIL_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.

Remote gmail

Other tools also called GMAIL_CREATE_EMAIL_DRAFT? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "cc": {
      "type": "array",
      "items": {
        "type": "string",
        "properties": {}
      },
      "title": "Cc",
      "default": [],
      "examples": [
        [
          "[email protected]",
          "[email protected]"
        ]
      ],
      "description": "'Cc' (carbon copy) recipient email addresses."
    },
    "bcc": {
      "type": "array",
      "items": {
        "type": "string",
        "properties": {}
      },
      "title": "Bcc",
      "default": [],
      "examples": [
        [
          "[email protected]"
        ]
      ],
      "description": "'Bcc' (blind carbon copy) recipient email addresses."
    },
    "body": {
      "type": "string",
      "title": "Body",
      "examples": [
        "Hello Team,\n\nPlease find the attached report for your review.\n\nBest regards,\nYour Name",
        "<h1>Meeting Confirmation</h1><p>This email confirms our meeting scheduled for next Tuesday.</p>"
      ],
      "description": "Email body content (plain text or HTML); `is_html` must be True if HTML."
    },
    "is_html": {
      "type": "boolean",
      "title": "Is Html",
      "default": false,
      "examples": [
        "True",
        "False"
      ],
      "description": "Set to True if `body` is HTML, otherwise the action may fail."
    },
    "subject": {
      "type": "string",
      "title": "Subject",
      "examples": [
        "Project Update Q3",
        "Meeting Reminder"
      ],
      "description": "Email subject line."
    },
    "user_id": {
      "type": "string",
      "title": "User Id",
      "default": "me",
      "examples": [
        "me",
        "[email protected]"
      ],
      "description": "User's email address or 'me' for the authenticated user."
    },
    "thread_id": {
      "type": "string",
      "title": "Thread Id",
      "default": null,
      "examples": [
        "17f45ec49a9c3f1b"
      ],
      "nullable": true,
      "description": "ID of an existing Gmail thread to reply to; omit for new thread."
    },
    "attachment": {
      "type": "object",
      "title": "FileUploadable",
      "default": null,
      "nullable": true,
      "required": [
        "name",
        "mimetype",
        "s3key"
      ],
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "s3key": {
          "type": "string",
          "title": "S3Key"
        },
        "mimetype": {
          "type": "string",
          "title": "Mimetype"
        }
      },
      "description": "File to attach to the email.",
      "file_uploadable": true,
      "additionalProperties": false
    },
    "recipient_email": {
      "type": "string",
      "title": "Recipient Email",
      "examples": [
        "[email protected]"
      ],
      "description": "Primary recipient's email address."
    },
    "extra_recipients": {
      "type": "array",
      "items": {
        "type": "string",
        "properties": {}
      },
      "title": "Extra Recipients",
      "default": [],
      "examples": [
        [
          "[email protected]",
          "[email protected]"
        ]
      ],
      "description": "Additional 'To' recipient email addresses."
    }
  }
}
          

Provider

Gmail →