Quickstart
Create an agent, talk to it in your browser, and release it to production — in the dashboard or with the API, in about ten minutes.
By the end of this page you will have an agent you have spoken to, released to production, and ready to put on a website or a phone number. Every step shows the dashboard first and the API second; pick one and stay with it.
You need a Kejue Voice workspace. The builder role is enough for the dashboard path. The API path also needs an API key, and only an admin or owner can create one.
Create the agent
Open Agents → New agent. Enter a name (for example Claims intake), keep the generated slug, choose Prompt mode, and select Create agent.
Then select Edit draft, replace the starter prompt with your own, and save. A short first prompt is enough:
You are the claims intake assistant for Acme Insurance. Collect
first-notice-of-loss details: what happened, when, and where. Speak in short
sentences and ask one question at a time.A new agent starts with working default models, voice, and turn-taking, so you can talk to it straight away. Tune them later in Voices & models.
Talk to the draft
Everything you edit lands in the agent's draft. You can talk to the draft before releasing anything, and no caller can reach it.
On the agent's page, open Test call, choose Draft, and select Start test call. Allow microphone access and speak. The transcript appears as you talk, and the call is listed under Calls when you hang up.
Change the prompt, test again, and repeat until the agent sounds right.
Release it to production
Releasing takes two moves. Promote freezes the draft into a numbered,
read-only version and points staging at it. Deploy points
production at the staging version. Phone numbers, campaigns, and web
calls without a version_id all use production.
On the agent's page, select Promote and confirm. Then, in the staging panel, select Deploy and confirm.
Calls already in progress keep the version they started on. To undo a release, point staging at an older version and deploy again (Versions & releases).
If something goes wrong
Every error is JSON with a stable code. Branch on the code, never on the
message:
| You see | Why | What to do |
|---|---|---|
401 unauthorized | The key is missing, mistyped, revoked, or expired. | Check the Authorization: Bearer header. GET /auth/me confirms which key and workspace you are using. |
403 forbidden | The key lacks a permission. details.required_permission names it. | Add that permission to the key. Actions don't imply each other: agents:update cannot read agents. |
403 entitlement_required | Your workspace plan doesn't include the feature in details.feature, such as evals or campaigns. | Ask your Kejue contact to enable it. |
409 slug_taken | Another agent in the workspace already uses this slug. Slugs stay reserved after archiving. | Pick a different slug. |
409 idempotency_conflict | You reused an Idempotency-Key with a different request body. | Use a new key for each new request. |
422 no_production_version on POST /web-calls | The agent has nothing in production yet. | Deploy it, or pass version_id to call a specific version. |
422 agent_baseline_too_large | The prompt and tool definitions don't fit the model's context budget. | Shorten the prompt or detach tools. Estimate first. |
| The agent talks over people or pauses too long | Turn-taking needs tuning for your callers. | Adjust end-of-turn detection. |
The full list, with retry guidance for each code, is in Error codes.
Next steps
- Write a voice prompt that holds up on real calls.
- How Kejue Voice works: workspaces, versions, calls, and what happens after a call.
- Test with evals before every release.
- Call your systems during a conversation with HTTP tools.