Create Label
gmail.create_label
ActionEmailconnection required
Calls the Gmail API labels.create; a 409 resolves to the existing label.
Create a Gmail label, or return the existing one with that name.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Gmail
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
name Label name. Nest with '/', e.g. Customers/Acme. Supports {{ }}. | string | Yes | — | — | — |
Output
One shape.
label
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
label_id Feed to gmail.add_label. | string | — |
name | string | — |
created False when the label already existed. | boolean | — |
{
"created": false,
"label_id": "",
"name": "",
"ok": false
}Templates that use Gmail
Solutions with Gmail
See Create Label run in a workflow.
In a technical demo we add the Gmail connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.