All Products
Search
Document Center

Intelligent Media Services:DescribeAIAgentInstance

Last Updated:Dec 08, 2025

Queries the information about an AI agent.

Operation description

Request description

  • Feature: You can call this operation to query the information about an AI agent.
  • Scenario: If you need to monitor or analyze the performance of an AI agent in a call or debug the agent configurations, you can call this operation to obtain required data.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:DescribeAIAgentInstancenone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the AI agent that you want to query.

39f8e0bc005e4f309379701645f4****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Instanceobject

The information about the AI agent.

CallLogUrlstring

The URL of the call log file.

https://example.com/call_logs/12345
RuntimeConfigAIAgentRuntimeConfig

The runtime configurations of the AI agent.

{"VoiceChat":{"AgentUserId":"voice_agent_001","ChannelId":"voice_channel_001","AuthToken":"your_voice_chat_auth_token"}}
Statusstring

The state of the AI agent. Valid values: Finished and Executing.

Finished
TemplateConfigAIAgentTemplateConfig

The template configurations of the AI agent.

{"VoiceChat": {"AppId": "your_voice_chat_app_id"}}
UserDatastring

The custom information.

{"Email":"johndoe@example.com","Preferences":{"Language":"en"}}
RequestIdstring

The request ID.

7B117AF5-2A16-412C-B127-FA6175ED1AD0

Examples

Sample success responses

JSONformat

{
  "Instance": {
    "CallLogUrl": "https://example.com/call_logs/12345",
    "RuntimeConfig": {
      "VoiceChat": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
      "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
      "VisionChat": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "ChannelId": "70f22d5784194938a7e387052f2b3208\n",
      "AvatarChat3D": {
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      }
    },
    "Status": "Finished",
    "TemplateConfig": {
      "VoiceChat": {
        "Greeting": "",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": ""
          }
        ],
        "UserOnlineTimeout": 60,
        "UserOfflineTimeout": 5,
        "WorkflowOverrideParams": {},
        "EnableIntelligentSegment": true,
        "AvatarUrlType": "USER",
        "BailianAppParams": {},
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "AvatarUrl": "http://example.com/a.jpg",
        "WakeUpQuery": "",
        "AppId": "",
        "Volume": 100,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "GracefulShutdown": true,
        "EnablePushToTalk": false
      },
      "MessageChat": {
        "AppId": ""
      },
      "VisionChat": {
        "Greeting": "Good morning, my friend!\n",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": ""
          }
        ],
        "UserOnlineTimeout": 60,
        "UserOfflineTimeout": 5,
        "WorkflowOverrideParams": {},
        "EnableIntelligentSegment": true,
        "BailianAppParams": {},
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "WakeUpQuery": "",
        "AppId": "",
        "Volume": 100,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "GracefulShutdown": false,
        "EnablePushToTalk": false
      },
      "AvatarChat3D": {
        "Greeting": "",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": ""
          }
        ],
        "UserOnlineTimeout": 60,
        "UserOfflineTimeout": 5,
        "WorkflowOverrideParams": {},
        "EnableIntelligentSegment": true,
        "BailianAppParams": {},
        "LlmHistoryLimit": 10,
        "AsrMaxSilence": 400,
        "WakeUpQuery": "",
        "AppId": "",
        "Volume": 100,
        "AvatarId": 1231,
        "EnableVoiceInterrupt": true,
        "VoiceprintId": "uniqueId",
        "VoiceId": "zhixiaoxia",
        "UseVoiceprint": false,
        "MaxIdleTime": 600,
        "GracefulShutdown": true,
        "EnablePushToTalk": false
      }
    },
    "UserData": {
      "Email": "johndoe@example.com",
      "Preferences": {
        "Language": "en"
      }
    },
    "SessionId": ""
  },
  "RequestId": "7B117AF5-2A16-412C-B127-FA6175ED1AD0"
}

Error codes

For a list of error codes, visit the Service error codes.