# Update agent configuration (/en/api-reference/api-ref/conversational-ai/update)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Updates runtime parameters of a Conversational AI agent instance.

- OpenAPI: /openapi/conversational-ai/rest-api.en.yaml
- Operation ID: agent-update
- Method: POST
- Path: /v2/projects/{appid}/agents/{agentId}/update

## Servers

- https://api.agora.io/api/conversational-ai-agent

## Parameters

- `appid` (path, required) - The App ID of the project.
- `agentId` (path, required) - The agent instance ID you obtained after successfully calling `join` to [Start a conversational AI agent](/en/api-reference/api-ref/conversational-ai/join).

## Request body

- `properties` (object)
  - `properties.token` (string) - The dynamic key used by the agent to join the RTC channel. If your project has App Certificate enabled, you must provide a valid token. When the agent receives a [`104 agent expire`](/en/ai/reference/event-types#104-agent-expire) event, call this endpoint with a new token to refresh it before it expires.
No schema.
  - `properties.llm` (object) - Large Language Model (LLM) settings.
    - `properties.llm.system_messages` (array) - A set of predefined messages appended to the beginning of each LLM request. These messages help control the LLM’s output and can include role definitions, prompts, response examples, and more. This field must be compatible with the OpenAI protocol.
      - `properties.llm.system_messages.items` (object)
No schema.
    - `properties.llm.params` (object) - Additional LLM information included in the message body, such as the model used, the maximum number of tokens, and more. Supported configurations vary by LLM provider. Refer to the provider’s documentation for details.
No schema.
  - `properties.mllm` (object) - Multimodal Large Language Model (MLLM) configuration for real-time audio and text processing.
    - `properties.mllm.params` (object) - Additional MLLM configuration parameters.
For vendor-specific parameters, see the corresponding MLLM provider page listed in `mllm.vendor`.
No schema.

## Responses

### 200

The request was successful. The response body contains the result of the request.

- `agent_id` (string) - Unique id of the agent instance
No schema.
- `create_ts` (integer) - Timestamp of when the agent was created
No schema.
- `status` (string) - Current status.

- `IDLE` (0): Agent is idle.

- `STARTING` (1): The agent is being started.

- `RUNNING` (2): The agent is running.

- `STOPPING` (3): The agent is stopping.

- `STOPPED` (4): The agent has exited.

- `FAILED` (6): The agent failed to execute.
No schema.
### default

The request failed. The response body includes the error details.

- `detail` (string) - Detailed error information.
No schema.
- `reason` (string) - The reason for the failure.
No schema.
