prompt
The operator prompt instructs the sidecar how to coach the agent — what to watch for, when to speak up, and when to stay silent. SignalWire automatically adds built-in instructions for the sidecar’s role, so your prompt only needs to describe the coaching behavior. It is recommended to write prompts using markdown formatting, as models better understand structured content.
prompt is optional. When omitted, the sidecar falls back to a minimal default prompt, so setting one is strongly recommended.
Prompt forms
There are three ways to define the prompt content:
- Text — A single string with the full prompt. Provide it as a bare string (
prompt: "...") or as an object with atextfield. Best for simple coaching instructions. - POM (Prompt Object Model) — A structured array of sections with titles, body text, and bullets. SignalWire renders the POM into a markdown document before sending it to the model. Best for prompts that benefit from clear organization.
- File — A path to a server-side file whose contents become the prompt.
Properties
ai_sidecar.prompt
The operator prompt. Provide a plain string, or one of the objects below.
Text
POM
File
prompt.text
The full operator prompt as a single block of text. Equivalent to passing prompt as a bare string.
Variable expansion
The prompt supports variable expansion in any form. Reference values from global_data, from the persistent ai_agents_global_data, and from the following call variables:
${global_data.*}
Any value from the sidecar’s global_data, e.g. ${global_data.customer_id}.
${ai_agents_global_data.*}
Any value from ai_agents_global_data, which persists across sessions on the same call leg, e.g. ${ai_agents_global_data.deal.mrr}.
${caller_id_number}
The caller’s phone number.
${destination_number}
The destination phone number.
${customer_role}
Which leg is the customer — remote-caller or local-caller.
${local_date}
The current local date.
${local_time}
The current local time.
${local_tz}
The local timezone.
${session_uuid}
The unique identifier for the call session.