Callingai_sidecar
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.
There are three ways to define the prompt content:
prompt: "...") or as an object with a text field. Best for simple coaching instructions.The operator prompt. Provide a plain string, or one of the objects below.
The full operator prompt as a single block of text. Equivalent to passing prompt as a bare string.
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:
Any value from the sidecar’s global_data, e.g. ${global_data.customer_id}.
Any value from ai_agents_global_data, which persists across sessions on the same call leg, e.g. ${ai_agents_global_data.deal.mrr}.
The caller’s phone number.
The destination phone number.
Which leg is the customer — remote-caller or local-caller.
The current local date.
The current local time.
The local timezone.
The unique identifier for the call session.