User guide · Your own agent

Connect your own agent: your agent answers, our voice talks.

If you already have an AI agent, it can answer the calls of your ERIUS Phone. Our voice listens to the caller and speaks; your agent decides what to say. This page explains it step by step, what every message on the screen means and how to fix it. You don't need this if our agent is enough for you: it answers by default.

Updated 17 Oct 2026Dashboard: Agent, section 5About 2 minutesOptional

What it means

Our voice listens and talks. Your agent answers.

A call on your phone always uses the ERIUS Phone voice: it greets the caller, says it is an AI, listens and takes turns. When you connect your agent, the voice asks your agent every time the caller wants to know something, and speaks your agent's answer.

  1. The caller speaks. Our voice hears the question and turns it into one clear sentence in the caller's language.
  2. Your agent gets the question over the internet, at the address you connected, and answers with text.
  3. Our voice speaks the answer to the caller, in one or two short sentences.
  • Your agent stays yours. It keeps its own knowledge, memory and tools. Our agent's memory is not used while your agent is connected.
  • One phone at a time. You connect an agent per phone. Other phones of your account keep their own setting.
  • Nothing breaks if your agent is down. The connection is only switched on after a successful test. If your agent stops answering later, the voice tells the caller it can't answer right now. It never makes an answer up.
  • A change applies from the next call. A call that is already running keeps its agent.

What you need

One https address, and a key if your agent uses one.

Your agent must answer chat questions over the internet in the standard chat-completions format. Most agent frameworks, chatbot platforms and model servers can do this; their documentation usually calls it a "chat completions endpoint" or an address ending in /v1/chat/completions.

You needExampleNotes
Your agent's addresshttps://agent.example.com/v1Must start with https:// and be reachable from the internet. You may paste the full address (ending in /v1/chat/completions), the base address ending in /v1, or only the host: the dashboard completes it and shows "We used: …".
A key (optional)a long secret your agent checksOnly if your agent asks for one. It is sent to your agent as Authorization: Bearer <key>. Type it in the Key field, never inside the address.
A phone set up for callsyour Android phoneIf the Agent page says the phone isn't set up for calls, press Ask us to set it up.

These addresses don't work: plain http://, addresses on your own computer or office network (localhost, 127.0.0.1, 192.168.…, 10.…), addresses that redirect somewhere else, and agents that can only stream their answer. If your agent runs on your own computer, put it behind an https address first (your hosting or a reverse proxy gives you one).

Connect, step by step

Paste the address, press Connect, read one line.

Connecting takes about two minutes. Connect saves the address and runs an automatic test: we ask your agent one test question, the same way a call does.

  1. Open the dashboard and sign in with your ERIUS Phone key.
  2. Press Agent in the menu (on the left on a computer, in the menu bar on a phone).
  3. If your account has more than one phone, pick the phone under Your phones and who answers them.
  4. Scroll down to section 5, Your own agent. You see the card Connect your agent.
  5. Paste your agent's address into Your agent's address.
  6. If your agent needs a key, type it into Key (optional). Otherwise leave it empty.
  7. Press Connect. The button shows "Connecting…" for a few seconds while we test your agent.
  8. Read the result line:
    • "Connected. Your calls now go to your agent: call your number and talk to it." Done. The card now shows Calls on this number → your agent.
    • "Not connected. …" The line says what went wrong and what to do. Fix it and press Retry. The table below explains every message.
  9. Optional but recommended: type your agent's name into Name on the call and press Save. The voice introduces itself with this name.
  10. Make a test call (see Test it with a call).

Until the test passes, nothing changes for your callers. A failed test saves the address but keeps our agent answering your calls, so a caller never reaches a broken address.

Every message and the fix

What the result line means and what to do.

After "Not connected." you see one of these causes, sometimes with the HTTP status your agent sent, for example "(HTTP 401)". The code under each message is what the API and the dashboard's assistant call it.

