AI Providers
Last updated
Set the models behind Deskply in the admin panel: OpenAI, Anthropic or Gemini for chat, OpenAI for voice, Gemini for knowledge files, Deepgram for transcripts.
Where to set them
Open Settings → AI & Voice in the admin panel. Each provider has its key, a Test button, its models (picked from the provider's own list) and, folded away, the advanced options. The chat provider, the phone agent's voices and the prices for the cost reports are there too. Changes apply at once, without a restart.
The keys are stored encrypted with the API's APP_KEY, and the panel only ever shows their last four characters. Changing or removing a key asks for your password.
Create the keys at:
- OpenAI: OpenAI API keys (documentation)
- Anthropic: Claude API keys (documentation)
- Google Gemini: Gemini API keys (documentation)
- Deepgram: Deepgram Console (documentation)
The .env values are the fallback
Anything left empty in the panel uses its value in the API's .env, shown below for each provider. To manage the AI settings only through .env (for example from a deployment pipeline), set AI_SETTINGS_FROM_ENV=true: the panel then shows them read-only.

Settings → AI & Voice: Configure opens the key and the models of a provider.
Chat replies
The chat provider (in the panel, or LLM_PROVIDER in .env) chooses who writes the agent's replies. OpenAI is the recommended choice.
LLM_PROVIDER=openai
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-5.4-miniThe other values are anthropic and gemini. With anthropic, Claude writes the replies:
LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-...
ANTHROPIC_MODEL=claude-opus-5-5
ANTHROPIC_EFFORT=mediumANTHROPIC_EFFORT (low, medium, high, xhigh or max) sets how much Claude thinks before it answers: lower is faster and cheaper. Claude has no embeddings and no speech, so the knowledge base, voice notes and phone calls keep using the providers below. Set the chat prices in the admin panel to your Claude model's rates so the Margin report stays right.
claude-opus-5-5 is Anthropic's most capable model for this. For a receptionist that answers many short messages, claude-sonnet-5-5 or claude-haiku-5-5 costs far less per reply; pick the model under Settings → AI & Voice and compare the Margin report.
With gemini, Gemini writes the replies with the key the knowledge base already uses:
LLM_PROVIDER=gemini
GEMINI_API_KEY=...
GEMINI_MODEL=gemini-3.8-flashKnowledge base
When a customer uploads a file, the API splits it into pieces and stores each piece as a vector. The agent then finds the pieces that answer a question. Gemini creates those vectors by default.
EMBEDDING_PROVIDER=gemini
GEMINI_API_KEY=...
GEMINI_EMBEDDING_MODEL=gemini-embedding-001Choose the embedding provider once
Do not change EMBEDDING_PROVIDER after files have been uploaded. Vectors from one provider do not match another, so every stored file would have to be processed again.
A Gemini key is required for as long as embeddings use Gemini, even when chat replies come from OpenAI.
Voice
The phone agent speaks through the OpenAI Realtime API and reuses OPENAI_API_KEY. Deepgram writes down what the caller says, for the transcript in the call log.
OPENAI_REALTIME_MODEL=gpt-realtime-1.5
OPENAI_REALTIME_VOICE=alloy
DEEPGRAM_API_KEY=...
DEEPGRAM_MODEL=nova-2-phonecall
DEEPGRAM_LANGUAGE=enEach customer picks the voice of their own agent in the customer panel. The rest of the phone setup is in Twilio Voice.
Cost reports
The admin panel shows what each customer costs you in AI usage, next to what they pay. The API calculates that from the price of each model. Set your rates under Settings → AI & Voice, where the list prices of the models in use are suggested. Left empty (there and in the OPENAI_PRICE_*, OPENAI_REALTIME_PRICE_* and DEEPGRAM_PRICE_PER_MIN .env settings), the built-in rates apply.