Skip to main content
PATCH

Overview

Update an existing agent’s configuration. Only the fields you provide will be updated — all other settings remain unchanged. If prompt_content is provided, a new version of the agent’s internal prompt is automatically created. If call_analysis_prompt.custom_prompt is provided, a new version of the analysis prompt is automatically created before the agent is updated. Only send call_analysis_enabled, call_analysis_prompt, and call_analysis_schema when you explicitly want to configure call analysis. 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.

Authentication

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

Path Parameters

string
required
The unique agent ID to update.Example: 68ea2517dbb84c09bae1ba0a

Request Body

All fields are optional. Only provided fields will be updated.
string
Updated agent name (1-100 characters).
string
Updated description (max 500 characters).
string
INBOUND or OUTBOUND.
string
Updated category.
array
Updated array of usage tip strings for the agent.
array
Updated mobile numbers associated with the agent.
object
Updated STT configuration (no params allowed).
object
Updated LLM configuration. Standard providers only allow temperature. CUSTOM_LLM requires base_url plus api_key, and optionally accepts API_TYPE and temperature.
object
Updated TTS configuration (only speed param allowed).
object
Updated Speech-to-Speech configuration.
string
New prompt content — creates a new version of the agent’s internal prompt.
object
Reference an existing prompt by name and optionally version.
object
Updated call analysis prompt reference or inline analysis prompt content.
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
Updated schema describing the structured JSON output expected from call analysis.
string
Updated greeting message.
object
Update agent tools. Only specified tools are modified.
object
Updated widget configuration.

Response

Returns the complete updated agent object with all configurations 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.

Path Parameters

agent_id
string
required

The unique agent ID

Body

application/json

All fields are optional — only provided fields will be updated.

agent_name
string

Agent name

Required string length: 1 - 100
agent_description
string

Agent description

Maximum string length: 500
agent_type
enum<string>

Agent type

Available options:
INBOUND,
OUTBOUND
agent_category
enum<string>

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

agent_mobile_number
string[]

Mobile numbers associated with the agent

stt
object
llm
object

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

New prompt content — creates a new version of the agent's internal prompt

prompt
object

Reference to an existing prompt

first_message_prompt
string

Agent's greeting message

tools
object

Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.

widget_config
object

Widget configuration

Response

Agent updated 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