You seeWhat it meansWhat to do
Paste your agent's address first.
bad_url
The address field is empty.Paste the address, then press Connect.
The address must start with https://.
not_https
The address uses plain http, or another scheme.Use the https address of your agent. Plain http is never accepted.
The address contains a key.
key_in_url
A key or password was pasted inside the address.Remove it from the address and put the key in the Key field.
This address is not valid.
bad_url
The text is not a web address.Paste the full address, for example https://agent.example.com/v1.
This key can't be used.
bad_key
The key is shorter than 8 characters, longer than 512, or has spaces.Copy the key again without spaces or line breaks.
This address does not exist.
dns
The host name can't be found on the internet.Check the spelling. If the address is new, wait a few minutes and retry.
This address can't be reached from the internet.
not_public
It is a private, local or internal address.Use a public https address (see What you need).
Your agent is not answering.
unreachable
Nothing accepted the connection: the agent is off, the port is closed, or a firewall blocks it.Start your agent and check that its https address opens from another network, for example your mobile phone.
The secure connection to your agent failed.
tls
The certificate is expired, self-signed or made for another host name.Renew or fix the certificate of that address.
Your agent refused the key. (HTTP 401 or 403)
auth
Your agent did not accept the key we sent, or expected one and got none.Type the key again in the Key field and press Connect. If your agent needs no key, check its own settings.
Nothing answers at this address. (HTTP 404 or 405)
not_found
The host answers, but not at this path.Use the chat-completions address, usually ending in /v1/chat/completions, or the base ending in /v1.
This address forwards somewhere else. (HTTP 3xx)
redirect
The address redirects. Redirects are not followed.Paste the final address, the one it forwards to.
Your agent reported an error. (HTTP 5xx or another code)
http_error
Your agent was reached but failed.Your agent's own logs show why. Fix it and press Retry.
Your agent took too long to answer.
timeout
No answer within the time limit (20 seconds unless you changed it).Make your agent answer within a few seconds, then retry. Developers can raise the limit to 40 seconds.
Your agent answered with nothing.
empty
The answer arrived but had no text.Your agent must return its answer as text (see For developers).
Your agent's answer is not in the expected format.
bad_answer
The answer is not chat-completions JSON, or it was streamed.Answer with JSON in the chat-completions format, without streaming.
Your agent's answer is far too long.
too_large
The answer was larger than 64 KB.Answer with one or two short sentences.

Messages outside the result line:

  • "Your agent answers, but this phone's calls don't reach it yet" or "This phone's calls use a setup made by our staff": the phone has a special call setup. Pick a voice in section 1 of the Agent page to move it to the standard setup, or open a support ticket.
  • "… isn't set up for calls with an agent yet": press Ask us to set it up.
  • "This address is saved, but the ERIUS Phone agent answers. Press Connect to switch it on.": your agent was disconnected or its last test failed. Press Connect to test it again.
  • A general error with "Try again in a moment.": our side did not answer. Wait a minute and press Retry; if it keeps happening, open a ticket.

Test it with a call

Call your phone and ask something only your agent knows.

The connection test proves your agent answers. A test call proves the whole way: the voice, your agent and back. A call uses your call minutes, per started minute; the connection test does not.

  1. In the dashboard, open Calls and press Test call on the phone you connected.
  2. Open the guest link yourself, best on another device, press Join call and allow the microphone.
  3. The voice greets you, says it is an AI and uses the Name on the call.
  4. Ask a question only your agent can answer (an order number, your opening hours). You hear your agent's answer.
  5. Hang up. Back on the Agent page, the card shows "Last call, time: your agent answered N of M questions."

What you may hear, and why:

  • "One moment, let me check." Your agent took longer than 1.5 seconds. Normal for slow agents; faster agents feel more natural.
  • "That is taking too long, sorry. Please ask me again in a moment." Your agent hit the time limit.
  • "I can't reach my knowledge right now, so I can't answer that." Your agent failed or could not be reached. Press Connect on the Agent page to see the reason, and check your agent's logs.
  • The voice says its own name when asked who it is. The voice answers "who are you" with the Name on the call, so set it to your agent's name.

Disconnect

One press, and our agent answers again.

Agent, section 5: press Disconnect next to "Calls on this number → your agent". Our agent answers from the next call.

  • The address stays in the field, so you can connect again later with Connect.
  • The saved key stays on our server until you remove it. To remove it as well, developers send {"mode": "hosted", "key": ""} (see below), or ask us in a ticket.

Privacy and safety

What your agent receives, and what it never gets.

