Skip to main content
POST
/
v1
/
agents
{
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "name": "Jarvis",
  "avatar_id": "01234567-89ab-cdef-0123-456789abcdef",
  "system_prompt": "You are a helpful assistant.",
  "language": "en",
  "greeting": "Hello!",
  "max_session_length_minutes": 30,
  "capabilities": [
    {
      "type": "webcam_vision"
    },
    {
      "type": "wakeup_mode",
      "triggers": [
        "hey agent",
        "hi pal"
      ]
    }
  ],
  "llm": {
    "type": "openai"
  }
}

Authorizations

x-api-key
string
header
required

Your Beyond Presence API Key.

Body

application/json

Request body to create an agent.

name
string
required

Display name to use. Also used when addressed in conversations.

Required string length: 1 - 100
Examples:

"Jarvis"

"HAL 9000"

avatar_id
string
required

ID of avatar to use.

Required string length: 1 - 100
Examples:

"01234567-89ab-cdef-0123-456789abcdef"

system_prompt
string
required

System prompt to use.

Required string length: 1 - 10000
Examples:

"You are a helpful assistant."

language
enum<string> | null

Language to use. Language of an agent.

Available options:
ar,
bg,
zh,
cs,
da,
nl,
en,
en-AU,
en-GB,
en-US,
fi,
fr,
fr-CA,
fr-FR,
de,
el,
hi,
hu,
id,
it,
ja,
ko,
ms,
no,
pl,
pt,
pt-BR,
pt-PT,
ro,
ru,
sk,
es,
sv,
tr,
uk,
ur,
vi
Examples:

"en"

"en-US"

"de"

greeting
string | null

What to say when a call starts.

Required string length: 1 - 1000
Examples:

"Hello!"

max_session_length_minutes
integer | null

Maximum session length in minutes.

Required range: 0 < x <= 90
Examples:

30

capabilities
(WebcamVisionAgentCapability · object | WakeupModeAgentCapability · object)[]

Extra capabilities to manage calls.

  • WebcamVisionAgentCapability
  • WakeupModeAgentCapability
llm
object | null

Configuration for LLM to use. Configuration for OpenAI LLM.

  • OpenaiAgentLlm
  • OpenaiCompatibleAgentLlm
Examples:
{ "type": "openai" }
{
"type": "openai_compatible",
"api_id": "01234567-89ab-cdef-0123-456789abcdef",
"model": "gpt-4o-mini",
"temperature": 0.7
}

Response

Created Agent with ID

Response model for an agent.

id
string
required

Unique identifier of the object in the database.

Examples:

"01234567-89ab-cdef-0123-456789abcdef"

name
string
required

Display name to use. Also used when addressed in conversations.

Required string length: 1 - 100
Examples:

"Jarvis"

"HAL 9000"

avatar_id
string
required

ID of avatar to use.

Required string length: 1 - 100
Examples:

"01234567-89ab-cdef-0123-456789abcdef"

system_prompt
string
required

System prompt to use.

Required string length: 1 - 10000
Examples:

"You are a helpful assistant."

language
enum<string> | null

Language to use. Language of an agent.

Available options:
ar,
bg,
zh,
cs,
da,
nl,
en,
en-AU,
en-GB,
en-US,
fi,
fr,
fr-CA,
fr-FR,
de,
el,
hi,
hu,
id,
it,
ja,
ko,
ms,
no,
pl,
pt,
pt-BR,
pt-PT,
ro,
ru,
sk,
es,
sv,
tr,
uk,
ur,
vi
Examples:

"en"

"en-US"

"de"

greeting
string | null

What to say when a call starts.

Required string length: 1 - 1000
Examples:

"Hello!"

max_session_length_minutes
integer | null

Maximum session length in minutes.

Required range: 0 < x <= 90
Examples:

30

capabilities
(WebcamVisionAgentCapability · object | WakeupModeAgentCapability · object)[]

Extra capabilities to manage calls.

  • WebcamVisionAgentCapability
  • WakeupModeAgentCapability
llm
object | null

Configuration for LLM to use. Configuration for OpenAI LLM.

  • OpenaiAgentLlm
  • OpenaiCompatibleAgentLlm
Examples:
{ "type": "openai" }
{
"type": "openai_compatible",
"api_id": "01234567-89ab-cdef-0123-456789abcdef",
"model": "gpt-4o-mini",
"temperature": 0.7
}
I