StyloDocs
Workflow blocks

Archive Email

Archive a Gmail message (remove INBOX label)

View as Markdown

gmail/archive-email — Archive a Gmail message (remove INBOX label).

Where it appears

The Archive Email block lives in the Integrations group of the Workflow Builder. Connect the Gmail integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
messageIdtext (supports references)YesGmail message ID to act on. Use a literal ID or <StepName.field> to reference an ID from a previous step (e.g. a search result).

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Archive Email.field>.

NameTypeDescription
successbooleanOperation succeeded
modifiedbooleanMessage was modified
messagejsonArchived message
errorstringError message if failed

Example

A minimal configuration for this block:

{
  "type": "gmail/archive-email",
  "config": {
    "messageId": "<PreviousStep.field>"
  }
}

Limits and failure modes

  • Requires a connected Gmail integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required field (messageId) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page