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.

FieldTypeRequiredDefaultConstraintsExample
name
Label name. Nest with '/', e.g. Customers/Acme. Supports {{ }}.
stringYes———

Output

One shape.

label

FieldTypeExample
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
}

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.