Create Agent
curl --request POST \
--url https://api.in.talqing.com/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"analysis": {
"enabled": true,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"outcome": {
"prompt": "<string>"
},
"summary": true
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": false,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": true,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": [
"<string>"
],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": false,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": true
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": false,
"fallback": {
"expressive": false,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": true,
"enabled": true,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": true
},
"preemptive_generation": {
"enabled": false,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": false
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
],
"vision_input": {
"screenshare": {
"enabled": false,
"record": false
}
}
}
}
'import requests
url = "https://api.in.talqing.com/v1/agents"
payload = { "config": {
"name": "<string>",
"analysis": {
"enabled": True,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"outcome": { "prompt": "<string>" },
"summary": True
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": False,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": True,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": ["<string>"],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": False,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": True
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": False,
"fallback": {
"expressive": False,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": True,
"enabled": True,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": True
},
"preemptive_generation": {
"enabled": False,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": False
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": False
}
],
"vision_input": { "screenshare": {
"enabled": False,
"record": False
} }
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
name: '<string>',
analysis: {
enabled: true,
fields: [{description: '<string>', name: '<string>', type: 'string'}],
model: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
outcome: {prompt: '<string>'},
summary: true
},
avatar: {
avatar_id: 'edf6fdcb-acab-44b8-b974-ded72665ee26',
model: 'anam',
name: 'Mia',
provider: 'anam'
},
background_audio: {
ambient: 'office',
ambient_volume: 0.4,
enabled: false,
thinking: 'keyboard',
thinking_volume: 0.6
},
channel: 'voice',
conversation: {context: 'none', initialize_userdata: true, summary_limit: 2},
greeting: 'Hello! How can I help you today?',
handoffs: [
{
description: '<string>',
name: '<string>',
agent_id: '<string>',
context: 'transcript',
message: '<string>',
recent_turns: 5,
summary_prompt: '<string>'
}
],
kb_ids: ['<string>'],
language: '<string>',
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
noise_cancellation: {
enabled: false,
enhancement_level: 0.8,
model: 'quail_vf_s',
provider: 'aicoustics'
},
on_enter: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_exit: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_user_turn_completed: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
prompt: 'You are a helpful, concise voice assistant.',
realtime: {
model: 'gpt-realtime-2.1',
provider: 'openai',
speed: 1,
voice: 'marin',
voice_name: '<string>'
},
recording: {
consent: 'off',
consent_notice: 'This call is recorded for quality and training purposes.',
enabled: true
},
stt: {
fallback: {model: 'saaras:v3', provider: 'sarvam'},
model: 'saaras:v3',
provider: 'sarvam'
},
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
tts: {
expressive: false,
fallback: {
expressive: false,
model: 'bulbul:v3',
provider: 'sarvam',
similarity_boost: 0.5,
speed: 1,
stability: 0.5,
voice: 'shubh',
voice_name: '<string>'
},
model: 'bulbul:v3',
provider: 'sarvam',
similarity_boost: 0.5,
speed: 1,
stability: 0.5,
voice: 'shubh',
voice_name: '<string>'
},
turn_handling: {
endpointing: {max_silence_duration: 2.5, min_silence_duration: 0.5},
interruption: {
discard_audio_if_uninterruptible: true,
enabled: true,
false_interruption_timeout: 2,
min_speech_duration: 0.5,
min_words: 0,
resume_false_interruption: true
},
preemptive_generation: {enabled: false, max_retries: 3, max_speech_duration: 10, preemptive_tts: false}
},
vars: [{name: '<string>', default: '<string>', description: '', required: false}],
vision_input: {screenshare: {enabled: false, record: false}}
}
})
};
fetch('https://api.in.talqing.com/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.in.talqing.com/v1/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'name' => '<string>',
'analysis' => [
'enabled' => true,
'fields' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => 'string'
]
],
'model' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'outcome' => [
'prompt' => '<string>'
],
'summary' => true
],
'avatar' => [
'avatar_id' => 'edf6fdcb-acab-44b8-b974-ded72665ee26',
'model' => 'anam',
'name' => 'Mia',
'provider' => 'anam'
],
'background_audio' => [
'ambient' => 'office',
'ambient_volume' => 0.4,
'enabled' => false,
'thinking' => 'keyboard',
'thinking_volume' => 0.6
],
'channel' => 'voice',
'conversation' => [
'context' => 'none',
'initialize_userdata' => true,
'summary_limit' => 2
],
'greeting' => 'Hello! How can I help you today?',
'handoffs' => [
[
'description' => '<string>',
'name' => '<string>',
'agent_id' => '<string>',
'context' => 'transcript',
'message' => '<string>',
'recent_turns' => 5,
'summary_prompt' => '<string>'
]
],
'kb_ids' => [
'<string>'
],
'language' => '<string>',
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'noise_cancellation' => [
'enabled' => false,
'enhancement_level' => 0.8,
'model' => 'quail_vf_s',
'provider' => 'aicoustics'
],
'on_enter' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_exit' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_user_turn_completed' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'prompt' => 'You are a helpful, concise voice assistant.',
'realtime' => [
'model' => 'gpt-realtime-2.1',
'provider' => 'openai',
'speed' => 1,
'voice' => 'marin',
'voice_name' => '<string>'
],
'recording' => [
'consent' => 'off',
'consent_notice' => 'This call is recorded for quality and training purposes.',
'enabled' => true
],
'stt' => [
'fallback' => [
'model' => 'saaras:v3',
'provider' => 'sarvam'
],
'model' => 'saaras:v3',
'provider' => 'sarvam'
],
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'tts' => [
'expressive' => false,
'fallback' => [
'expressive' => false,
'model' => 'bulbul:v3',
'provider' => 'sarvam',
'similarity_boost' => 0.5,
'speed' => 1,
'stability' => 0.5,
'voice' => 'shubh',
'voice_name' => '<string>'
],
'model' => 'bulbul:v3',
'provider' => 'sarvam',
'similarity_boost' => 0.5,
'speed' => 1,
'stability' => 0.5,
'voice' => 'shubh',
'voice_name' => '<string>'
],
'turn_handling' => [
'endpointing' => [
'max_silence_duration' => 2.5,
'min_silence_duration' => 0.5
],
'interruption' => [
'discard_audio_if_uninterruptible' => true,
'enabled' => true,
'false_interruption_timeout' => 2,
'min_speech_duration' => 0.5,
'min_words' => 0,
'resume_false_interruption' => true
],
'preemptive_generation' => [
'enabled' => false,
'max_retries' => 3,
'max_speech_duration' => 10,
'preemptive_tts' => false
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => false
]
],
'vision_input' => [
'screenshare' => [
'enabled' => false,
'record' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.in.talqing.com/v1/agents"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.in.talqing.com/v1/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"config": {
"name": "<string>",
"analysis": {
"enabled": true,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"outcome": {
"prompt": "<string>"
},
"summary": true
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": false,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": true,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": [
"<string>"
],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": false,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": true
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": false,
"fallback": {
"expressive": false,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": true,
"enabled": true,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": true
},
"preemptive_generation": {
"enabled": false,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": false
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
],
"vision_input": {
"screenshare": {
"enabled": false,
"record": false
}
}
},
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"published_at": "2023-11-07T05:31:56Z",
"published_version": 123,
"versions": [
{
"published_at": "2023-11-07T05:31:56Z",
"version": 123,
"published_by": "<string>"
}
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}agents
Create Agent
Create an agent from a complete config.
The config is validated the same way an update is, so unknown models or unpublished tool references are rejected here. Names are unique per workspace. The agent starts unpublished.
POST
/
v1
/
agents
Create Agent
curl --request POST \
--url https://api.in.talqing.com/v1/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"analysis": {
"enabled": true,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"outcome": {
"prompt": "<string>"
},
"summary": true
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": false,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": true,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": [
"<string>"
],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": false,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": true
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": false,
"fallback": {
"expressive": false,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": true,
"enabled": true,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": true
},
"preemptive_generation": {
"enabled": false,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": false
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
],
"vision_input": {
"screenshare": {
"enabled": false,
"record": false
}
}
}
}
'import requests
url = "https://api.in.talqing.com/v1/agents"
payload = { "config": {
"name": "<string>",
"analysis": {
"enabled": True,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"outcome": { "prompt": "<string>" },
"summary": True
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": False,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": True,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": ["<string>"],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": False,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": True
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": False,
"fallback": {
"expressive": False,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": True,
"enabled": True,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": True
},
"preemptive_generation": {
"enabled": False,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": False
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": False
}
],
"vision_input": { "screenshare": {
"enabled": False,
"record": False
} }
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
name: '<string>',
analysis: {
enabled: true,
fields: [{description: '<string>', name: '<string>', type: 'string'}],
model: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
outcome: {prompt: '<string>'},
summary: true
},
avatar: {
avatar_id: 'edf6fdcb-acab-44b8-b974-ded72665ee26',
model: 'anam',
name: 'Mia',
provider: 'anam'
},
background_audio: {
ambient: 'office',
ambient_volume: 0.4,
enabled: false,
thinking: 'keyboard',
thinking_volume: 0.6
},
channel: 'voice',
conversation: {context: 'none', initialize_userdata: true, summary_limit: 2},
greeting: 'Hello! How can I help you today?',
handoffs: [
{
description: '<string>',
name: '<string>',
agent_id: '<string>',
context: 'transcript',
message: '<string>',
recent_turns: 5,
summary_prompt: '<string>'
}
],
kb_ids: ['<string>'],
language: '<string>',
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
noise_cancellation: {
enabled: false,
enhancement_level: 0.8,
model: 'quail_vf_s',
provider: 'aicoustics'
},
on_enter: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_exit: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_user_turn_completed: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
prompt: 'You are a helpful, concise voice assistant.',
realtime: {
model: 'gpt-realtime-2.1',
provider: 'openai',
speed: 1,
voice: 'marin',
voice_name: '<string>'
},
recording: {
consent: 'off',
consent_notice: 'This call is recorded for quality and training purposes.',
enabled: true
},
stt: {
fallback: {model: 'saaras:v3', provider: 'sarvam'},
model: 'saaras:v3',
provider: 'sarvam'
},
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
tts: {
expressive: false,
fallback: {
expressive: false,
model: 'bulbul:v3',
provider: 'sarvam',
similarity_boost: 0.5,
speed: 1,
stability: 0.5,
voice: 'shubh',
voice_name: '<string>'
},
model: 'bulbul:v3',
provider: 'sarvam',
similarity_boost: 0.5,
speed: 1,
stability: 0.5,
voice: 'shubh',
voice_name: '<string>'
},
turn_handling: {
endpointing: {max_silence_duration: 2.5, min_silence_duration: 0.5},
interruption: {
discard_audio_if_uninterruptible: true,
enabled: true,
false_interruption_timeout: 2,
min_speech_duration: 0.5,
min_words: 0,
resume_false_interruption: true
},
preemptive_generation: {enabled: false, max_retries: 3, max_speech_duration: 10, preemptive_tts: false}
},
vars: [{name: '<string>', default: '<string>', description: '', required: false}],
vision_input: {screenshare: {enabled: false, record: false}}
}
})
};
fetch('https://api.in.talqing.com/v1/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.in.talqing.com/v1/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'name' => '<string>',
'analysis' => [
'enabled' => true,
'fields' => [
[
'description' => '<string>',
'name' => '<string>',
'type' => 'string'
]
],
'model' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'outcome' => [
'prompt' => '<string>'
],
'summary' => true
],
'avatar' => [
'avatar_id' => 'edf6fdcb-acab-44b8-b974-ded72665ee26',
'model' => 'anam',
'name' => 'Mia',
'provider' => 'anam'
],
'background_audio' => [
'ambient' => 'office',
'ambient_volume' => 0.4,
'enabled' => false,
'thinking' => 'keyboard',
'thinking_volume' => 0.6
],
'channel' => 'voice',
'conversation' => [
'context' => 'none',
'initialize_userdata' => true,
'summary_limit' => 2
],
'greeting' => 'Hello! How can I help you today?',
'handoffs' => [
[
'description' => '<string>',
'name' => '<string>',
'agent_id' => '<string>',
'context' => 'transcript',
'message' => '<string>',
'recent_turns' => 5,
'summary_prompt' => '<string>'
]
],
'kb_ids' => [
'<string>'
],
'language' => '<string>',
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'noise_cancellation' => [
'enabled' => false,
'enhancement_level' => 0.8,
'model' => 'quail_vf_s',
'provider' => 'aicoustics'
],
'on_enter' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_exit' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_user_turn_completed' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'prompt' => 'You are a helpful, concise voice assistant.',
'realtime' => [
'model' => 'gpt-realtime-2.1',
'provider' => 'openai',
'speed' => 1,
'voice' => 'marin',
'voice_name' => '<string>'
],
'recording' => [
'consent' => 'off',
'consent_notice' => 'This call is recorded for quality and training purposes.',
'enabled' => true
],
'stt' => [
'fallback' => [
'model' => 'saaras:v3',
'provider' => 'sarvam'
],
'model' => 'saaras:v3',
'provider' => 'sarvam'
],
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'tts' => [
'expressive' => false,
'fallback' => [
'expressive' => false,
'model' => 'bulbul:v3',
'provider' => 'sarvam',
'similarity_boost' => 0.5,
'speed' => 1,
'stability' => 0.5,
'voice' => 'shubh',
'voice_name' => '<string>'
],
'model' => 'bulbul:v3',
'provider' => 'sarvam',
'similarity_boost' => 0.5,
'speed' => 1,
'stability' => 0.5,
'voice' => 'shubh',
'voice_name' => '<string>'
],
'turn_handling' => [
'endpointing' => [
'max_silence_duration' => 2.5,
'min_silence_duration' => 0.5
],
'interruption' => [
'discard_audio_if_uninterruptible' => true,
'enabled' => true,
'false_interruption_timeout' => 2,
'min_speech_duration' => 0.5,
'min_words' => 0,
'resume_false_interruption' => true
],
'preemptive_generation' => [
'enabled' => false,
'max_retries' => 3,
'max_speech_duration' => 10,
'preemptive_tts' => false
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => false
]
],
'vision_input' => [
'screenshare' => [
'enabled' => false,
'record' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.in.talqing.com/v1/agents"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.in.talqing.com/v1/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"name\": \"<string>\",\n \"analysis\": {\n \"enabled\": true,\n \"fields\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"type\": \"string\"\n }\n ],\n \"model\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"outcome\": {\n \"prompt\": \"<string>\"\n },\n \"summary\": true\n },\n \"avatar\": {\n \"avatar_id\": \"edf6fdcb-acab-44b8-b974-ded72665ee26\",\n \"model\": \"anam\",\n \"name\": \"Mia\",\n \"provider\": \"anam\"\n },\n \"background_audio\": {\n \"ambient\": \"office\",\n \"ambient_volume\": 0.4,\n \"enabled\": false,\n \"thinking\": \"keyboard\",\n \"thinking_volume\": 0.6\n },\n \"channel\": \"voice\",\n \"conversation\": {\n \"context\": \"none\",\n \"initialize_userdata\": true,\n \"summary_limit\": 2\n },\n \"greeting\": \"Hello! How can I help you today?\",\n \"handoffs\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"context\": \"transcript\",\n \"message\": \"<string>\",\n \"recent_turns\": 5,\n \"summary_prompt\": \"<string>\"\n }\n ],\n \"kb_ids\": [\n \"<string>\"\n ],\n \"language\": \"<string>\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"noise_cancellation\": {\n \"enabled\": false,\n \"enhancement_level\": 0.8,\n \"model\": \"quail_vf_s\",\n \"provider\": \"aicoustics\"\n },\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"prompt\": \"You are a helpful, concise voice assistant.\",\n \"realtime\": {\n \"model\": \"gpt-realtime-2.1\",\n \"provider\": \"openai\",\n \"speed\": 1,\n \"voice\": \"marin\",\n \"voice_name\": \"<string>\"\n },\n \"recording\": {\n \"consent\": \"off\",\n \"consent_notice\": \"This call is recorded for quality and training purposes.\",\n \"enabled\": true\n },\n \"stt\": {\n \"fallback\": {\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"model\": \"saaras:v3\",\n \"provider\": \"sarvam\"\n },\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"tts\": {\n \"expressive\": false,\n \"fallback\": {\n \"expressive\": false,\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"model\": \"bulbul:v3\",\n \"provider\": \"sarvam\",\n \"similarity_boost\": 0.5,\n \"speed\": 1,\n \"stability\": 0.5,\n \"voice\": \"shubh\",\n \"voice_name\": \"<string>\"\n },\n \"turn_handling\": {\n \"endpointing\": {\n \"max_silence_duration\": 2.5,\n \"min_silence_duration\": 0.5\n },\n \"interruption\": {\n \"discard_audio_if_uninterruptible\": true,\n \"enabled\": true,\n \"false_interruption_timeout\": 2,\n \"min_speech_duration\": 0.5,\n \"min_words\": 0,\n \"resume_false_interruption\": true\n },\n \"preemptive_generation\": {\n \"enabled\": false,\n \"max_retries\": 3,\n \"max_speech_duration\": 10,\n \"preemptive_tts\": false\n }\n },\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false\n }\n ],\n \"vision_input\": {\n \"screenshare\": {\n \"enabled\": false,\n \"record\": false\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"config": {
"name": "<string>",
"analysis": {
"enabled": true,
"fields": [
{
"description": "<string>",
"name": "<string>",
"type": "string"
}
],
"model": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"outcome": {
"prompt": "<string>"
},
"summary": true
},
"avatar": {
"avatar_id": "edf6fdcb-acab-44b8-b974-ded72665ee26",
"model": "anam",
"name": "Mia",
"provider": "anam"
},
"background_audio": {
"ambient": "office",
"ambient_volume": 0.4,
"enabled": false,
"thinking": "keyboard",
"thinking_volume": 0.6
},
"channel": "voice",
"conversation": {
"context": "none",
"initialize_userdata": true,
"summary_limit": 2
},
"greeting": "Hello! How can I help you today?",
"handoffs": [
{
"description": "<string>",
"name": "<string>",
"agent_id": "<string>",
"context": "transcript",
"message": "<string>",
"recent_turns": 5,
"summary_prompt": "<string>"
}
],
"kb_ids": [
"<string>"
],
"language": "<string>",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"noise_cancellation": {
"enabled": false,
"enhancement_level": 0.8,
"model": "quail_vf_s",
"provider": "aicoustics"
},
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"prompt": "You are a helpful, concise voice assistant.",
"realtime": {
"model": "gpt-realtime-2.1",
"provider": "openai",
"speed": 1,
"voice": "marin",
"voice_name": "<string>"
},
"recording": {
"consent": "off",
"consent_notice": "This call is recorded for quality and training purposes.",
"enabled": true
},
"stt": {
"fallback": {
"model": "saaras:v3",
"provider": "sarvam"
},
"model": "saaras:v3",
"provider": "sarvam"
},
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"tts": {
"expressive": false,
"fallback": {
"expressive": false,
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"model": "bulbul:v3",
"provider": "sarvam",
"similarity_boost": 0.5,
"speed": 1,
"stability": 0.5,
"voice": "shubh",
"voice_name": "<string>"
},
"turn_handling": {
"endpointing": {
"max_silence_duration": 2.5,
"min_silence_duration": 0.5
},
"interruption": {
"discard_audio_if_uninterruptible": true,
"enabled": true,
"false_interruption_timeout": 2,
"min_speech_duration": 0.5,
"min_words": 0,
"resume_false_interruption": true
},
"preemptive_generation": {
"enabled": false,
"max_retries": 3,
"max_speech_duration": 10,
"preemptive_tts": false
}
},
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false
}
],
"vision_input": {
"screenshare": {
"enabled": false,
"record": false
}
}
},
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"published_at": "2023-11-07T05:31:56Z",
"published_version": 123,
"versions": [
{
"published_at": "2023-11-07T05:31:56Z",
"version": 123,
"published_by": "<string>"
}
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}Authorizations
BearerAuthSessionCookie
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The whole agent: what it says, which models run it, and what it can do.
A complete definition, not a patch — whatever it omits takes that field's default.
Show child attributes
Show child attributes
Response
Successful Response
The whole agent: what it says, which models run it, and what it can do.
A complete definition, not a patch — whatever it omits takes that field's default.
Show child attributes
Show child attributes
Show child attributes
Show child attributes