Skip to main content

Overview

Echo’s variable system lets you write a single agent prompt that works for any customer and any call scenario. Use {{variable_name}} syntax anywhere in your system_prompt — Echo resolves the values before the call is initiated.

Built-in Variables

Echo automatically resolves these from your business account and the customer record. You never need to pass them in variables.

Custom Variables

Any {{token}} that isn’t in the built-in list must be supplied in the variables map when triggering a notification.
System prompt
Notification request
Custom variables can be any string values you want. There’s no predefined list — anything you put in variables becomes available as {{key}} in the prompt.

Override Behavior

If a caller-provided variable and a built-in share the same name, the caller-provided value wins.
This overrides the built-in {{recipient_first_name}} with "Johnny" for this specific call.

Missing Variables

If a {{token}} appears in the system prompt but has no corresponding value (neither built-in nor custom), the token is left as-is in the rendered prompt — which will cause the AI to read out {{token_name}} literally. To avoid this:
  • Check that every {{token}} in your prompt is either a built-in or included in variables
  • Use the prompt checklist before going to production

Variable Resolution Order


Examples by Use Case

Prompt excerpt
Prompt excerpt
Prompt excerpt
Prompt excerpt