Sequence Agent
Provide either agentOId or experimentOId depending on what you want to run.
- Use
agentOIdto run a specific agent. - Use
experimentOIdto run a specific experiment. Only one of them should be set at a time.
Runtime Context & Instructions
The API usesruntimeContext and runtimeInstructions to pass dynamic per-contact data to your agent at execution time. These are not the same fields as the MCP tool schema (which uses allEmailsContext / allEmailsInstructions).
How keys work
BothruntimeContext and runtimeInstructions accept an object where keys control which email steps receive the content:
| Key | Scope |
|---|---|
"all" | Applied to every email in the sequence |
"1" | Applied to step 1 only |
"2" | Applied to step 2 only |
"3" | Applied to step 3 only |
"4" | Applied to step 4 only |
"all" — they don’t replace it. Use "all" when you have one block of context for the whole sequence (which is the most common case).
Context vs Instructions
runtimeContext— Factual information the agent should draw from: account research, LinkedIn data, recent activity, deal context. Think of this as “what the agent knows about this person.”runtimeInstructions— Behavioral directives that steer how the agent writes: tone, length, what to emphasize, what to avoid. Think of this as “how the agent should write.”
Example: Event follow-up with rich context
Example: Simple context (all steps)
If you only need one block of context for the whole sequence, use the"all" key:
Authorizations
Body
Generate emails input
Email of the person to generate emails for
"john.doe@example.com"
First name of the person to generate emails for
Job title of the person to generate emails for
Company domain of the person to generate emails for
"example.com"
Company name of the person to generate emails for
LinkedIn profile of the person to generate emails for
Language of the person to generate emails for
Output format of the emails to generate
text, html, markdown Additional context (facts, research, account data) injected at runtime to personalize the generated sequence. Keys control which email steps receive the context: "all" applies to every email, "1"-"4" apply to a specific step (1-based index). Step-specific context is merged with the "all" context.
{
"1": "Reference her AWS SCA leadership role in the opening.",
"all": "Account research: NICE Ltd expanded their AI partner program from 25 to 200 partners. Sarah leads strategic alliances."
}Behavioral directives that control how the agent writes the sequence — tone, structure, emphasis, constraints. Keys work the same way as runtimeContext: "all" applies to every email, "1"-"4" apply to a specific step (1-based index). Use runtimeInstructions for writing style directives. Use runtimeContext for factual data.
{
"1": "Lead with a specific personal detail — do not open with a generic intro.",
"all": "Keep emails under 150 words. Use a consultative tone, not salesy."
}Playbook selection context of the person to generate emails for
AgentOId is required when creating an agent in the application. You can find it in the Agents section of your dashboard.
"agent_123"
ExperimentOId is required when running an experiment
"experiment_123"
If true, returns full annotation data including metadata. If false or omitted (default), returns minimal annotations to reduce response size.