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

# Sent Email

> Start a workflow when the connected Gmail account sends a message.

The **Sent Email** trigger starts a workflow for messages sent by the connected
Gmail account. Use it to log outbound conversations, synchronize a CRM, or
continue a process after a person sends mail.

## Configuration

| Field                            | Type           | Required | Description                                                |
| -------------------------------- | -------------- | -------- | ---------------------------------------------------------- |
| **Google Account**               | Google account | Yes      | Gmail account whose sent mail is watched.                  |
| **Subject Filter**               | String         | No       | Required subject text. Matching is case-sensitive.         |
| **Trigger on automated emails?** | Boolean        | No       | Include messages sent by WorkflowDog. Defaults to `false`. |

<Warning>
  Enabling **Trigger on automated emails?** can create an infinite loop when the
  resulting workflow sends another Gmail message that matches this trigger. Add
  a reliable filter or guard before enabling it.
</Warning>

## Trigger data

| Output             | Type              | Description                                      |
| ------------------ | ----------------- | ------------------------------------------------ |
| **Message ID**     | String            | Gmail ID of the sent message.                    |
| **Thread ID**      | String            | Gmail conversation ID.                           |
| **Sender Name**    | String            | Parsed sender display name, when present.        |
| **Sender Address** | String            | Parsed sender email address.                     |
| **Subject**        | String            | Message subject.                                 |
| **Plain Text**     | String            | Plain-text MIME content, when present.           |
| **HTML**           | String            | HTML MIME content, when present.                 |
| **Is Reply?**      | Boolean           | Whether the message has an `In-Reply-To` header. |
| **Attachments**    | List of files     | Files downloaded from the sent message.          |
| **Headers**        | Object of strings | Lowercase header names mapped to their values.   |

## Example: log outbound customer mail

Keep **Trigger on automated emails?** off, then use the message headers and
sender details to find the corresponding customer. Connect the customer lookup
to your CRM action and record the sent message as an activity. This captures
mail sent by a person without allowing CRM-generated follow-ups to start the
workflow again.

## Troubleshooting

<AccordionGroup>
  <Accordion title="An automated message was ignored">
    That is the default safeguard. Enable **Trigger on automated emails?** only
    after ensuring the workflow cannot trigger itself repeatedly.
  </Accordion>

  <Accordion title="The subject filter did not match">
    Matching is case-sensitive and looks for the filter as a substring of the
    subject. Remove surrounding whitespace and copy the exact capitalization.
  </Accordion>
</AccordionGroup>
