Pular para o conteúdo
Qomni

Agents

Crie um agente, dê voz a ele e coloque-o para atender: REST para as ligações e um WebSocket para falar com ele em tempo real a partir do seu app.

URL base
https://api.qomni.ai/agents/v1
Chave
sk_agents_test_…
curl https://api.qomni.ai/agents/v1/calls \
  -H "Authorization: Bearer sk_agents_test_…"

Novidades

Navegação

Create demo session

Start a voice conversation with Qomni's demo agent from the public website, without a key. The answer is a LiveKit participant token for a new room in the demo workspace's cell, with the demo agent already dispatched into it: join url with token within 60 seconds, publish the microphone and play the agent's audio. The call is in test mode and ends by itself after max_duration_seconds, or after 20 seconds without the visitor speaking.

Limits: 3 sessions per IP in 10 minutes and 10 in 24 hours (rate_limited), and a daily cap of demo minutes for everyone (demo_unavailable). CORS answers only the website's origin. An API key sent anyway is ignored.

POST
https://api.qomni.ai/agents/v1/demo_sessions

Corpo da requisiçãoJSONOpcional

  • languageOpcionalesorenorpt-br

    The language the demo agent speaks.

    default: "en"
  • agentOpcionalreceptionorschedulingorqualificationorsupportorcollectionsorreminders

    Which demo agent answers - a receptionist, appointment booking, lead qualification, first-level support, collections or appointment reminders.

    default: "reception"

Retorna

201

The demo session.

JSON
  • urlstringObrigatório

    The cell's LiveKit (wss://…).

    format: uri
  • tokenstringObrigatório

    A LiveKit participant token for room only, microphone only.

  • roomstringObrigatório
    pattern: ^demo-[0-9a-z]+$
  • expires_atstringObrigatório

    Join before this instant.

    format: date-time
  • max_duration_secondsintegerObrigatório

    The call ends by itself after this long.

422

The request does not match the contract (validation_failed).
JSON
  • errorobjectObrigatório
    • codestringObrigatório

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObrigatório

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

429

Too many demo sessions from this address (rate_limited); retry after Retry-After seconds.
JSON
  • errorobjectObrigatório
    • codestringObrigatório

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObrigatório

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

503

The demo has used today's minutes (demo_unavailable), or is not offered in this environment.
JSON
  • errorobjectObrigatório
    • codestringObrigatório

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObrigatório

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

Novo

2 de 7 passos feitosA seguir: a plataforma em produção

A Qomni está em beta privada

A API e o app ainda não estão abertos. Veja o que está feito, o que falta e como abre, passo a passo até o primeiro cliente.

Digite para buscar…

↑↓ mover↵ abrirEsc para fechar