Skip to main content
gmail.addLabel applies user or system labels to Gmail messages. System labels can change message state or placement.

Example

Apply the Processed label to each newly received message:
Each label must already exist in the selected Gmail account.

Inputs

Inputs accept compatible signals. Label IDs must match exactly. The action matches display names after trimming surrounding whitespace and ignoring capitalization. If any label doesn’t exist in the selected account, the action fails without modifying the messages.

Output

Returns a Signal<string[]> with the modified message IDs in input order.
This action updates messages, not entire threads, and does not create the label. Prefer dedicated actions such as gmail.archiveMessages, gmail.markMessagesAsSpam, and gmail.markMessagesAsRead when they express the system-label change you need.