AgentLoops
Gmail

Manage Labels

Add or remove labels from Gmail messages.

Manage Labels

This node allows you to add or remove labels from specific Gmail messages. It is useful for organizing emails based on workflow logic, such as marking processed emails or categorizing them.

Inputs

VariableTypeRequiredDescription
credentialIdCredentialYesThe Gmail credential to use for the operation.
messageIdsstringYesThe IDs of the messages to modify. Can be a single ID or a comma-separated list. Supports template variables.
labelIdsstring[]YesThe IDs of the labels to add or remove.
action"add" | "remove"YesThe action to perform: "add" or "remove" labels.

On this page