Best practices
Overview
Effective Playbooks guide your AI Agent through complex workflows with clear, well-structured steps. These best practices help you build Playbooks that are reliable, easy to maintain, and produce consistent end user experiences.
General guidelines
Follow these guidelines when creating and maintaining Playbooks.
Let Ada create a first draft
The Generate a Playbook feature creates a first draft from a simple prompt or an existing PDF file. To get the best results, clearly define your goal and the scenario you want the Playbook to address. Starting this way helps you understand how to structure sections and steps effectively.
Peer review your Playbooks
As the author, you might overlook missing branches or unclear step configurations. Having someone with limited context review your Playbook helps identify gaps — especially in IF/ELSE conditions and fallback paths.
Keep sections focused
Each section should represent a single stage of the end user journey. Avoid combining unrelated steps in one section. Clear section boundaries make Playbooks easier to read, test, and maintain.
Working with steps
Select the right step type for each action and configure modes, accepted values, and fallbacks to ensure reliable execution.
Choose the right step type
Distinguish SET from ASK
SET and ASK both write to variables, but they work differently:
SETis silent — it never prompts the end user. Use Exact value mode for known values and Use reasoning mode to extract information from the conversation without asking.ASKprompts the end user. Use it when you need direct input.
If you find yourself writing a Use reasoning SET instruction like “ask the customer for their order number” — use an ASK step instead. SET extracts; ASK collects.
Distinguish ASK from SEND
ASK and SEND both communicate with end users, but they work differently:
SENDdelivers information and moves on — the Agent does not wait for a response. Use it for status updates, instructions, and confirmations.ASKcollects a value from the end user. By default (only_when_needed), the Agent first checks whether the value is already available in the conversation — if so, it extracts the value silently without prompting. If the value is missing, the Agent asks the end user. Set “when to ask” toalwaysto skip extraction and always prompt.
An always ASK asks the question even when the end user already gave the value, so the end user must say it again. Use only_when_needed on the first ASK for a value. Use always only to ask again after you reset the variable, for example in a retry loop.
ASK to present options, add accepted values to constrain the expected responses. For example, if asking “Would you like a refund or a replacement?”, set the accepted values to “refund” and “replacement” so the Agent can reliably interpret the end user’s choice.Use accepted values and fallbacks
When a Use reasoning SET or ASK step feeds into a downstream IF/ELSE branch:
- Set accepted values to constrain extraction to a known set. This prevents unexpected values from breaking your conditional logic.
- Set a fallback value (Use reasoning
SET) to ensure the variable always has a value downstream. An unset variable can causeIF/ELSEbranches to fall through unexpectedly.
Cover every IF/ELSE branch
Every IF/ELSE step should account for all possible outcomes:
- Always include a fallback (else/default) branch. Think about edge cases — what happens when the input is unexpected or a variable is missing?
- Consider what happens when a variable is not set — add an “Is Not Set” condition if needed.
- Avoid deeply nested conditions. Flatten complex logic using multi-group conditions (nested AND/OR) instead of nesting
IF/ELSEsteps inside each other.
Use GO TO carefully
GO TO redirects the flow to a specific step. It is commonly used for jumps and loops, but it can also serve a simpler purpose: confirming that the flow should proceed to the next step.
Without a GO TO, the Playbook automatically advances to the next step when the current one completes. Adding a GO TO that points to the next step is functionally equivalent, but makes the intended flow explicit — which improves auditability in complex branching Playbooks.
When GO TO is purely a confirmation (no looping risk):
- At the end of an
IF/ELSEbranch, pointing to the step that follows the conditional block. - After a
SENDorASKstep, confirming the next step in a linear flow.
When GO TO introduces a looping risk:
- Pointing back to an earlier step. This creates a loop — the Agent repeats that step and everything after it. Use this intentionally for retry patterns, but always pair with an
IF/ELSEcondition that provides an exit path.
Example — using GO TO at the end of every IF/ELSE branch for auditability:
IForder is shipped →SENDtracking number →GO TOStep 3.ELSE IForder is processing →SENDestimated delivery date →GO TOStep 3.ELSEorder is canceled →SENDapology and alternatives →GO TOStep 4.
GO TO at the end of every step. Use it when you want to make the intended flow explicit — especially in Playbooks with complex branching — or when you need to skip steps or loop back.Understand when SET is needed after RUN
When a RUN step executes an API tool, any outputs configured in the API tool’s output settings are automatically saved to their target variables — no additional SET step is required.
A SET step after RUN is only needed when you want to:
- Transform an output value (for example, extract part of a response or reformat a date).
- Rename an output to a different variable (for example, save the API tool’s
order_statusoutput to a variable namedcurrent_status). - Derive a new value based on the output (for example, set
is_eligibleto “true” if the returned order total exceeds a threshold).
If you only need the API tool’s output as-is, the variable is already available after the RUN step completes. You can branch on any auto-set output variable in a downstream IF/ELSE step — including the HTTP status code — without an intermediate SET.
Build API tool error handling
When a Playbook depends on an API tool succeeding, build an explicit error path:
RUNthe API tool.SETthe HTTP status code to a variable.IF/ELSEto check the status code.- In the error branch,
SENDa helpful message and either retry, hand off, or exit gracefully.
Explicit error branches give end users a better experience and more control over fallback behavior.
Working with references
Use clear naming, explicit exits, and structured Knowledge references to keep Playbooks predictable and maintainable.
Use intuitive names and descriptions
Names and descriptions of Playbooks, API tools, Handoffs, and Variables are visible to the AI Agent. Clear names improve routing accuracy and reduce misfires.
Write descriptions that separate similar Playbooks
The When to use this Playbook description is the main signal the AI Agent uses to select a Playbook. Write it so the Agent can tell two similar Playbooks apart.
- Start with the end user’s situation, in the end user’s words.
- Give 2-4 short example openings.
- Add one “Not for” line for each similar Playbook, and name that Playbook. Write the same boundary in the description of the other Playbook.
- Describe each edge case in one description only.
To test a description, start a test conversation with each example opening. Include the openings that sit between two Playbooks. Confirm that the correct Playbook starts.
Use one Handoff section
Put the RUN step that runs the Handoff in one section at the end of the Playbook. From each path that needs a human agent, use GO TO to jump to that section. To keep the reason for the Handoff, set a variable with an Exact value SET before the GO TO.
With one Handoff section, every path runs the same steps before the Handoff. To change those steps, you edit one section.
Use explicit Exits
Always end your Playbooks with an explicit Exit. Every flow should have a clear termination point to ensure predictable behavior. Use a RUN step with the Exit option at each endpoint in the workflow.
Reference Knowledge effectively
Reference Knowledge through:
- General Guidelines: Use
@ArticleNamementions or natural-language search instructions. SENDsteps: Add Search Knowledge when the answer depends on what the end user asks. Name the topic in the instruction to narrow the search. Reference an article when you know which article answers the step. See Search Knowledge inSENDsteps.SETsteps: Store an answer from Knowledge in a variable when the Playbook must check the answer before it sends it or passes it to another system. Follow the step with anIF/ELSEbranch for the case where Knowledge has no answer. See Search Knowledge inSETsteps.- Audiences: Scope which articles are available to specific end users with an audience on the Knowledge page.
- Runtime harness: The runtime harness can automatically pause execution to perform Knowledge searches when the end user asks a question. See Runtime harness.
Voice-specific best practices
Playbooks on Voice channels require adjustments for spoken delivery and real-time pacing.
Cover silence between steps
On Voice, the AI Agent can say a short acknowledgment when it starts a Playbook. To set its wording, use the Acknowledgment field in Playbook Details. Do not add a SEND at the start of the Playbook that repeats this acknowledgment.
When the end user answers an ASK step, the Agent can also say a short acknowledgment. Then the Playbook runs the next steps before the Agent speaks again. A SET step in Use reasoning mode or a RUN step can take several seconds. During that time, the end user hears silence.
- Before a step that can take more than 1 second, such as an API tool call, add a
SENDin Fixed message mode. For example: “One moment while I check that.” - Avoid more than 2 Use reasoning
SETorRUNsteps in a row before the end user hears a message.
Let end users say or key numbers
For an ASK step that collects a number, open the step’s Voice settings and select Speech and keypad. The end user can then say the number or enter it on the keypad. For a digit string that can start with 0, such as a one-time code, use a Text variable. A Number variable drops leading zeros. See Voice call capture options.
Verify the end user once
Put identity verification in one linked Playbook, and run it from each Playbook that needs a verified end user. Make its first step an IF/ELSE that exits when the end user is already verified. The end user then verifies once per conversation, even when they ask for help with two tasks.
Optimize for spoken responses
- Instruct the Agent to speak API responses in prose, not lists.
- Specify how to read dates and email addresses aloud.
- End every Voice Playbook with a clear question before exiting (for example, “Is there anything else I can help you with?”).
Testing and maintenance
Thorough testing and regular maintenance keep Playbooks reliable as products and processes change.
Test before publishing
Maintain and update regularly
- Review Playbooks periodically as products and processes change.
- Delete or deactivate outdated Playbooks.
- Test API tools regularly to ensure APIs have not changed.
- Check linked Playbook dependencies before making structural changes.