The Start block is the default trigger for a workflow. It defines the inputs the workflow takes and runs it from three surfaces with the same shape: a manual run in the editor, an API deployment, and a chat deployment.
Input Format
Define the fields the workflow accepts. Each field has a name and a type — string, number, boolean, object, array, or files — and becomes available downstream as <start.fieldName>. A customerId field reads as <start.customerId>.
- Give a field a default value to prefill the manual-run form and supply a fallback when the caller omits it or sends
null. A supplied value, including an empty string, overrides the default. - File fields accept uploads from both chat and API callers.
- Reorder fields to control how they appear in the editor form.
Outputs
The fields you define, plus conversation context when the workflow runs from chat:
| Output | What it is |
|---|---|
<start.fieldName> | Each Input Format field, by name |
<start.input> | The latest user message (chat only) |
<start.conversationId> | The active session id (chat only) |
<start.files> | Chat attachments (chat only) |
<start.campaign> | The campaign the contact is replying to (only in a workflow bound to a chat inbox) — see Campaign replies |
Campaign replies
When a workflow is the AI agent of a chat inbox, a contact's reply to a campaign carries that campaign on <start.campaign>. It is filled while the reply counts for the campaign — attributed to it and inside its response window — and empty on every other run, so a reference to it never fails. It is not listed among the connection tags, so type the reference.
| Field | What it is |
|---|---|
active | true while the reply counts for a campaign. Check it before you use the rest |
id, name | The campaign's id and its internal title, which the contact never sees |
sentAt, repliedAt, windowEndsAt | When the campaign reached the contact, when they replied, and when the response window closes (ISO 8601; windowEndsAt is empty when it never closes) |
header, body, footer, buttons | The parts of the message the business sent |
text | The whole message the business sent, as plain text |
replyKind, replyLabel | How the contact replied — button, text or opt_out — and the label of the button they tapped |
Check <start.campaign.active> first, for example with a Condition. Then give the agent the campaign in its system prompt: put <start.campaign.text> inside a delimited block and say it is the message the business sent, so the model never reads it as an instruction or as the contact's words.
The contact is replying to this message the business sent them:
<business_message>
<start.campaign.text>
</business_message>Per entry point
Run renders the Input Format as a form, prefilled with any default values, so you can retest without retyping. Submitting runs the workflow, and the values land on <start.fieldName>. File fields upload straight into <start.fieldName>.
The Input Format becomes the JSON request body. Each field is part of the body, and Studio coerces primitive types on the way in. File fields expect objects that reference uploaded files, so upload first, then invoke the workflow.
The Start block binds to the active conversation: the latest message fills <start.input>, the session id is <start.conversationId>, and attachments appear on <start.files>, alongside any Input Format fields. Extra structured context passed in at launch merges into the matching <start.fieldName> outputs.
Multiple triggers
A workflow can have more than one trigger. When you click Run in the editor, Studio runs the highest-priority one: the Start trigger first, then a Schedule, then external triggers (webhooks and integrations). So a workflow with both a Start and a Webhook runs from Start when you click Run. Running an external trigger by hand instead generates a mock payload from its expected shape, so downstream blocks can resolve their references while you test.
Best Practices
- Use Start as the single entry point when one workflow serves both API and chat callers.
- Prefer named fields over raw JSON. Typed Input Format fields are coerced automatically and read by name downstream.
- Validate early. Add a Condition right after Start when certain fields are required for the run to succeed.