Create Agent
Create a new AI agent with complete configuration
Overview
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 totrueonly 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.
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
InTry it, llm is shown as a single object.
- For standard providers, fill
llm.params.temperatureonly. - For
CUSTOM_LLM, fillllm.params.base_url,llm.params.api_key, and optionallyllm.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
vk_.Request Body
INBOUND or OUTBOUND.Customer Service, Sales, Healthcare, etc.).prompt_content).true only when you
want call analysis to run. If true, provide call_analysis_prompt as well.true (enable), false (disable), or an object with configuration.Available tools: end_call, transfer_call, schedule_call, set_language, background_audio, user_idle.Response
Returns the complete agent object with all configurations,id, and timestamps.Authorizations
API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.
Body
Agent name (1-100 characters)
1 - 100"Customer Support Agent"
Agent type
INBOUND, OUTBOUND 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.
Agent description (max 500 characters)
500Agent category
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 Usage tips for the agent
Mobile numbers associated with the agent
Optional call analysis prompt reference. Provide custom_prompt to create a new analysis prompt version before linking it to the agent.
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.
Optional schema for structured call analysis output, keyed by field name.
{
"summary": { "type": "str" },
"customer_intent": { "type": "Optional[str]" },
"follow_up_required": { "type": "bool" }
}Inline prompt content — auto-creates an internal prompt for the agent
Reference to an existing prompt (alternative to prompt_content)
Agent's greeting message shown when chat starts
Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.
Widget configuration for chat interface customization
Response
Agent created successfully
Agent ID
Agent name
Agent description
Agent type
INBOUND, OUTBOUND Agent category
Usage tips
Associated mobile numbers
STT configuration
LLM configuration
TTS configuration
STS configuration (if set)
Whether call analysis is enabled for the agent
Prompt reference
Agent's greeting message
Dynamic variables in the prompt
Configured tools
Widget configuration
Media files associated with the agent
Creation timestamp
Last update timestamp

