Skip to main content

Configuration File

Edit docker/assistant-api/.assistant.env before starting the service. For local development (without Docker), export the variables and override the Docker hostnames shown in the table below.

Required Variables

PUBLIC_ASSISTANT_HOST must resolve from the public internet. Twilio, Vonage, and Exotel connect WebSocket media streams to wss://PUBLIC_ASSISTANT_HOST/v1/talk/{provider}/ctx/{contextId}. For local testing, use an ngrok tunnel and set this to your ngrok hostname (e.g. abc123.ngrok.io).

Service Identity


PostgreSQL


Redis


OpenSearch (Optional — Knowledge Base Only)

OpenSearch is only needed for knowledge base / RAG features. If OPENSEARCH__HOST is left empty (the default), the assistant-api starts without knowledge base support and skips the OpenSearch connection entirely.

Asset Storage


Telemetry (Optional)

assistant-api supports an optional environment-configured default telemetry exporter. Set exporter type: Provider-specific keys:

OTLP HTTP

OTLP gRPC

Datadog

AWS X-Ray

Google Trace

Azure Monitor

OpenSearch / Logging


Asterisk AudioSocket

The AudioSocket server binds on a separate TCP port. Asterisk dials into this port directly. Asterisk dialplan usage:

SIP Server

The built-in SIP server handles direct SIP INVITE connections and Asterisk SIP trunk connections.
Set SIP__EXTERNAL_IP to your server’s public IP address. If this is set to 0.0.0.0, SDP answers will advertise the wrong address and media will not flow for callers outside the local network.
SIP connection string:

Full Environment File


Local Development Overrides

When running from source, override Docker hostnames:

Next Steps

STT / TTS Providers

Configure and add speech recognition and synthesis providers.

Telephony

Twilio, Asterisk, SIP, and other telephony provider setup.