Only text goes to your agent, and only for the call it is answering.

Sent to your agentNever sent
The caller's question, restated in one sentenceThe call's audio, or a recording
Up to the last 6 questions and answers of the same callEarlier calls, and our agent's memory
A short system message with the call rules (short spoken answers, plain text, no risky actions because of a phone call)Your ERIUS Phone key, your account or billing data
A call id in X-Session-Id (the same for one call), X-Erius-Call: voice, the model name you set, and your key as Authorization: BearerAnything about other customers
  • Your agent's key is stored on our server, readable only by the call service, and never shown again: the dashboard and the API only say whether a key is saved.
  • Anyone who can call your phone can ask your agent things. If your agent can act (payments, deleting data, sending messages), refuse those actions for requests that carry X-Erius-Call: voice.
  • The caller always knows it is an AI. The voice says so at the start and the call page carries the label. This cannot be switched off.

Speed and limits

Answer in a few seconds, in short spoken sentences.

A caller waits in silence while your agent thinks, so speed matters more than length.

LimitValue
"One moment, let me check." is said after1.5 seconds
Time limit for one answer20 seconds by default, 3 to 40 (developers: own.timeout_s). The connection test uses the same limit.
Largest answer64 KB. Long answers are shortened by the voice to one or two sentences.
Redirects, streamingNot supported

For developers

The request, the answer, the API and a working example.

The same details are in the dashboard under "For developers" in section 5, with your phone's id filled in. Open the parts you need.

The request your agent receives, and the answer it sends
request · from ERIUS Phoneone per question
POST https://<your agent>/v1/chat/completions
Authorization: Bearer <your agent's key>
X-Session-Id: erius-call-<call id>
X-Erius-Call: voice
Content-Type: application/json

{"model": "<model>", "stream": false, "messages": [
  {"role": "system", "content": "<call rules>"},
  ...up to the last 6 questions and answers of this call...,
  {"role": "user", "content": "<the caller's question>"}]}
your answer · HTTP 200JSON
{"choices": [{"message": {"role": "assistant",
  "content": "We are open from eight to six, Monday to Saturday."}}]}

Only choices[0].message.content is read; it must be plain text. The connection test sends "This is a connection test from ERIUS PHONE. Please answer with one short sentence." with a session id starting with erius-test-.

Connect, test, check and disconnect with the API
shell · curlcopy-paste
curl -s -X PATCH -H "X-API-Key: $ERIUS_KEY" -H "Content-Type: application/json" \
  -d '{"own":{"url":"https://agent.example.com/v1/chat/completions"},"key":"your-agent-key","name":"Ava"}' \
  "$ERIUS_API/device/$ERIUS_DEVICE/agent"

curl -s -X POST -H "X-API-Key: $ERIUS_KEY" "$ERIUS_API/device/$ERIUS_DEVICE/agent/test"
# {"ok": true, "reason": "ok", "latency_ms": 840, ...}  or HTTP 400:
# {"ok": false, "reason": "auth", "agent_http": 401, "hint": "..."}

curl -s -H "X-API-Key: $ERIUS_KEY" "$ERIUS_API/device/$ERIUS_DEVICE/agent"
# "connection": {"status": "ready", "pipeline": "hybrid", "last_test": {...}, "last_call": {...}}

curl -s -X PATCH -H "X-API-Key: $ERIUS_KEY" -H "Content-Type: application/json" \
  -d '{"mode":"hosted","key":""}' "$ERIUS_API/device/$ERIUS_DEVICE/agent"
  • Over the API, saving an address switches the phone to your agent straight away, without a test. Run the test yourself before you rely on it; the dashboard does both for you.
  • The API takes the address exactly as given: send the full …/chat/completions address.
  • Optional: own.model (default agent), own.timeout_s (3 to 40), own.session_header (also send the call id under a header name of yours).
  • Set up the three variables first: Before you copy a command.
Connection status values
connection.statusMeaning
readyConnected: your agent answers this phone's calls (pipeline: "hybrid").
not_connectedNo address saved: our agent answers.
offAn address is saved but switched off (disconnected, or its test failed): our agent answers.
not_routedThe phone has a call setup made by our staff; your agent is not asked. Pick a voice in section 1 or open a ticket.
calls_not_set_upThe phone is not set up for calls yet. Ask us in a ticket.
unknownThe status could not be read. Try again in a moment.
A minimal example agent (Python, copy-paste)

