> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Draft Email

> Create an unsent Gmail draft with optional recipients and attachments.

The **Draft Email** action saves a new message in Gmail without sending it. Use
it for human review, approval workflows, or messages that should be completed
manually in Gmail.

## Inputs

| Input                   | Type                   | Required | Description                                  |
| ----------------------- | ---------------------- | -------- | -------------------------------------------- |
| **Third-party account** | Google account         | Yes      | Gmail account that owns the draft.           |
| **Recipients**          | List of email strings  | No       | `To` addresses.                              |
| **CC**                  | List of email strings  | No       | Carbon-copy addresses.                       |
| **Subject**             | String                 | No       | Draft subject. Defaults to an empty subject. |
| **Body**                | String                 | No       | Draft content.                               |
| **Body Type**           | `Plain Text` or `HTML` | No       | Body encoding. Defaults to **Plain Text**.   |
| **Attachments**         | List of files          | No       | Files to include in the draft.               |

Because this action creates a draft, recipients and message content can remain
empty and be completed later in Gmail.

## Outputs

| Output         | Type   | Description                                |
| -------------- | ------ | ------------------------------------------ |
| **Message ID** | String | Identifier returned for the created draft. |

<Note>
  Despite its label, this output is the identifier accepted by **Delete Draft**.
</Note>

## Example: prepare a message for approval

```text theme={null}
Generate customer update
  → Gmail: Draft Email
  → Notify reviewer that a draft is ready
```

## Troubleshooting

<AccordionGroup>
  <Accordion title="The draft was sent immediately">
    Use **Draft Email**, not **Send Email**. This action only saves the message
    in the connected account's Drafts folder.
  </Accordion>

  <Accordion title="HTML appears as text in the draft">
    Choose **HTML** as the **Body Type** before providing markup.
  </Accordion>
</AccordionGroup>
