Tool

Create draft

The 'gmail-create-draft' AI tool enables users to effortlessly create email drafts directly within their Google Workspace account, streamlining workflow and enhancing email management.

Google Mail

Features

  • Supports creating drafts with multiple recipients including To, CC, and BCC fields.
  • Allows composing email bodies in both plain text and HTML formats.
  • Supports adding multiple attachments with customizable filenames and URLs or local paths.
  • Enables specifying 'From' email address and including HTML signatures.
  • Supports replying to specific messages by setting the 'inReplyTo' message ID.

Benefits

  • Saves time by automating draft creation within Gmail.
  • Increases email productivity with customizable recipient handling.
  • Enhances communication with rich text (HTML) email support.
  • Facilitates better organization by allowing attachments and message threading.
  • Provides flexibility to manage professional email signatures and sender addresses.

Description

Create a draft from your Google Workspace email account. See the documentation

IMPORTANT: The arguments have specific formats. Please follow the instructions below:

  • to: Return JSON in this format: string[]
  • cc: Return JSON in this format: string[]
  • bcc: Return JSON in this format: string[]
  • attachmentFilenames: Return JSON in this format: string[]
  • attachmentUrlsOrPaths: Return JSON in this format: string[]

Parameters

12 parameters

NameTypeDescription
torequiredstring[]

Enter a single recipient's email or multiple emails as items in an array.

ccstring[]

Enter a single recipient's email or multiple emails as items in an array.

bccstring[]

Enter a single recipient's email or multiple emails as items in an array.

subjectrequiredstring

Specify a subject for the email.

bodyrequiredstring

Include an email body as either plain text or HTML. If HTML, make sure to set the "Body Type" prop to html.

bodyTypeenum

Choose to send as plain text or HTML. Defaults to plaintext.

attachmentFilenamesstring[]

Array of the names of the files to attach. Must contain the file extension (e.g. .jpeg, .txt). Use in conjuction with Attachment URLs or Paths.

attachmentUrlsOrPathsstring[]

Array of the URLs of the download links for the files, or the local paths (e.g. /tmp/my-file.txt). Use in conjuction with Attachment Filenames.

inReplyTostring

Specify the message-id this email is replying to.

mimeTypestring

Mime Type of attachments. Setting the mime-type will override using the filename extension to determine attachment's content type.

fromEmailstring

Specify the email address that will be displayed in the "From" section of the email.

signaturestring

An HTML signature composed in the Gmail Web UI that will be included in the message. Only works with the HTML body type.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy