Create a new AI agent with full configuration including speech-to-text (STT), speech-to-speech (STS), large language model (LLM), text-to-speech (TTS), main prompt, call analysis prompt, tools, and widget settings.
Prompt Configuration
You can configure the agent’s prompt in two ways:
Inline prompt (prompt_content) — Provide the prompt text directly. An internal prompt is auto-created for the agent.
Prompt reference (prompt) — Reference an existing prompt by name and optionally version.
Call Analysis Configuration
You can optionally configure a dedicated call analysis prompt and schema:
Enable analysis (call_analysis_enabled) — Set this to true only when you want call analysis to run.
Analysis prompt reference (call_analysis_prompt) — Reference an existing analysis prompt by name and optionally version.
Inline analysis prompt (call_analysis_prompt.custom_prompt) — Provide prompt content directly to create a new analysis prompt version before linking it to the agent.
Structured output schema (call_analysis_schema) — Define the expected JSON structure for call analysis output.
If you do not want call analysis, omit call_analysis_enabled, call_analysis_prompt, and call_analysis_schema. If call_analysis_enabled is true, provide call_analysis_prompt as well.
Try It Behavior
In Try it, llm is shown as a single object.
For standard providers, fill llm.params.temperature only.
For CUSTOM_LLM, fill llm.params.base_url, llm.params.api_key, and optionally llm.params.API_TYPE.
Provider Restrictions (Public API)
Provider
Allowed params
STT
No params allowed (must be empty {})
STS
No public API param restrictions
LLM
Standard providers: only temperature (0.0 - 2.0). CUSTOM_LLM: requires base_url plus api_key; optional API_TYPE and temperature
TTS
Only speed
Authentication
Send a platform API key in X-API-Key or an OAuth access token in the Bearer header. Authentication.
Request Body
string
required
Agent name (1-100 characters).
string
required
Agent type: INBOUND or OUTBOUND.
object
required
Speech-to-Text configuration.
Show properties
string
required
STT provider: DEEPGRAM, OPENAI, WHISPER, or GROK.
string
required
Model name (e.g., nova-2).
string
required
Language code (e.g., en, hi).
object
Must be empty {} for public API requests.
object
required
Large Language Model configuration.
Show properties
string
required
LLM provider: OPENAI, OPENAI_RESPONSES, ANTHROPIC, GOOGLE, GROK, OPENROUTER, or CUSTOM_LLM.
string
required
Model name (e.g., gpt-4o).
object
For standard LLM providers, only temperature (0.0-2.0) is allowed. For CUSTOM_LLM, provide base_url, api_key, and optionally API_TYPE (CHAT_COMPLETION or RESPONSES) and temperature. If API_TYPE is omitted, it defaults to CHAT_COMPLETION.
object
required
Text-to-Speech configuration.
Show properties
string
required
TTS provider: CARTESIA, DEEPGRAM, ELEVENLABS, SARVAM, GOOGLE, HUME, or GROK.
string
required
Model name (e.g., sonic-2).
string
required
Language code.
string
required
Voice ID from the provider. Use the List Voices endpoint to find available voices.
object
Only speed is allowed.
object
Speech-to-Speech configuration for realtime voice generation.
Inline prompt content. Auto-creates an internal prompt for the agent.
object
Reference to an existing prompt (alternative to prompt_content).
Show properties
string
required
Name of the existing prompt.
integer
Specific version (omit for latest).
object
Optional call analysis prompt configuration.
Show properties
string
required
Name of an existing analysis prompt to reference.
integer
Specific analysis prompt version to use (omit for latest).
string
Inline analysis prompt content. If provided, a new analysis prompt version is created before linking it to the agent.
boolean
Toggle call analysis on or off for the agent. Set this to true only when you
want call analysis to run. If true, provide call_analysis_prompt as well.
object
Optional schema describing the structured JSON output expected from call
analysis.
string
Agent’s greeting message displayed when a chat session starts.
object
Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.Available tools: end_call, transfer_call, schedule_call, set_language, background_audio, user_idle.
object
Widget configuration for chat interface customization.
array
Tools that the connected browser or device can execute. Each tool needs a unique name and description, and can declare typed parameters. Configure up to 16 tools per agent and 16 parameters per tool. For example, a browser can register a show_caption handler and offer it when joining a Daily session.
Returns the complete agent object with all configurations, id, and timestamps.
Authorizations
ApiKeyAuthOAuthAccessToken
X-API-Key
string
header
required
Studio API key for server-side requests.
Body
application/json
agent_name
string
required
Agent name (1-100 characters)
Required string length: 1 - 100
Example:
"Customer Support Agent"
agent_type
enum<string>
required
Agent type
Available options:
INBOUND,
OUTBOUND
stt
object
required
Show child attributes
llm
object
required
LLM configuration. Use provider_name to choose a standard provider or CUSTOM_LLM. For standard providers, only params.temperature applies. For CUSTOM_LLM, use params.base_url, params.api_key, and optional params.API_TYPE.
Show child attributes
tts
object
required
Show child attributes
agent_description
string
Agent description (max 500 characters)
Maximum string length: 500
agent_category
enum<string>
default:other
Agent category
Available options:
Customer Service,
Sales,
Scheduling,
Research,
Healthcare,
Customer Success,
Education,
Finance,
HR,
Legal,
Productivity,
Creative,
IT/DevOps,
E-commerce,
Entertainment,
Travel,
Wellness,
Anime,
Cartoon,
Gaming,
Lifestyle,
other
agent_tips
string[]
Usage tips for the agent
agent_mobile_number
string[]
Mobile numbers associated with the agent
call_analysis_prompt
object
Optional call analysis prompt reference. Provide custom_prompt to create a new analysis prompt version before linking it to the agent.
Show child attributes
call_analysis_enabled
boolean
Toggle call analysis on or off for the agent. Set to true only when you want call analysis to run; when true, provide call_analysis_prompt as well.
call_analysis_schema
object
Optional schema for structured call analysis output, keyed by field name.
Inline prompt content — auto-creates an internal prompt for the agent
prompt
object
Reference to an existing prompt (alternative to prompt_content)
Show child attributes
first_message_prompt
string
Agent's greeting message shown when chat starts
tools
object
Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.
Show child attributes
widget_config
object
Widget configuration for chat interface customization
Show child attributes
client_tools
object[]
Tools a connected browser or device can execute.
Maximum array length: 16
Show child attributes
sts
object
Show child attributes
Response
Agent created successfully
id
string
Agent ID
agent_name
string
Agent name
agent_description
string
Agent description
agent_type
enum<string>
Agent type
Available options:
INBOUND,
OUTBOUND
agent_category
string
Agent category
agent_tips
string[]
Usage tips
agent_mobile_number
string[]
Associated mobile numbers
stt
object
STT configuration
llm
object
LLM configuration
tts
object
TTS configuration
sts
object
Show child attributes
call_analysis_enabled
boolean
Whether call analysis is enabled for the agent
prompt
object
Prompt reference
Show child attributes
first_message_prompt
string
Agent's greeting message
dynamic_variables
string[]
Dynamic variables in the prompt
tools
object
Configured tools
widget_config
object
Widget configuration
MediaFiles
object[]
Media files associated with the agent
Show child attributes
created_at
string<date-time>
Creation timestamp
updated_at
string<date-time>
Last update timestamp
client_tools
object[]
Tools a connected browser or device can execute.
Maximum array length: 16
Show child attributes
call_analysis_prompt
object
Prompt reference
Show child attributes
call_analysis_schema
object
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"eigi.ai Documentation","colors":{"primary":"#0A0A0A","light":"#FEFFF8","dark":"#000000"},"logo":{"light":"https://mintcdn.com/eigiai/Xe5gEggf6gZ3QGw8/logo/eigi-light.svg?fit=max\u0026auto=format\u0026n=Xe5gEggf6gZ3QGw8\u0026q=85\u0026s=43c3bac5050c00e94afdbdd46bb378cd","dark":"https://mintcdn.com/eigiai/Xe5gEggf6gZ3QGw8/logo/eigi-dark.svg?fit=max\u0026auto=format\u0026n=Xe5gEggf6gZ3QGw8\u0026q=85\u0026s=753aafe21ff5a68f7226058bb3e0ed83"},"favicon":"https://mintcdn.com/eigiai/Xe5gEggf6gZ3QGw8/favicon.svg?fit=max\u0026auto=format\u0026n=Xe5gEggf6gZ3QGw8\u0026q=85\u0026s=bbe78a55d3586c5886de285d4596b64c","api":{"playground":{}},"navbar":{"links":[{"href":"mailto:buddy@eigi.ai","label":"Contact Support"}],"primary":{"type":"button","label":"Login to Dashboard","href":"https://eigi.ai"}},"footer":{"socials":{"x":"https://x.com/eigi_ai","linkedin":"https://linkedin.com/company/eigi-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"grid","href":"https://eigi.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:buddy@eigi.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"eigiai","hasAudioNarration":false,"actualSubdomain":"eigiai","customDomains":["docs.eigi.ai"],"gitSource":{"type":"github","owner":"eigi-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b05cc04e4e7a26275abb5e3","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API Reference","count":33},{"language":"default","tag":"Guides","count":23},{"language":"default","tag":"Platform Features","count":10},{"language":"default","tag":"Eigi Desktop","count":9},{"language":"default","tag":"Eigi Computer","count":9},{"language":"default","tag":"Agents","count":6},{"language":"default","tag":"Personal Agent","count":6},{"language":"default","tag":"Prompts","count":6},{"language":"default","tag":"Use Desktop","count":6},{"language":"default","tag":"Chat","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/public/agent-create","slug":"/api-reference/public/agent-create","pageMetadata":{"title":"Create Agent","openapi":"api-reference/openapi.json POST /v1/public/agents","description":"Create a new AI agent with complete configuration","href":"/api-reference/public/agent-create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new AI agent with complete configuration\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Create a new AI agent with full configuration including speech-to-text (STT), speech-to-speech (STS), large language model (LLM), text-to-speech (TTS), main prompt, call analysis prompt, tools, and widget settings.`}),`\n`,_jsx(Heading,{level:`3`,id:`prompt-configuration`,children:`Prompt Configuration`}),`\n`,_jsx(_components.p,{children:`You can configure the agent’s prompt in two ways:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inline prompt`}),` (`,_jsx(_components.code,{children:`prompt_content`}),`) — Provide the prompt text directly. An internal prompt is auto-created for the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Prompt reference`}),` (`,_jsx(_components.code,{children:`prompt`}),`) — Reference an existing prompt by name and optionally version.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`call-analysis-configuration`,children:`Call Analysis Configuration`}),`\n`,_jsx(_components.p,{children:`You can optionally configure a dedicated call analysis prompt and schema:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Enable analysis`}),` (`,_jsx(_components.code,{children:`call_analysis_enabled`}),`) — Set this to `,_jsx(_components.code,{children:`true`}),` only when you want call analysis to run.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Analysis prompt reference`}),` (`,_jsx(_components.code,{children:`call_analysis_prompt`}),`) — Reference an existing analysis prompt by name and optionally version.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inline analysis prompt`}),` (`,_jsx(_components.code,{children:`call_analysis_prompt.custom_prompt`}),`) — Provide prompt content directly to create a new analysis prompt version before linking it to the agent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Structured output schema`}),` (`,_jsx(_components.code,{children:`call_analysis_schema`}),`) — Define the expected JSON structure for call analysis output.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you do not want call analysis, omit `,_jsx(_components.code,{children:`call_analysis_enabled`}),`, `,_jsx(_components.code,{children:`call_analysis_prompt`}),`, and `,_jsx(_components.code,{children:`call_analysis_schema`}),`. If `,_jsx(_components.code,{children:`call_analysis_enabled`}),` is `,_jsx(_components.code,{children:`true`}),`, provide `,_jsx(_components.code,{children:`call_analysis_prompt`}),` as well.`]}),`\n`,_jsx(Heading,{level:`3`,id:`try-it-behavior`,children:`Try It Behavior`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`Try it`}),`, `,_jsx(_components.code,{children:`llm`}),` is shown as a single object.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For standard providers, fill `,_jsx(_components.code,{children:`llm.params.temperature`}),` only.`]}),`\n`,_jsxs(_components.li,{children:[`For `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`, fill `,_jsx(_components.code,{children:`llm.params.base_url`}),`, `,_jsx(_components.code,{children:`llm.params.api_key`}),`, and optionally `,_jsx(_components.code,{children:`llm.params.API_TYPE`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`provider-restrictions-public-api`,children:`Provider Restrictions (Public API)`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Provider`}),_jsx(_components.th,{children:`Allowed params`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`STT`})}),_jsxs(_components.td,{children:[`No params allowed (must be empty `,_jsx(_components.code,{children:`{}`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`STS`})}),_jsx(_components.td,{children:`No public API param restrictions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`LLM`})}),_jsxs(_components.td,{children:[`Standard providers: only `,_jsx(_components.code,{children:`temperature`}),` (0.0 - 2.0). `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`: requires `,_jsx(_components.code,{children:`base_url`}),` plus `,_jsx(_components.code,{children:`api_key`}),`; optional `,_jsx(_components.code,{children:`API_TYPE`}),` and `,_jsx(_components.code,{children:`temperature`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`TTS`})}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`speed`})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Send a platform API key in `,_jsx(_components.code,{children:`X-API-Key`}),` or an OAuth access token in the Bearer header. `,_jsx(_components.a,{href:`/api-reference/introduction`,children:`Authentication`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`agent_name`,type:`string`,required:true,id:`param-agent-name`,children:_jsx(_components.p,{children:`Agent name (1-100 characters).`})}),`\n`,_jsx(ParamField,{body:`agent_type`,type:`string`,required:true,id:`param-agent-type`,children:_jsxs(_components.p,{children:[`Agent type: `,_jsx(_components.code,{children:`INBOUND`}),` or `,_jsx(_components.code,{children:`OUTBOUND`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`stt`,type:`object`,required:true,id:`param-stt`,children:[_jsx(_components.p,{children:`Speech-to-Text configuration.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name`,children:_jsxs(_components.p,{children:[`STT provider: `,_jsx(_components.code,{children:`DEEPGRAM`}),`, `,_jsx(_components.code,{children:`OPENAI`}),`, `,_jsx(_components.code,{children:`WHISPER`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name`,children:_jsxs(_components.p,{children:[`Model name (e.g., `,_jsx(_components.code,{children:`nova-2`}),`).`]})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language`,children:_jsxs(_components.p,{children:[`Language code (e.g., `,_jsx(_components.code,{children:`en`}),`, `,_jsx(_components.code,{children:`hi`}),`).`]})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params`,children:_jsxs(_components.p,{children:[`Must be empty `,_jsx(_components.code,{children:`{}`}),` for public API requests.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`llm`,type:`object`,required:true,id:`param-llm`,children:[_jsx(_components.p,{children:`Large Language Model configuration.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-1`,children:_jsxs(_components.p,{children:[`LLM provider: `,_jsx(_components.code,{children:`OPENAI`}),`, `,_jsx(_components.code,{children:`OPENAI_RESPONSES`}),`, `,_jsx(_components.code,{children:`ANTHROPIC`}),`, `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`GROK`}),`, `,_jsx(_components.code,{children:`OPENROUTER`}),`, or `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-1`,children:_jsxs(_components.p,{children:[`Model name (e.g., `,_jsx(_components.code,{children:`gpt-4o`}),`).`]})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-1`,children:_jsxs(_components.p,{children:[`For standard LLM providers, only `,_jsx(_components.code,{children:`temperature`}),` (0.0-2.0) is allowed. For `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`, provide `,_jsx(_components.code,{children:`base_url`}),`, `,_jsx(_components.code,{children:`api_key`}),`, and optionally `,_jsx(_components.code,{children:`API_TYPE`}),` (`,_jsx(_components.code,{children:`CHAT_COMPLETION`}),` or `,_jsx(_components.code,{children:`RESPONSES`}),`) and `,_jsx(_components.code,{children:`temperature`}),`. If `,_jsx(_components.code,{children:`API_TYPE`}),` is omitted, it defaults to `,_jsx(_components.code,{children:`CHAT_COMPLETION`}),`.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`tts`,type:`object`,required:true,id:`param-tts`,children:[_jsx(_components.p,{children:`Text-to-Speech configuration.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-2`,children:_jsxs(_components.p,{children:[`TTS provider: `,_jsx(_components.code,{children:`CARTESIA`}),`, `,_jsx(_components.code,{children:`DEEPGRAM`}),`, `,_jsx(_components.code,{children:`ELEVENLABS`}),`, `,_jsx(_components.code,{children:`SARVAM`}),`, `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`HUME`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-2`,children:_jsxs(_components.p,{children:[`Model name (e.g., `,_jsx(_components.code,{children:`sonic-2`}),`).`]})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language-1`,children:_jsx(_components.p,{children:`Language code.`})}),_jsx(ParamField,{body:`voice_id`,type:`string`,required:true,id:`param-voice-id`,children:_jsxs(_components.p,{children:[`Voice ID from the provider. Use the `,_jsx(_components.a,{href:`/api-reference/public/voices-list`,children:`List Voices`}),` endpoint to find available voices.`]})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-2`,children:_jsxs(_components.p,{children:[`Only `,_jsx(_components.code,{children:`speed`}),` is allowed.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`sts`,type:`object`,id:`param-sts`,children:[_jsx(_components.p,{children:`Speech-to-Speech configuration for realtime voice generation.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`speech_to_speech_enabled`,type:`boolean`,id:`param-speech-to-speech-enabled`,children:_jsx(_components.p,{children:`Whether speech-to-speech is enabled.`})}),_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-3`,children:_jsxs(_components.p,{children:[`STS provider: `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`OPENAI`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-3`,children:_jsx(_components.p,{children:`Model name for the STS provider.`})}),_jsx(ParamField,{body:`voice_id`,type:`string`,required:true,id:`param-voice-id-1`,children:_jsx(_components.p,{children:`Voice ID for the STS provider.`})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language-2`,children:_jsx(_components.p,{children:`Language code.`})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-3`,children:_jsx(_components.p,{children:`Additional provider-specific STS parameters.`})})]})]}),`\n`,_jsx(ParamField,{body:`agent_description`,type:`string`,id:`param-agent-description`,children:_jsx(_components.p,{children:`Agent description (max 500 characters).`})}),`\n`,_jsx(ParamField,{body:`agent_category`,type:`string`,default:`other`,id:`param-agent-category`,children:_jsxs(_components.p,{children:[`Agent category (e.g., `,_jsx(_components.code,{children:`Customer Service`}),`, `,_jsx(_components.code,{children:`Sales`}),`, `,_jsx(_components.code,{children:`Healthcare`}),`, etc.).`]})}),`\n`,_jsx(ParamField,{body:`agent_tips`,type:`array`,id:`param-agent-tips`,children:_jsx(_components.p,{children:`Array of usage tip strings for the agent.`})}),`\n`,_jsx(ParamField,{body:`agent_mobile_number`,type:`array`,id:`param-agent-mobile-number`,children:_jsx(_components.p,{children:`Mobile numbers to associate with the agent.`})}),`\n`,_jsx(ParamField,{body:`prompt_content`,type:`string`,id:`param-prompt-content`,children:_jsx(_components.p,{children:`Inline prompt content. Auto-creates an internal prompt for the agent.`})}),`\n`,_jsxs(ParamField,{body:`prompt`,type:`object`,id:`param-prompt`,children:[_jsxs(_components.p,{children:[`Reference to an existing prompt (alternative to `,_jsx(_components.code,{children:`prompt_content`}),`).`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`prompt_name`,type:`string`,required:true,id:`param-prompt-name`,children:_jsx(_components.p,{children:`Name of the existing prompt.`})}),_jsx(ParamField,{body:`prompt_version`,type:`integer`,id:`param-prompt-version`,children:_jsx(_components.p,{children:`Specific version (omit for latest).`})})]})]}),`\n`,_jsxs(ParamField,{body:`call_analysis_prompt`,type:`object`,id:`param-call-analysis-prompt`,children:[_jsx(_components.p,{children:`Optional call analysis prompt configuration.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`prompt_name`,type:`string`,required:true,id:`param-prompt-name-1`,children:_jsx(_components.p,{children:`Name of an existing analysis prompt to reference.`})}),_jsx(ParamField,{body:`prompt_version`,type:`integer`,id:`param-prompt-version-1`,children:_jsx(_components.p,{children:`Specific analysis prompt version to use (omit for latest).`})}),_jsx(ParamField,{body:`custom_prompt`,type:`string`,id:`param-custom-prompt`,children:_jsx(_components.p,{children:`Inline analysis prompt content. If provided, a new analysis prompt version is created before linking it to the agent.`})})]})]}),`\n`,_jsx(ParamField,{body:`call_analysis_enabled`,type:`boolean`,id:`param-call-analysis-enabled`,children:_jsxs(_components.p,{children:[`Toggle call analysis on or off for the agent. Set this to `,_jsx(_components.code,{children:`true`}),` only when you\nwant call analysis to run. If `,_jsx(_components.code,{children:`true`}),`, provide `,_jsx(_components.code,{children:`call_analysis_prompt`}),` as well.`]})}),`\n`,_jsx(ParamField,{body:`call_analysis_schema`,type:`object`,id:`param-call-analysis-schema`,children:_jsx(_components.p,{children:`Optional schema describing the structured JSON output expected from call\nanalysis.`})}),`\n`,_jsx(ParamField,{body:`first_message_prompt`,type:`string`,id:`param-first-message-prompt`,children:_jsx(_components.p,{children:`Agent’s greeting message displayed when a chat session starts.`})}),`\n`,_jsxs(ParamField,{body:`tools`,type:`object`,id:`param-tools`,children:[_jsxs(_components.p,{children:[`Configure agent tools. Each tool can be `,_jsx(_components.code,{children:`true`}),` (enable), `,_jsx(_components.code,{children:`false`}),` (disable), or an object with configuration.`]}),_jsxs(_components.p,{children:[`Available tools: `,_jsx(_components.code,{children:`end_call`}),`, `,_jsx(_components.code,{children:`transfer_call`}),`, `,_jsx(_components.code,{children:`schedule_call`}),`, `,_jsx(_components.code,{children:`set_language`}),`, `,_jsx(_components.code,{children:`background_audio`}),`, `,_jsx(_components.code,{children:`user_idle`}),`.`]})]}),`\n`,_jsx(ParamField,{body:`widget_config`,type:`object`,id:`param-widget-config`,children:_jsx(_components.p,{children:`Widget configuration for chat interface customization.`})}),`\n`,_jsx(ParamField,{body:`client_tools`,type:`array`,id:`param-client-tools`,children:_jsxs(_components.p,{children:[`Tools that the connected browser or device can execute. Each tool needs a unique name and description, and can declare typed parameters. Configure up to 16 tools per agent and 16 parameters per tool. For example, a browser can register a `,_jsx(_components.code,{children:`show_caption`}),` handler and offer it when joining a Daily session.`]})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api-reference/public/daily-session`,children:`Daily browser sessions`}),` and `,_jsx(_components.a,{href:`/api-reference/public/websocket-session`,children:`WebSocket device sessions`}),` for how a client selects its tools.`]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns the complete agent object with all configurations, `,_jsx(_components.code,{children:`id`}),`, and timestamps.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Agent","openapi":"api-reference/openapi.json POST /v1/public/agents","description":"Create a new AI agent with complete configuration","href":"/api-reference/public/agent-create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[{"title":"Prompt Configuration","slug":"prompt-configuration","depth":3,"children":[]},{"title":"Call Analysis Configuration","slug":"call-analysis-configuration","depth":3,"children":[]},{"title":"Try It Behavior","slug":"try-it-behavior","depth":3,"children":[]},{"title":"Provider Restrictions (Public API)","slug":"provider-restrictions-public-api","depth":3,"children":[]}]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Agent","description":"Create a new AI agent with complete configuration","operationId":"createAgent","tags":["Agents"],"requestBody":"2422b425-eb98-4af6-9278-4f8dd5b6aaaf","responses":{"201":"62305fe9-2081-40ca-8356-16f31d476b96","400":"94541ac1-39d1-4a4f-be65-58b4d673e470","401":"3364076f-be0e-4a1b-859f-7fc494b9c0a4","404":"b63f73bb-c53e-4fe9-9769-aee2ac9b7d4a","500":"51de5964-efda-4929-a6b9-1de45a4a6f06"},"method":"post","type":"path","servers":["937e7270-f9b4-40f5-9ac8-7a295fd06937"],"security":["9892269a-1aa7-4a0b-bc3c-f776b2ac0772","384b2e49-8f36-4529-b907-178d432b89d3"],"path":"/v1/public/agents","baseUrlOptions":["https://api.eigi.ai"],"title":"Create Agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agent_name","agent_type","stt","llm","tts"],"properties":{"agent_name":{"type":"string","minLength":1,"maxLength":100,"description":"Agent name (1-100 characters)","example":"Customer Support Agent","isRequired":true,"uniqueKey":"agent_name","typeLabel":"string"},"agent_type":{"type":"string","enum":["INBOUND","OUTBOUND"],"description":"Agent type","isRequired":true,"uniqueKey":"agent_type","typeLabel":"enum\u003cstring>"},"stt":{"type":"object","required":["provider_name","model_name","language"],"properties":{"provider_name":{"type":"string","enum":["DEEPGRAM","OPENAI","WHISPER","GROK"],"description":"STT provider name","isRequired":true,"uniqueKey":"stt.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the STT provider","example":"nova-2","isRequired":true,"uniqueKey":"stt.model_name","typeLabel":"string"},"language":{"type":"string","description":"Language code (e.g., en, hi, es, fr)","example":"en","isRequired":true,"uniqueKey":"stt.language","typeLabel":"string"},"params":{"type":"object","description":"Must be empty for public API - no additional STT params allowed","example":{},"uniqueKey":"stt.params","typeLabel":"object"}},"isRequired":true,"uniqueKey":"stt","typeLabel":"object"},"llm":{"type":"object","required":["provider_name","model_name"],"description":"LLM configuration. Use provider_name to choose a standard provider or CUSTOM_LLM. For standard providers, only params.temperature applies. For CUSTOM_LLM, use params.base_url, params.api_key, and optional params.API_TYPE.","properties":{"provider_name":{"type":"string","enum":["OPENAI","OPENAI_RESPONSES","ANTHROPIC","GOOGLE","GROK","OPENROUTER","CUSTOM_LLM"],"description":"LLM provider name","isRequired":true,"uniqueKey":"llm.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the selected LLM provider","example":"gpt-4o","isRequired":true,"uniqueKey":"llm.model_name","typeLabel":"string"},"params":{"type":"object","description":"For standard providers, only temperature is used. For CUSTOM_LLM, provide base_url and api_key, and optionally API_TYPE.","properties":{"temperature":{"type":"number","minimum":0,"maximum":2,"description":"Standard providers only. Controls randomness (0.0-2.0).","uniqueKey":"llm.params.temperature","typeLabel":"number"},"base_url":{"type":"string","description":"CUSTOM_LLM only. Base URL for the custom LLM endpoint.","example":"https://llm.example.com/v1","uniqueKey":"llm.params.base_url","typeLabel":"string"},"api_key":{"type":"string","description":"CUSTOM_LLM only. API key for the custom LLM provider.","example":"sk-...","uniqueKey":"llm.params.api_key","typeLabel":"string"},"API_TYPE":{"type":"string","enum":["CHAT_COMPLETION","RESPONSES"],"description":"CUSTOM_LLM only. Optional; defaults to CHAT_COMPLETION when omitted.","uniqueKey":"llm.params.API_TYPE","typeLabel":"enum\u003cstring>"}},"example":{"temperature":0.7},"uniqueKey":"llm.params","typeLabel":"object"}},"isRequired":true,"uniqueKey":"llm","typeLabel":"object"},"tts":{"type":"object","required":["provider_name","model_name","language","voice_id"],"properties":{"provider_name":{"type":"string","enum":["CARTESIA","DEEPGRAM","ELEVENLABS","SARVAM","GOOGLE","HUME","GROK"],"description":"TTS provider name","isRequired":true,"uniqueKey":"tts.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the TTS provider","example":"sonic-2","isRequired":true,"uniqueKey":"tts.model_name","typeLabel":"string"},"language":{"type":"string","description":"Language code (e.g., en, hi)","example":"en","isRequired":true,"uniqueKey":"tts.language","typeLabel":"string"},"voice_id":{"type":"string","description":"Voice ID from the TTS provider","example":"a0e99841-438c-4a64-b679-ae501e7d6091","isRequired":true,"uniqueKey":"tts.voice_id","typeLabel":"string"},"params":{"type":"object","description":"Only 'speed' param is allowed for public API","properties":{"speed":{"type":"number","description":"Speech speed multiplier","uniqueKey":"tts.params.speed","typeLabel":"number"}},"example":{"speed":1},"uniqueKey":"tts.params","typeLabel":"object"}},"isRequired":true,"uniqueKey":"tts","typeLabel":"object"},"agent_description":{"type":"string","maxLength":500,"description":"Agent description (max 500 characters)","uniqueKey":"agent_description","typeLabel":"string"},"agent_category":{"type":"string","enum":["Customer Service","Sales","Scheduling","Research","Healthcare","Customer Success","Education","Finance","HR","Legal","Productivity","Creative","IT/DevOps","E-commerce","Entertainment","Travel","Wellness","Anime","Cartoon","Gaming","Lifestyle","other"],"default":"other","description":"Agent category","uniqueKey":"agent_category","typeLabel":"enum\u003cstring>"},"agent_tips":{"type":"array","items":{"type":"string","uniqueKey":"agent_tips.items.[INDEX]","typeLabel":"string"},"description":"Usage tips for the agent","uniqueKey":"agent_tips","typeLabel":"string[]"},"agent_mobile_number":{"type":"array","items":{"type":"string","uniqueKey":"agent_mobile_number.items.[INDEX]","typeLabel":"string"},"description":"Mobile numbers associated with the agent","uniqueKey":"agent_mobile_number","typeLabel":"string[]"},"call_analysis_prompt":{"type":"object","description":"Optional call analysis prompt reference. Provide custom_prompt to create a new analysis prompt version before linking it to the agent.","properties":{"prompt_name":{"type":"string","description":"Name of existing analysis prompt","isRequired":true,"uniqueKey":"call_analysis_prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","description":"Specific version (omit for latest)","uniqueKey":"call_analysis_prompt.prompt_version","typeLabel":"integer"},"custom_prompt":{"type":"string","description":"Inline analysis prompt content","uniqueKey":"call_analysis_prompt.custom_prompt","typeLabel":"string"}},"required":["prompt_name"],"uniqueKey":"call_analysis_prompt","typeLabel":"object"},"call_analysis_enabled":{"type":"boolean","description":"Toggle call analysis on or off for the agent. Set to true only when you want call analysis to run; when true, provide call_analysis_prompt as well.","uniqueKey":"call_analysis_enabled","typeLabel":"boolean"},"call_analysis_schema":{"type":"object","description":"Optional schema for structured call analysis output, keyed by field name.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["str","int","float","bool","list","dict","Optional[str]","Optional[int]","Optional[float]","Optional[bool]","Optional[list]","Optional[dict]"],"description":"Expected type for this call analysis field.","isRequired":true,"uniqueKey":"call_analysis_schema.additionalProperties.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"additionalProperties":false,"uniqueKey":"call_analysis_schema.additionalProperties","typeLabel":"object"},"example":{"summary":{"type":"str"},"customer_intent":{"type":"Optional[str]"},"follow_up_required":{"type":"bool"}},"uniqueKey":"call_analysis_schema","typeLabel":"object"},"prompt_content":{"type":"string","description":"Inline prompt content — auto-creates an internal prompt for the agent","uniqueKey":"prompt_content","typeLabel":"string"},"prompt":{"type":"object","description":"Reference to an existing prompt (alternative to prompt_content)","properties":{"prompt_name":{"type":"string","description":"Name of existing prompt","isRequired":true,"uniqueKey":"prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","description":"Specific version (omit for latest)","uniqueKey":"prompt.prompt_version","typeLabel":"integer"}},"required":["prompt_name"],"uniqueKey":"prompt","typeLabel":"object"},"first_message_prompt":{"type":"string","description":"Agent's greeting message shown when chat starts","uniqueKey":"first_message_prompt","typeLabel":"string"},"tools":{"type":"object","description":"Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.","properties":{"end_call":{"oneOf":[{"type":"boolean","description":"End call tool - enabled by default. Use true/false to toggle.","uniqueKey":"tools.end_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"End call tool - enabled by default. Use true/false to toggle.","uniqueKey":"tools.end_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.end_call","typeLabel":"boolean | object"},"transfer_call":{"oneOf":[{"type":"boolean","description":"Transfer call tool. When using config object, requires transfer_phone_number.","uniqueKey":"tools.transfer_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Transfer call tool. When using config object, requires transfer_phone_number.","required":["transfer_phone_number"],"properties":{"transfer_phone_number":{"type":"string","description":"Phone number to transfer to","isRequired":true,"uniqueKey":"tools.transfer_call.oneOf.1.transfer_phone_number","typeLabel":"string"}},"uniqueKey":"tools.transfer_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.transfer_call","typeLabel":"boolean | object"},"schedule_call":{"oneOf":[{"type":"boolean","description":"Schedule call tool. Optional allow_immediate config.","uniqueKey":"tools.schedule_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Schedule call tool. Optional allow_immediate config.","properties":{"allow_immediate":{"type":"boolean","default":false,"uniqueKey":"tools.schedule_call.oneOf.1.allow_immediate","typeLabel":"boolean"}},"uniqueKey":"tools.schedule_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.schedule_call","typeLabel":"boolean | object"},"set_language":{"oneOf":[{"type":"boolean","description":"Set language tool. Optional language_string config.","uniqueKey":"tools.set_language.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Set language tool. Optional language_string config.","properties":{"language_string":{"type":"string","default":"en-US","uniqueKey":"tools.set_language.oneOf.1.language_string","typeLabel":"string"}},"uniqueKey":"tools.set_language.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.set_language","typeLabel":"boolean | object"},"background_audio":{"oneOf":[{"type":"boolean","description":"Background audio tool with audio file and volume config.","uniqueKey":"tools.background_audio.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Background audio tool with audio file and volume config.","properties":{"audio_files":{"type":"array","items":{"type":"string","enum":["env1.wav","honk1.wav","market1.wav","office1.mp3","office2.mp3","office3.mp3","office4.wav","office5.wav","temple1.wav","temple2.wav"],"uniqueKey":"tools.background_audio.oneOf.1.audio_files.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"tools.background_audio.oneOf.1.audio_files","typeLabel":"enum\u003cstring>[]"},"background_noise_reduce":{"type":"boolean","default":true,"uniqueKey":"tools.background_audio.oneOf.1.background_noise_reduce","typeLabel":"boolean"},"default_volume":{"type":"number","minimum":0.1,"maximum":1,"default":0.2,"uniqueKey":"tools.background_audio.oneOf.1.default_volume","typeLabel":"number"}},"uniqueKey":"tools.background_audio.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.background_audio","typeLabel":"boolean | object"},"user_idle":{"oneOf":[{"type":"boolean","description":"User idle detection with timeout and retry config.","uniqueKey":"tools.user_idle.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"User idle detection with timeout and retry config.","properties":{"idle_timeout_seconds":{"type":"number","minimum":3,"maximum":30,"default":10,"uniqueKey":"tools.user_idle.oneOf.1.idle_timeout_seconds","typeLabel":"number"},"max_retry_count":{"type":"integer","minimum":1,"maximum":10,"default":3,"uniqueKey":"tools.user_idle.oneOf.1.max_retry_count","typeLabel":"integer"}},"uniqueKey":"tools.user_idle.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.user_idle","typeLabel":"boolean | object"}},"uniqueKey":"tools","typeLabel":"object"},"widget_config":{"type":"object","description":"Widget configuration for chat interface customization","properties":{"widget_interface":{"type":"object","description":"Interface settings (enable_chat, mute_button, etc.)","uniqueKey":"widget_config.widget_interface","typeLabel":"object"},"widget_appearance":{"type":"object","description":"Appearance settings (variant, placement, etc.)","uniqueKey":"widget_config.widget_appearance","typeLabel":"object"},"widget_avatar":{"type":"object","description":"Avatar settings (type, colors)","uniqueKey":"widget_config.widget_avatar","typeLabel":"object"},"widget_tnc_config":{"type":"object","description":"Terms and conditions settings","uniqueKey":"widget_config.widget_tnc_config","typeLabel":"object"}},"uniqueKey":"widget_config","typeLabel":"object"},"client_tools":{"type":"array","description":"Tools a connected browser or device can execute.","items":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","isRequired":true,"uniqueKey":"client_tools.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":1000,"isRequired":true,"uniqueKey":"client_tools.items.[INDEX].description","typeLabel":"string"},"parameters":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,63}$","isRequired":true,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","enum":["string","integer","number","boolean"],"default":"string","uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":500,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].description","typeLabel":"string"},"required":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].required","typeLabel":"boolean"},"enum":{"type":"array","items":{"type":"string","uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].enum.items.[INDEX]","typeLabel":"string"},"maxItems":32,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].enum","typeLabel":"string[]"}},"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX]","typeLabel":"object"},"maxItems":16,"uniqueKey":"client_tools.items.[INDEX].parameters","typeLabel":"object[]"},"tool_status":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].tool_status","typeLabel":"boolean"},"expects_response":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].expects_response","typeLabel":"boolean"},"timeout_seconds":{"type":"integer","default":15,"minimum":1,"maximum":120,"uniqueKey":"client_tools.items.[INDEX].timeout_seconds","typeLabel":"integer"},"interruptible":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].interruptible","typeLabel":"boolean"},"template_id":{"type":"string","maxLength":64,"uniqueKey":"client_tools.items.[INDEX].template_id","typeLabel":"string"},"template_version":{"type":"string","maxLength":32,"uniqueKey":"client_tools.items.[INDEX].template_version","typeLabel":"string"}},"uniqueKey":"client_tools.items.[INDEX]","typeLabel":"object"},"maxItems":16,"uniqueKey":"client_tools","typeLabel":"object[]"},"sts":{"type":"object","required":["provider_name","model_name","voice_id","language"],"properties":{"provider_name":{"type":"string","enum":["GOOGLE","OPENAI","GROK"],"isRequired":true,"uniqueKey":"sts.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","isRequired":true,"uniqueKey":"sts.model_name","typeLabel":"string"},"voice_id":{"type":"string","isRequired":true,"uniqueKey":"sts.voice_id","typeLabel":"string"},"language":{"type":"string","isRequired":true,"uniqueKey":"sts.language","typeLabel":"string"},"speech_to_speech_enabled":{"type":"boolean","default":false,"uniqueKey":"sts.speech_to_speech_enabled","typeLabel":"boolean"},"params":{"type":"object","additionalProperties":true,"uniqueKey":"sts.params","typeLabel":"object"}},"uniqueKey":"sts","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","summary":"Create agent with inline prompt","value":{"agent_name":"Support Agent","agent_type":"INBOUND","agent_category":"Customer Service","stt":{"provider_name":"DEEPGRAM","model_name":"nova-2","language":"en","params":{}},"llm":{"provider_name":"OPENAI","model_name":"gpt-4o","params":{"temperature":0.7}},"tts":{"provider_name":"CARTESIA","model_name":"sonic-2","language":"en","voice_id":"a0e99841-438c-4a64-b679-ae501e7d6091","params":{"speed":1}},"prompt_content":"You are a helpful customer support agent.","call_analysis_enabled":true,"call_analysis_prompt":{"prompt_name":"support_call_analysis","custom_prompt":"Analyze the call outcome, customer sentiment, and follow-up actions."},"call_analysis_schema":{"call_outcome":{"type":"str"},"customer_sentiment":{"type":"str"},"follow_up_required":{"type":"bool"}},"first_message_prompt":"Hello! How can I help you today?","tools":{"end_call":true,"transfer_call":{"transfer_phone_number":"+919876543210"}}}},"custom_llm":{"title":"custom_llm","summary":"Create agent with CUSTOM_LLM","value":{"agent_name":"Custom LLM Support Agent","agent_type":"OUTBOUND","agent_category":"Customer Service","stt":{"provider_name":"DEEPGRAM","model_name":"nova-2","language":"en","params":{}},"llm":{"provider_name":"CUSTOM_LLM","model_name":"custom-model","params":{"base_url":"https://llm.example.com/v1","api_key":"sk-...","API_TYPE":"RESPONSES"}},"tts":{"provider_name":"CARTESIA","model_name":"sonic-2","language":"en","voice_id":"a0e99841-438c-4a64-b679-ae501e7d6091","params":{"speed":1}},"prompt_content":"You are a helpful support agent using a custom LLM backend.","first_message_prompt":"Hello! How can I help you today?"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"62305fe9-2081-40ca-8356-16f31d476b96":{"description":"Agent created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Agent ID","uniqueKey":"id","typeLabel":"string"},"agent_name":{"type":"string","description":"Agent name","uniqueKey":"agent_name","typeLabel":"string"},"agent_description":{"type":"string","description":"Agent description","uniqueKey":"agent_description","typeLabel":"string"},"agent_type":{"type":"string","enum":["INBOUND","OUTBOUND"],"description":"Agent type","uniqueKey":"agent_type","typeLabel":"enum\u003cstring>"},"agent_category":{"type":"string","description":"Agent category","uniqueKey":"agent_category","typeLabel":"string"},"agent_tips":{"type":"array","items":{"type":"string","uniqueKey":"agent_tips.items.[INDEX]","typeLabel":"string"},"description":"Usage tips","uniqueKey":"agent_tips","typeLabel":"string[]"},"agent_mobile_number":{"type":"array","items":{"type":"string","uniqueKey":"agent_mobile_number.items.[INDEX]","typeLabel":"string"},"description":"Associated mobile numbers","uniqueKey":"agent_mobile_number","typeLabel":"string[]"},"stt":{"type":"object","description":"STT configuration","uniqueKey":"stt","typeLabel":"object"},"llm":{"type":"object","description":"LLM configuration","uniqueKey":"llm","typeLabel":"object"},"tts":{"type":"object","description":"TTS configuration","uniqueKey":"tts","typeLabel":"object"},"sts":{"type":"object","required":["provider_name","model_name","voice_id","language"],"properties":{"provider_name":{"type":"string","enum":["GOOGLE","OPENAI","GROK"],"isRequired":true,"uniqueKey":"sts.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","isRequired":true,"uniqueKey":"sts.model_name","typeLabel":"string"},"voice_id":{"type":"string","isRequired":true,"uniqueKey":"sts.voice_id","typeLabel":"string"},"language":{"type":"string","isRequired":true,"uniqueKey":"sts.language","typeLabel":"string"},"speech_to_speech_enabled":{"type":"boolean","default":false,"uniqueKey":"sts.speech_to_speech_enabled","typeLabel":"boolean"},"params":{"type":"object","additionalProperties":true,"uniqueKey":"sts.params","typeLabel":"object"}},"uniqueKey":"sts","typeLabel":"object"},"call_analysis_enabled":{"type":"boolean","description":"Whether call analysis is enabled for the agent","uniqueKey":"call_analysis_enabled","typeLabel":"boolean"},"prompt":{"type":"object","description":"Prompt reference","properties":{"prompt_name":{"type":"string","uniqueKey":"prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","uniqueKey":"prompt.prompt_version","typeLabel":"integer"},"prompt_content":{"type":"string","uniqueKey":"prompt.prompt_content","typeLabel":"string"}},"uniqueKey":"prompt","typeLabel":"object"},"first_message_prompt":{"type":"string","description":"Agent's greeting message","uniqueKey":"first_message_prompt","typeLabel":"string"},"dynamic_variables":{"type":"array","items":{"type":"string","uniqueKey":"dynamic_variables.items.[INDEX]","typeLabel":"string"},"description":"Dynamic variables in the prompt","uniqueKey":"dynamic_variables","typeLabel":"string[]"},"tools":{"type":"object","description":"Configured tools","uniqueKey":"tools","typeLabel":"object"},"widget_config":{"type":"object","description":"Widget configuration","uniqueKey":"widget_config","typeLabel":"object"},"MediaFiles":{"type":"array","items":{"type":"object","properties":{"fileType":{"type":"string","uniqueKey":"MediaFiles.items.[INDEX].fileType","typeLabel":"string"},"mediaUrl":{"type":"string","uniqueKey":"MediaFiles.items.[INDEX].mediaUrl","typeLabel":"string"}},"uniqueKey":"MediaFiles.items.[INDEX]","typeLabel":"object"},"description":"Media files associated with the agent","uniqueKey":"MediaFiles","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"client_tools":{"type":"array","description":"Tools a connected browser or device can execute.","items":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","isRequired":true,"uniqueKey":"client_tools.items.[INDEX].name","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":1000,"isRequired":true,"uniqueKey":"client_tools.items.[INDEX].description","typeLabel":"string"},"parameters":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,63}$","isRequired":true,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","enum":["string","integer","number","boolean"],"default":"string","uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","maxLength":500,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].description","typeLabel":"string"},"required":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].required","typeLabel":"boolean"},"enum":{"type":"array","items":{"type":"string","uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].enum.items.[INDEX]","typeLabel":"string"},"maxItems":32,"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX].enum","typeLabel":"string[]"}},"uniqueKey":"client_tools.items.[INDEX].parameters.items.[INDEX]","typeLabel":"object"},"maxItems":16,"uniqueKey":"client_tools.items.[INDEX].parameters","typeLabel":"object[]"},"tool_status":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].tool_status","typeLabel":"boolean"},"expects_response":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].expects_response","typeLabel":"boolean"},"timeout_seconds":{"type":"integer","default":15,"minimum":1,"maximum":120,"uniqueKey":"client_tools.items.[INDEX].timeout_seconds","typeLabel":"integer"},"interruptible":{"type":"boolean","default":true,"uniqueKey":"client_tools.items.[INDEX].interruptible","typeLabel":"boolean"},"template_id":{"type":"string","maxLength":64,"uniqueKey":"client_tools.items.[INDEX].template_id","typeLabel":"string"},"template_version":{"type":"string","maxLength":32,"uniqueKey":"client_tools.items.[INDEX].template_version","typeLabel":"string"}},"uniqueKey":"client_tools.items.[INDEX]","typeLabel":"object"},"maxItems":16,"uniqueKey":"client_tools","typeLabel":"object[]"},"call_analysis_prompt":{"type":"object","description":"Prompt reference","properties":{"prompt_name":{"type":"string","uniqueKey":"call_analysis_prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","uniqueKey":"call_analysis_prompt.prompt_version","typeLabel":"integer"},"prompt_content":{"type":"string","uniqueKey":"call_analysis_prompt.prompt_content","typeLabel":"string"}},"uniqueKey":"call_analysis_prompt","typeLabel":"object"},"call_analysis_schema":{"type":"object","additionalProperties":true,"uniqueKey":"call_analysis_schema","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","agent_name":"\u003cstring>","agent_description":"\u003cstring>","agent_type":"INBOUND","agent_category":"\u003cstring>","agent_tips":["\u003cstring>"],"agent_mobile_number":["\u003cstring>"],"stt":{},"llm":{},"tts":{},"sts":{"provider_name":"GOOGLE","model_name":"\u003cstring>","voice_id":"\u003cstring>","language":"\u003cstring>","speech_to_speech_enabled":false,"params":{}},"call_analysis_enabled":true,"prompt":{"prompt_name":"\u003cstring>","prompt_version":123,"prompt_content":"\u003cstring>"},"first_message_prompt":"\u003cstring>","dynamic_variables":["\u003cstring>"],"tools":{},"widget_config":{},"MediaFiles":[{"fileType":"\u003cstring>","mediaUrl":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","client_tools":[{"name":"\u003cstring>","description":"\u003cstring>","parameters":[{"name":"\u003cstring>","type":"string","description":"\u003cstring>","required":true,"enum":["\u003cstring>"]}],"tool_status":true,"expects_response":true,"timeout_seconds":15,"interruptible":true,"template_id":"\u003cstring>","template_version":"\u003cstring>"}],"call_analysis_prompt":{"prompt_name":"\u003cstring>","prompt_version":123,"prompt_content":"\u003cstring>"},"call_analysis_schema":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"94541ac1-39d1-4a4f-be65-58b4d673e470":{"description":"Bad request - Missing or invalid parameters","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"3364076f-be0e-4a1b-859f-7fc494b9c0a4":{"description":"Unauthorized - Invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b63f73bb-c53e-4fe9-9769-aee2ac9b7d4a":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"51de5964-efda-4929-a6b9-1de45a4a6f06":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9892269a-1aa7-4a0b-bc3c-f776b2ac0772":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Studio API key for server-side requests.","scopes":[],"schemeName":"ApiKeyAuth"}},"384b2e49-8f36-4529-b907-178d432b89d3":{"OAuthAccessToken":{"type":"http","scheme":"bearer","description":"OAuth access token issued to an authorized Eigi integration.","scopes":[],"schemeName":"OAuthAccessToken"}}},"servers":{"937e7270-f9b4-40f5-9ac8-7a295fd06937":{"url":"https://api.eigi.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Studio API key for server-side requests.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"Studio API key for server-side requests.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"OAuth access token issued to an authorized Eigi integration.","scopes":[],"schemeName":"OAuthAccessToken"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"OAuth access token issued to an authorized Eigi integration.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"OAuthAccessToken","name":"Authorization"}],"title":"OAuthAccessToken"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"eigiai","siteName":"eigi.ai Documentation","title":"Create Agent - eigi.ai Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T11:44:20.614Z","originalFileLocation":"api-reference/public/agent-create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new AI agent with complete configuration\">\u003cmeta data-mint-head name=\"application-name\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Agent - eigi.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new AI agent with complete configuration\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.eigi.ai/api-reference/public/agent-create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://eigiai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+Agent\u0026amp;description=Create+a+new+AI+agent+with+complete+configuration\u0026amp;theme=5a90a1ee70f2a59eeaf65657\u0026amp;signature=efe62a124f9c97c56e969d13f41118f45d06de1f688e7bba3f44272446b158a3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Agent - eigi.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new AI agent with complete configuration\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://eigiai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+Agent\u0026amp;description=Create+a+new+AI+agent+with+complete+configuration\u0026amp;theme=5a90a1ee70f2a59eeaf65657\u0026amp;signature=efe62a124f9c97c56e969d13f41118f45d06de1f688e7bba3f44272446b158a3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/eigiai/fbEsAamXBI3HgLsi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.eigi.ai/api-reference/public/agent-create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/public/agent-create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.eigi.ai/#organization\",\"name\":\"eigi.ai Documentation\",\"url\":\"https://docs.eigi.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/eigiai/Xe5gEggf6gZ3QGw8/logo/eigi-light.svg?fit=max\u0026auto=format\u0026n=Xe5gEggf6gZ3QGw8\u0026q=85\u0026s=43c3bac5050c00e94afdbdd46bb378cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.eigi.ai#website\",\"name\":\"eigi.ai Documentation\",\"url\":\"https://docs.eigi.ai\",\"publisher\":{\"@id\":\"https://docs.eigi.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-create#webpage\",\"url\":\"https://docs.eigi.ai/api-reference/public/agent-create\",\"name\":\"Create Agent\",\"description\":\"Create a new AI agent with complete configuration\",\"dateModified\":\"2026-11-24T11:44:20.614Z\",\"isPartOf\":{\"@id\":\"https://docs.eigi.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"eigi.ai Documentation\",\"item\":\"https://docs.eigi.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Agent\",\"item\":\"https://docs.eigi.ai/api-reference/public/agent-create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-create#apireference\",\"headline\":\"Create Agent\",\"name\":\"Create Agent\",\"description\":\"Create a new AI agent with complete configuration\",\"url\":\"https://docs.eigi.ai/api-reference/public/agent-create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-create#webpage\"},\"dateModified\":\"2026-11-24T11:44:20.614Z\",\"publisher\":{\"@id\":\"https://docs.eigi.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.eigi.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"eigi.ai Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"eigi.ai Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/public/agent-create.md","siteName":"eigi.ai Documentation","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"grid","href":"https://eigi.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:buddy@eigi.ai"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Eigi Desktop","pages":[{"title":"Eigi Desktop","href":"/eigi-desktop/getting-started"}]},{"tab":"Eigi Computer","pages":[{"title":"Eigi Computer","href":"/eigi-computer/introduction"}]},{"tab":"Eigi Gadgets","pages":[{"title":"Eigi Gadgets","href":"/eigi-gadgets/getting-started"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API reference","href":"/api-reference/introduction"}]},{"group":"Conversations","pages":[{"title":"Get Conversation by ID","openapi":"api-reference/openapi.json GET /v1/public/conversations/{conversation_id}","href":"/api-reference/public/get-conversation"},{"title":"List Conversations","openapi":"api-reference/openapi.json GET /v1/public/conversations","href":"/api-reference/public/list-conversations"},{"title":"Initiate Outbound Call","openapi":"api-reference/openapi.json POST /v1/public/calls/outbound","href":"/api-reference/public/outbound-call"}]},{"group":"Chat","pages":[{"title":"Send Chat Message","openapi":"api-reference/openapi.json POST /v1/public/chat","href":"/api-reference/public/chat-send-message"},{"title":"List Chat Sessions","openapi":"api-reference/openapi.json GET /v1/public/chat/sessions","href":"/api-reference/public/chat-list-sessions"},{"title":"Get Chat Session","openapi":"api-reference/openapi.json GET /v1/public/chat/sessions/{session_id}","href":"/api-reference/public/chat-get-session"},{"title":"Get First Message","openapi":"api-reference/openapi.json GET /v1/public/agents/{agent_id}/first-message","href":"/api-reference/public/chat-first-message"}]},{"group":"Prompts","pages":[{"title":"Create Prompt","openapi":"api-reference/openapi.json POST /v1/public/prompts","href":"/api-reference/public/prompt-create"},{"title":"List Prompts","openapi":"api-reference/openapi.json GET /v1/public/prompts","href":"/api-reference/public/prompt-list"},{"title":"Get Prompt","openapi":"api-reference/openapi.json GET /v1/public/prompts/{prompt_name}","href":"/api-reference/public/prompt-get"},{"title":"Update Prompt","openapi":"api-reference/openapi.json PATCH /v1/public/prompts/{prompt_name}","href":"/api-reference/public/prompt-update"},{"title":"Get Prompt Versions","openapi":"api-reference/openapi.json GET /v1/public/prompts/{prompt_name}/versions","href":"/api-reference/public/prompt-versions"},{"title":"Delete Prompt","openapi":"api-reference/openapi.json DELETE /v1/public/prompts/{prompt_name}","description":"Permanently delete all versions of a prompt","href":"/api-reference/public/prompt-delete"}]},{"group":"Agents","pages":[{"title":"Create Agent","openapi":"api-reference/openapi.json POST /v1/public/agents","href":"/api-reference/public/agent-create"},{"title":"List Agents","openapi":"api-reference/openapi.json GET /v1/public/agents","description":"Retrieve a paginated list of all your agents","href":"/api-reference/public/agent-list"},{"title":"Get Agent","openapi":"api-reference/openapi.json GET /v1/public/agents/{agent_id}","href":"/api-reference/public/agent-get"},{"title":"Get Agent Dynamic Variables","openapi":"api-reference/openapi.json GET /v1/public/agents/{agent_id}/dynamic-variables","href":"/api-reference/public/agent-dynamic-variables"},{"title":"Update Agent","openapi":"api-reference/openapi.json PATCH /v1/public/agents/{agent_id}","href":"/api-reference/public/agent-update"},{"title":"Delete Agent","openapi":"api-reference/openapi.json DELETE /v1/public/agents/{agent_id}","href":"/api-reference/public/agent-delete"}]},{"group":"Voice Sessions","pages":[{"title":"Create a Daily session","openapi":"api-reference/openapi.json POST /v1/public/daily","href":"/api-reference/public/daily-session"},{"title":"Create a WebSocket voice session","openapi":"api-reference/openapi.json POST /v1/public/websocket","href":"/api-reference/public/websocket-session"}]},{"group":"Cost Analytics","pages":[{"title":"Get account cost breakdown","openapi":"api-reference/openapi.json GET /v1/public/analytics/cost-breakdown","href":"/api-reference/public/cost-breakdown"},{"title":"Get conversation costs","openapi":"api-reference/openapi.json GET /v1/public/analytics/conversations/cost-breakdown","href":"/api-reference/public/conversation-cost-breakdown"}]},{"group":"Personal Agent","pages":[{"title":"List personal agent models","openapi":"api-reference/openapi.json GET /v1/eigi-agent/openai/models","href":"/api-reference/public/personal-models"},{"title":"Create a chat completion","openapi":"api-reference/openapi.json POST /v1/eigi-agent/openai/chat/completions","href":"/api-reference/public/personal-chat"},{"title":"Create an agent response","openapi":"api-reference/openapi.json POST /v1/eigi-agent/openai/responses","href":"/api-reference/public/personal-responses-create"},{"title":"Get a stored agent response","openapi":"api-reference/openapi.json GET /v1/eigi-agent/openai/responses/{response_id}","href":"/api-reference/public/personal-responses-get"},{"title":"Delete a stored agent response","openapi":"api-reference/openapi.json DELETE /v1/eigi-agent/openai/responses/{response_id}","href":"/api-reference/public/personal-responses-delete"},{"title":"Trigger an agent webhook","openapi":"api-reference/openapi.json POST /v1/eigi-agent/webhooks/{token}/{route_name}","href":"/api-reference/public/agent-webhook"}]},{"group":"Utilities","pages":[{"title":"List Providers","openapi":"api-reference/openapi.json GET /v1/public/providers","href":"/api-reference/public/providers-list"},{"title":"List Voices","openapi":"api-reference/openapi.json GET /v1/public/voices","href":"/api-reference/public/voices-list"},{"title":"Get Mobile Numbers","openapi":"api-reference/openapi.json GET /v1/public/mobile-numbers","href":"/api-reference/public/mobile-numbers"}]}]}]},"basePath":"","title":"Create Agent - eigi.ai Documentation","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}