Skip to main content
markAsImportant adds Gmail’s IMPORTANT system label to one or many messages. Use it to surface automation-selected mail in Gmail’s Important view.

Example

Mark newly received messages from a billing system as important:

Inputs

Every input field also accepts a compatible Signal; the example passes the filtered message ID signal directly.

Output

The action returns a Signal<string[]> containing the modified message IDs in input order. Gmail represents importance with the IMPORTANT system label. Gmail’s own importance classifier can change this state later, and the action updates only the supplied messages—not every message in their threads.