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

# Has Label?

> Check whether a Gmail message has a specific label.

The **Has Label?** action resolves a Gmail label and checks whether it is
currently applied to one message.

## Inputs

| Input                   | Type           | Required | Description                            |
| ----------------------- | -------------- | -------- | -------------------------------------- |
| **Third-party account** | Google account | Yes      | Gmail account containing the message.  |
| **Message ID**          | String         | Yes      | Gmail ID of the message to inspect.    |
| **Label**               | String         | Yes      | Existing label name or exact label ID. |

Label names are resolved case-insensitively after trimming whitespace.

## Outputs

| Output        | Type    | Description                                   |
| ------------- | ------- | --------------------------------------------- |
| **Has Label** | Boolean | Whether the resolved label is on the message. |

Use the boolean in an If action to avoid repeating work or to route labeled
messages differently.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Label not found">
    This action fails when the label does not exist. It returns `false` only
    when the label exists but is not applied to the message.
  </Accordion>
</AccordionGroup>
