Skip to main content
Workflows define multi-step processes your agent can execute. Unlike FAQs (which are single question-answer pairs), workflows handle complex interactions with branching logic. Use workflows for:
  • Appointment scheduling
  • Patient intake collection
  • Multi-step qualification processes
  • Anything requiring back-and-forth conversation

Example: Creating a Workflow

Here’s how to create a basic workflow using the API:
Realistically, you’ll want to add more steps to handle the full interaction, such as additional qualifying questions or follow-up steps. You can add more steps to the workflow as needed.

Workflow Structure

Each step has:
  • title — What the step is called
  • description — Optional description of the step (can be null)
  • instructions — Guidance for Annie on what to do
  • examples — Sample phrases Annie might use
  • order — The sequence of steps (starting at 0)
  • action — Optional action tool to execute
  • actionMetadata — Optional metadata for the action
  • childSteps — Optional nested steps for branching logic

A Note on Actions

Actions allow Annie to perform tasks during a workflow step, such as searching for appointments, booking, or transferring calls. Actions integrate with your practice management system to execute real operations.
Actions are not yet fully documented. We recommend testing workflows without actions (non-scheduling use cases) until more documentation is released on configuring custom actions that integrate with your systems.

TRANSFER_CALL

TRANSFER_CALL supports either a saved forwardingNumberId or inline transfer metadata. The inline form accepts name, phoneNumber, and an optional extension.
The extension field is optional. It supports DTMF characters 0-9, *, #, A-D, w, and W. In templated workflows, you can also use {{variable}} placeholders for the extension.

Listing Workflows

Workflows are powerful but complex to configure from scratch. We recommend starting with templates, which give you pre-built workflows you can customize.

Workflows API

See the full API reference for workflow endpoints.