Multi State Agent Prompt

Learn how to build structured, consistent AI conversations using Multi State Agents.

Building and Using Multi State Agents

Multi State Agents are designed for structured, consistent conversations. They break a call into clearly defined stages (states) with specific prompts, allowed behaviors, and transitions. This approach is best when you need predictable, repeatable outcomes and adherence to required or compliant messaging.

Single State Agents remain the better choice for adaptive conversations, where one prompt can guide the interaction without strict stage boundaries.


When to Use Single State vs. Multi State

Use a Single State agent when:

  • The conversation can be handled with one prompt and general guardrails.
  • You want the model to adapt freely without predefined checkpoints.
  • Branching is light and strict stage control isn’t required.

Use a Multi State agent when:

  • You need a highly repeatable script with required language and checkpoints.
  • Each phase has clear entry and exit criteria.
  • Compliance or consistency requires explicit transitions.
  • Actions must occur at specific, defined points in the flow.

Examples suited to Multi State (structured and consistent):

  • Identity verification → required disclosures → qualification → transfer.
  • Claims intake with required fields, confirmation read-back, and attestation.
  • Regulated sales workflow with scripted consent, eligibility checks, and disclosures.
  • Retention or cancellation process with defined stages and outcomes.

Building a Multi State Agent

When you create a new agent, choose Single State or Multi State. You can update configurations later, but you cannot switch build modes after creation.

A Multi State Agent has:

  1. Agent details
  2. Multi State canvas
  3. Prompt transitions

Agent Details

This page defines settings that apply across every node:

  • Agent name and description
  • Voice and language
  • Global prompt and guardrails
  • Common objection/question handling
  • Call settings (Reminders, End Call on Silence, Max Call Length)
  • Global knowledge bases

How the AI uses context

  • The AI has access to the conversation transcript, including previous actions.
  • It uses both global settings and the current node’s prompt/configuration at any given time.
  • Node prompts are appended to the global prompt on each node; prompts from other nodes aren’t active.

Multi State Canvas

The canvas is the visual builder where you design the conversation flow. It contains the conversation start, prompt nodes, action nodes, and transitions.

Within the canvas you can:

  • Set the conversation start, choosing who begins the call and how:
    • Agent (Dynamic Message): The agent opens with a generated message based on context.
    • Agent (Static Message): The agent opens with a scripted, fixed message (best for disclosures).
    • Contact: The agent waits for the contact to speak first. If the contact remains silent, the call ends after the configured End Call on Silence timeout.
  • Add and organize nodes to represent each stage of the conversation.
  • Draw connections between nodes to define transitions and outcomes.
  • Rename nodes, view node types, and navigate across stages visually.

The canvas gives you an at-a-glance view of your agent’s structure, ensuring your flow is clear, consistent, and easy to maintain.


Prompt Nodes

Prompt nodes define scripted or constrained behavior within a stage.

In a prompt node, you can:

  • Name the node.
  • Choose a prompt style:
    • Prompt — Provide instructions for how the agent should behave in this stage.
    • Say exactly — The agent says the text exactly as written (useful for required disclosures).
  • Insert contact attributes for personalization.
  • Block interruptions for compliance or required statements.
  • Define transition conditions to control when the agent should move on.

Invoking actions from prompt nodes

You can associate actions directly with a prompt node:

  • Actions may be invoked as part of the node’s behavior.
  • This allows handling simple action logic in the same node.
  • Actions referenced in the global prompt can also be invoked here (e.g., objection handling).

Common uses:

  • Logging consent after a disclosure.
  • Handling an objection and triggering an action.
  • Lightweight or side-effect actions.
  • Gathering a date and time for a scheduled callback and iterating over until both parties agree.

Global actions

Global actions let you define an action once and make it available everywhere in a Multi State agent. When an action is marked as global, it can be used in any prompt node and referenced from the global prompt, so you don’t have to repeat the same handling across nodes.

To enable a global action, open the action and turn on Global Action.

Common uses:

  • Escalation / talk to a human (transfer call).
  • Universal opt-out or compliance handling (stop calling, unsubscribe, do not contact).
  • Global fallback when the agent is stuck (repeated confusion, low confidence, repeated ASR issues).

Global actions are best for behavior that should apply no matter which node the agent is currently in. If an action needs to run at a specific point in the flow, keep it node-specific or use an action node instead.


Action Nodes

Action nodes perform specific operations.

