Skip to main content

Overview

The preamble is the system prompt that defines your agent’s identity, behavior, and task. Everything the agent does during a call is guided by this prompt. A well-structured preamble typically covers these sections:

1. Identity & Role

Define who the agent is and what it represents.

2. Personality & Tone

Set the conversation style.

3. Response Guidelines

Specify how the agent should format and structure its responses.

4. Task & Goals

Define what the agent should accomplish, ideally as numbered steps.

5. Guardrails

Set clear boundaries for what the agent should not do.

6. Edge Case Handling

Prepare for difficult scenarios.

Using Variables

You can reference system variables and custom variables in your prompt using {{variable_name}} syntax. System variables (always available): For dynamic business-specific data (e.g., working hours, customer info), use custom variables passed as params when initiating the call. See Variable System for details.

Jinja2 Templates

Beyond simple substitution, prompts support full Jinja2 template syntax — conditionals, filters, and expressions are all available.
Templates are processed server-side before the prompt reaches the LLM. See the Jinja2 Template Designer Documentation for the full syntax reference. Example:

Prompt Settings

Below the prompt editor, two settings control how your prompt is processed: Enhanced Turn Taking — Enables better numeral capturing and backchannel detection for more natural conversations. Default: Off. Prompt Enhancer — Applies automatic enhancements to your prompt before it reaches the LLM:

Tool Integration

When your agent uses tools, include clear instructions for when and how to use them:

Common Mistakes

Too vague:
Better:

Conflicting instructions:
Better:

Next Steps

Voice Settings

Configure voice and language options

Call Behavior

Set up response timing and interaction controls

Intelligence Features

Enable smart features like gender detection and smart call end

Knowledge Base

Add reference materials for your agent