It answers in the right format, checks the key and gives one fixed answer. Replace answer() with your own logic. Python 3, nothing to install. Run it, put it behind an https address, then connect https://<your host>/v1.

agent.py · tested with the call client, 16 Oct 2026copy-paste
#!/usr/bin/env python3
# A minimal agent for ERIUS Phone calls. It answers POST /v1/chat/completions in the standard
# chat-completions format. Python 3, nothing to install.
#   AGENT_KEY=choose-a-long-secret python3 agent.py     (listens on 127.0.0.1:8080)
# Put it behind an https address (your reverse proxy or hosting), then connect https://<your host>/v1
import json, os
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer

KEY = os.environ.get("AGENT_KEY", "")


def answer(question, call_id):
    # Your agent goes here: call your model, look up an order, read your database...
    if "open" in question.lower():
        return "We are open from eight to six, Monday to Saturday."
    return "Thanks for calling. I can tell you our opening hours."


class Agent(BaseHTTPRequestHandler):
    def do_POST(self):
        if self.path.rstrip("/") != "/v1/chat/completions":
            return self.reply(404, {"error": "not found"})
        if KEY and self.headers.get("Authorization") != "Bearer " + KEY:
            return self.reply(401, {"error": "wrong key"})
        body = json.loads(self.rfile.read(int(self.headers.get("Content-Length") or 0)) or b"{}")
        question = next((m.get("content") or "" for m in reversed(body.get("messages") or [])
                         if m.get("role") == "user"), "")
        text = answer(question, self.headers.get("X-Session-Id", ""))
        self.reply(200, {"object": "chat.completion", "model": body.get("model", "agent"),
                         "choices": [{"index": 0, "finish_reason": "stop",
                                      "message": {"role": "assistant", "content": text}}]})

    def reply(self, code, obj):
        data = json.dumps(obj).encode()
        self.send_response(code)
        self.send_header("Content-Type", "application/json")
        self.send_header("Content-Length", str(len(data)))
        self.end_headers()
        self.wfile.write(data)


ThreadingHTTPServer(("127.0.0.1", int(os.environ.get("PORT", "8080"))), Agent).serve_forever()
shell · test it before you connectcopy-paste
AGENT_KEY=choose-a-long-secret python3 agent.py &
curl -s http://127.0.0.1:8080/v1/chat/completions -H "Authorization: Bearer choose-a-long-secret" \
  -H "Content-Type: application/json" -d '{"model":"agent","messages":[{"role":"user","content":"When are you open?"}]}'
# {"object": "chat.completion", ..., "message": {"role": "assistant", "content": "We are open from eight to six, Monday to Saturday."}}]}

Questions

Short answers about your own agent.

Still stuck? Press Ask AI in the dashboard: it can check your phone's connection live and walk you through it. Or open a support ticket.

Do I need to be a developer?

No, if you already have an agent with an https chat-completions address: paste it and press Connect. Building such an agent yourself needs a developer.

Does it cost extra?

No. Calls use call minutes the same way with our agent or yours. The connection test uses none. What your own agent costs to run is between you and whoever runs it.

Which languages work?

The voice talks in the caller's language and gives your agent the question in that language. Answer in the same language for the best result.

Can my agent hang up, send messages or use the phone during a call?

No. On a call your agent answers questions with text, and the voice speaks it. To drive the phone itself, your agent uses the Device API with your ERIUS Phone key, outside the call.

Does my agent see who is calling?

No. Calls come through a guest link, and your agent only receives the questions as text. The phone has no phone number.

My agent works in its own chat, but the test fails.

Check three things: the address is the API address (not the web page of the chat), the key is the API key of the agent, and the agent answers without streaming. The result line names the exact cause.

Can I connect one agent to several phones?

Yes. Connect the same address on each phone's Agent page. Every call has its own X-Session-Id, so your agent can keep calls apart.

Stuck on something?

Open a ticket from your dashboard and we answer there. No key yet? Write to info@eriusphone.com.

Open a support ticket