In an action node, you can:

  • Select or create the action (setup mirrors the standalone action documentation).
  • Block interruptions when the action must complete uninterrupted.
  • Define transition conditions to move to the correct next node based on outcomes.

Common uses:

  • Triggering a warm transfer after eligibility checks and disclosures.
  • Writing data to a system of record, then transitioning based on success or failure.
  • Sending follow-ups or confirmation messages after a scripted stage.

Prompt Transitions

Prompt transitions determine when and how the agent moves between nodes.

  • Transitions are evaluated after each agent message.
  • If no condition is met, the agent remains in the current node.
  • If no transitions exist, the agent proceeds automatically.
  • Conditions may depend on responses, variables, or action results.

Logic Nodes

Logic nodes are silent routing nodes. When the agent enters a Logic node, it does not speak. It evaluates your conditions against known data and immediately moves to the matching next node.

Use a Logic node when the next step depends on data you already have — contact attributes, task attributes, or variables collected earlier in the flow from Set Contact Data action / Response mapping — and you want that decision to be deterministic (not left to an LLM transition on a Prompt or Action node).

Logic node

In a Logic node, you can:

  • Name the node.
  • Add Splits — ordered branches that each have a condition and a destination.
  • Build each split from one or more Variable conditions (contact, task, or collected data from "Set Contact Data" action / Response mapping).
  • Reorder splits so higher-priority branches are evaluated first.
  • Always keep an Else split as the fallback when nothing matches.

How Logic nodes evaluate

  • Splits are evaluated top to bottom. The first matching split wins.
  • The agent does not speak while on the Logic node.
  • If no variable split matches, the agent takes the Else path.
  • Logic nodes never “stay” waiting for the caller. They always route somewhere.
  • You can chain Logic nodes (Logic → Logic). Each hop is silent and evaluated in order.

Variables you can branch on

SourceWhat it isHow it’s authored
ContactProfile / contact attributesPick from contact schema fields
TaskTask metadata for the current interactionEnter the task attribute path (e.g. AMD result, transfer attributes)
CollectedValues captured earlier (e.g. Set Contact Data / response mapping)Pick from defined contact data / collected variable names

Operators

Available operators depend on the field type (string, boolean, or number). Common options include:

  • Equals / Does Not Equal
  • Is Set / Is Not Set (has a usable value vs. missing, null, or empty; 0 and false count as set)
  • Is One Of (membership in a list)
  • For numbers: Is Greater Than, Is Greater Than or Equal To, Is Less Than, Is Less Than or Equal To

When a split has multiple conditions, all of them must match (AND).

Common uses

  • Branch on eligibility, VIP status, outstanding balance, or age after you’ve collected or looked up the value.
  • Skip collection nodes when the data already exists on the contact; otherwise go collect it.
  • Combine several earlier answers (disclosure opt-in + collected age + lookup result) into one deterministic path.

Logic vs. Prompt / Action transitions

Logic nodePrompt / Action transition
Speaks?No — silentYes — after the node’s turn / action
Decision styleDeterministic rules on variablesLLM judges conversation / outcomes
Best forKnown data already on contact, task, or collected vars“Did the caller agree?”, nuanced language, post-action outcomes

Prefer a Logic node when the rule is clear from data (VIP equals true, balance is greater than 100, opt_in is set). Prefer Prompt/Action transitions when the decision depends on what was just said or how an action completed.


Testing and Behavior

  • Transition evaluation occurs after every AI turn.
  • The AI uses the conversation history plus the current node’s context.
  • Node prompts are appended to the global prompt.
  • Contact and task attributes behave the same as in Single State agents.
  • For the “Contact” start mode, the agent waits until End Call on Silence if the contact does not speak.

Best Practices for Structured Flows

  • Design the conversation as stages with clear entry and exit criteria before building.
  • Use Say exactly for required or compliance language, and block interruptions as needed.
  • Keep each node focused on a single purpose (e.g., verify identity, read disclosure, capture consent).
  • Place every operation (transfer, API call) in its own action node.
  • Name nodes clearly (“ID Verification,” “Disclosure A,” “Qualification,” “Outcome Summary”).
  • Use Multi State when you need repeatable, consistent steps; use Single State when flexibility is more important.

Summary

Multi State Agents enforce structure and consistency through defined nodes, transitions, and a clear visual canvas. They’re ideal for scripted, compliant, and predictable conversations. Single State Agents are best for adaptive interactions where a single prompt and flexible context are sufficient.


Did this page help you?