1. Core Substitution Context
  2. Stub State

Core Substitution Context

Stub State

Provides the current stub state from the core substitution context. Useful for state-aware actions, conditional logic, and workflow automation.

A stub's state represents its current point in a template's flow. Each stub can only be in one state at a time, and that state determines which actions are available and what can happen next in the process.

Referencing the current state allows action definitions, messages, and integrations to respond dynamically as a stub progresses through its workflow. For more information about how states work, see States and Actions.