Skip to main content
POST

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:
  1. Inline prompt (prompt_content) — Provide the prompt text directly. An internal prompt is auto-created for the agent.
  2. 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:
  1. Enable analysis (call_analysis_enabled) — Set this to true only when you want call analysis to run.
  2. Analysis prompt reference (call_analysis_prompt) — Reference an existing analysis prompt by name and optionally version.
  3. 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.
  4. 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)

Authentication

string
required
Your eigi.ai API key. Must be prefixed with vk_.

Request Body

string
required
Agent name (1-100 characters).
string
required
Agent type: INBOUND or OUTBOUND.
object
required
Speech-to-Text configuration.
object
required
Large Language Model configuration.
object
required
Text-to-Speech configuration.
object
Speech-to-Speech configuration for realtime voice generation.
string
Agent description (max 500 characters).
string
default:"other"
Agent category (e.g., Customer Service, Sales, Healthcare, etc.).
array
Array of usage tip strings for the agent.
array
Mobile numbers to associate with the agent.
string
Inline prompt content. Auto-creates an internal prompt for the agent.
object
Reference to an existing prompt (alternative to prompt_content).
object
Optional call analysis prompt configuration.
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.

Response

Returns the complete agent object with all configurations, id, and timestamps.

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.

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
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.

tts
object
required
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.

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.

Example:
prompt_content
string

Inline prompt content — auto-creates an internal prompt for the agent

prompt
object

Reference to an existing prompt (alternative to prompt_content)

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.

widget_config
object

Widget configuration for chat interface customization

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

STS configuration (if set)

call_analysis_enabled
boolean

Whether call analysis is enabled for the agent

prompt
object

Prompt reference

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

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp