createLabel creates a user-owned Gmail label and returns its complete metadata. Use it when an automation needs a stable label to categorize messages or threads.
Example
automations/create-follow-up-label.automation.ts
Inputs
Each input can also be a compatible
Signal from an earlier trigger or action.
Output
Returns aSignal<GmailLabel>:
labelId when later actions need an immutable identifier. A label’s display name can change.
Gmail only accepts predefined background and text color combinations.
Unsupported color pairs are rejected by Gmail.