All Products
Search
Document Center

Intelligent Media Services:DescribeAIAgentInstance

Last Updated:Nov 03, 2026

Queries an instance.

Operation description

  • Feature description: This operation queries the details of a specified agent instance.

  • Scenarios: Call this operation to obtain the required data when you need to monitor or analyze the performance of an agent during a call, or debug the configuration effects of the agent.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:DescribeAIAgentInstance

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The agent instance ID.

Note

InstanceId is the unique ID returned after the agent instance is successfully started. For more information about the operations used to start an agent, see StartAIAgentInstance and GenerateAIAgentCall.

39f8e0bc005e4f309379701645f4****

Response elements

Element

Type

Description

Example

object

Schema of Response

Instance

object

The agent instance information.

AgentConfig AIAgentConfig

The agent template configuration.

CallInfo AIAgentCallInfo

The PSTN call details. This field may be empty if the call has not ended.

CallLogUrl

string

The URL of the call log.

https://example.com/call_logs/12345

GmtCreate

string

The creation time (UTC).

2025-07-18T06:39:08.000+00:00

GmtModified

string

The update time (UTC).

2025-07-18T06:40:12.000+00:00

RuntimeConfig AIAgentRuntimeConfig

The runtime configuration of the agent.

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

SessionId

string

The unique identifier of the conversation. Default value: none.

955535**************

Status

string

The status of the agent instance, such as Finished or Executing.

Valid values:

  • Finished :

    Finished.

  • Executing :

    Executing.

Finished

TemplateConfig deprecated AIAgentTemplateConfig

The agent template configuration.

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

UserData

string

The user-defined data.

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

RequestId

string

The request ID.

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

Examples

Success response

JSON format

{
  "Instance": {
    "AgentConfig": {
      "AmbientSoundConfig": {
        "ResourceId": "f67901c595834************",
        "Volume": 50
      },
      "AsrConfig": {
        "AsrContext": "[{\"role\":\"user\",\"content\":[{\"type\":\"input_text\",\"text\":\"Alibaba Cloud, Qwen, Qwen-Audio\"}]},{\"role\":\"assistant\",\"content\":[{\"type\":\"text\",\"text\":\"Okay, I will incorporate these terms into our conversation.\"}]}]",
        "AsrHotWords": [
          "check"
        ],
        "AsrLanguageId": "zh_mandarin",
        "AsrMaxSilence": 400,
        "AsrVocabulary": "{\"Qwen\":4,\"Qwen-Audio\":5,\"Alibaba Cloud Speech Lab\":50}",
        "CustomParams": "mode=fast&sample=16000&format=wav",
        "VadDuration": 300,
        "VadLevel": 11
      },
      "AutoSpeechConfig": {
        "LlmPending": {
          "Messages": [
            {
              "Probability": 0.5,
              "Text": "Just a moment"
            }
          ],
          "Mode": "ai_select",
          "WaitTime": 3000
        },
        "UserIdle": {
          "HangupEndWord": "I'm hanging up, bye",
          "MaxRepeats": 5,
          "Messages": [
            {
              "Probability": 0.5,
              "Text": "Are you still there?"
            }
          ],
          "WaitTime": 5000
        }
      },
      "AvatarConfig": {
        "AvatarId": "5257",
        "Resolution": "1080p",
        "TemplateId": "tpl-9527"
      },
      "AvatarUrl": "http://example.com/a.jpg\n",
      "AvatarUrlType": "USER",
      "BackChannelingConfig": [
        {
          "Enabled": true,
          "Probability": 0.5,
          "TriggerStage": "pause_detected",
          "Words": [
            {
              "Probability": 0.3,
              "Text": "ok"
            }
          ]
        }
      ],
      "BackChannelingConfigs": [
        {
          "Enabled": true,
          "Probability": 0.5,
          "TriggerStage": "pause_detected",
          "Words": [
            {
              "Probability": 0.3,
              "Text": "ok"
            }
          ]
        }
      ],
      "EnableIntelligentSegment": true,
      "EnablePushToTalk": false,
      "ExperimentalConfig": "\"\"",
      "GracefulShutdown": true,
      "Greeting": "hello",
      "InterruptConfig": {
        "EnableVoiceInterrupt": true,
        "InterruptWords": [
          "Excuse me"
        ],
        "KeepInterruptWordsForLLM": true,
        "NoInterruptMode": "cache"
      },
      "LlmConfig": {
        "BailianAppParams": "\"{\\\"biz_params\\\":{\\\"user_defined_params\\\":{\\\"your_plugin_id\\\":{\\\"article_index\\\":2}}},\\\"memory_id\\\":\\\"your_memory_id\\\",\\\"image_list\\\":[\\\"https://your_image_url\\\"],\\\"rag_options\\\":{\\\"pipeline_ids\\\":[\\\"your_id\\\"],\\\"file_ids\\\":[\\\"DocumentID1\\\",\\\"DocumentID2\\\"],\\\"metadata_filter\\\":{\\\"name\\\":\\\"ZhangSan\\\"},\\\"structured_filter\\\":{\\\"key1\\\":\\\"value1\\\",\\\"key2\\\":\\\"value2\\\"},\\\"tags\\\":[\\\"Tag1\\\",\\\"Tag2\\\"]}}\"",
        "FunctionMap": [
          {
            "Function": "hangup",
            "MatchFunction": "hangup"
          }
        ],
        "HistorySyncWithTTS": false,
        "LlmCompleteReply": true,
        "LlmHistory": [
          {
            "Content": "hello",
            "Role": "user"
          }
        ],
        "LlmHistoryLimit": 10,
        "LlmSystemPrompt": "You are the 1 friendly and helpful assistant, focused on providing accurate information and advice to users.",
        "OpenAIExtraQuery": "api-version=2024-02-01&api-key=sk-xxx",
        "OutputMaxDelay": 2000,
        "OutputMinLength": 5
      },
      "MaxIdleTime": 600,
      "TransferCallConfig": {
        "CalledNumber": "0571xxxxxxx",
        "CallerNumber": "0571xxxxxxx",
        "ForwardTranscriptionEnabled": false,
        "SipDomain": "sip.example.com:5060",
        "Type": 1
      },
      "TtsConfig": {
        "Emotion": "happy",
        "HotFix": "{\"pronunciation\":[{\"weather\":\"tian1 qi4\"}],\"replace\":[{\"today\":\"golden day\"}]}",
        "Instruction": "Please use a gentle and friendly female voice, and broadcast at a slightly slower speed",
        "LanguageId": "Chinese",
        "ModelId": "speech-01-turbo",
        "PronunciationRules": [
          {
            "Pronunciation": "110",
            "Type": "replacement",
            "Word": "110"
          }
        ],
        "SpeechRate": 1,
        "VoiceId": "longcheng_v2\n\n",
        "VoiceIdList": [
          "zhixiaoxia"
        ]
      },
      "TurnDetectionConfig": {
        "Eagerness": "High",
        "Mode": "Semantic",
        "SemanticWaitDuration": -1,
        "TurnEndWords": [
          "I'm done"
        ]
      },
      "UserOfflineTimeout": 5,
      "UserOnlineTimeout": 60,
      "VcrConfig": {
        "Equipment": {
          "Enabled": false
        },
        "HeadMotion": {
          "Enabled": false
        },
        "InvalidFrameMotion": {
          "CallbackDelay": 3000,
          "Enabled": false
        },
        "LookAway": {
          "Enabled": true
        },
        "PeopleCount": {
          "Enabled": false
        },
        "StillFrameMotion": {
          "CallbackDelay": 3000,
          "Enabled": false
        }
      },
      "VoiceprintConfig": {
        "RegistrationMode": "Explicit",
        "UseVoiceprint": false,
        "VoiceprintId": "zhixiaoxia"
      },
      "Volume": 100,
      "WakeUpQuery": "How’s the weather today?\n",
      "WorkflowOverrideParams": "{}"
    },
    "CallInfo": {
      "Status": "4",
      "CallStartTime": "2026-04-01T16:53:53.184797+00:00",
      "CallEndTime": "2026-04-01T16:53:58.875932+00:00",
      "CallDuration": 5,
      "HangupRole": 0,
      "CallerNumber": "183*****333",
      "CalleeNumber": "136******794"
    },
    "CallLogUrl": "https://example.com/call_logs/12345",
    "GmtCreate": "2025-07-18T06:39:08.000+00:00",
    "GmtModified": "2025-07-18T06:40:12.000+00:00",
    "RuntimeConfig": {
      "AvatarChat3D": {
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "VisionChat": {
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "VoiceChat": {
        "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
        "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
        "ChannelId": "70f22d5784194938a7e387052f2b3208"
      },
      "AgentUserId": "877ae632caae49b1afc81c2e8194ffb4",
      "AuthToken": "eyJhcHBpZCI6ICIxMjM0MTIzNxxxxx",
      "ChannelId": "70f22d5784194938a7e387052f2b3208\n"
    },
    "SessionId": "955535**************",
    "Status": "Finished",
    "TemplateConfig": {
      "AvatarChat3D": {
        "AsrMaxSilence": 400,
        "AvatarId": "1231",
        "EnableIntelligentSegment": true,
        "EnablePushToTalk": false,
        "EnableVoiceInterrupt": true,
        "GracefulShutdown": false,
        "Greeting": "Good morning, my friend!",
        "UseVoiceprint": false,
        "UserOnlineTimeout": 60,
        "VoiceId": "zhixiaoxia",
        "Volume": 100,
        "VoiceprintId": "uniqueId",
        "BailianAppParams": "{}",
        "UserOfflineTimeout": 5,
        "MaxIdleTime": 600,
        "WorkflowOverrideParams": "{}",
        "WakeUpQuery": "How’s the weather today?",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "hello"
          }
        ],
        "LlmHistoryLimit": 10,
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "AsrLanguageId": "zh_mandarin",
        "LlmSystemPrompt": "You are a friendly and helpful assistant, focused on providing users with accurate information and advice.",
        "InterruptWords": [
          "stop"
        ],
        "VadLevel": 0,
        "CharBreak": false,
        "AsrHotWords": [
          "check"
        ]
      },
      "VisionChat": {
        "AsrMaxSilence": 400,
        "EnableIntelligentSegment": true,
        "EnablePushToTalk": false,
        "EnableVoiceInterrupt": true,
        "GracefulShutdown": false,
        "Greeting": "Good morning, my friend!\n",
        "UseVoiceprint": false,
        "UserOnlineTimeout": 60,
        "VoiceId": "zhixiaoxia",
        "Volume": 100,
        "VoiceprintId": "uniqueId",
        "BailianAppParams": "{}",
        "UserOfflineTimeout": 5,
        "MaxIdleTime": 600,
        "WorkflowOverrideParams": "{}",
        "WakeUpQuery": "How’s the weather today?",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "hello"
          }
        ],
        "LlmHistoryLimit": 10,
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "AsrLanguageId": "zh_mandarin",
        "LlmSystemPrompt": "You are a friendly and helpful assistant, focused on providing users with accurate information and advice.",
        "InterruptWords": [
          "stop"
        ],
        "VadLevel": 0,
        "CharBreak": false,
        "AsrHotWords": [
          "check"
        ]
      },
      "VoiceChat": {
        "AsrMaxSilence": 400,
        "EnableIntelligentSegment": true,
        "EnablePushToTalk": false,
        "EnableVoiceInterrupt": true,
        "GracefulShutdown": false,
        "Greeting": "Good morning, my friend",
        "UseVoiceprint": false,
        "UserOnlineTimeout": 60,
        "VoiceId": "zhixiaoxia",
        "Volume": 100,
        "VoiceprintId": "uniqueId",
        "BailianAppParams": "{}",
        "UserOfflineTimeout": 5,
        "AvatarUrl": "http://example.com/a.jpg",
        "AvatarUrlType": "USER",
        "MaxIdleTime": 600,
        "WorkflowOverrideParams": "{}",
        "WakeUpQuery": "How’s the weather today?",
        "LlmHistory": [
          {
            "Role": "user",
            "Content": "hello"
          }
        ],
        "LlmHistoryLimit": 10,
        "VoiceIdList": [
          "zhixiaoxia"
        ],
        "AsrLanguageId": "zh_mandarin",
        "LlmSystemPrompt": "You are a friendly and helpful assistant, focused on providing users with accurate information and advice.",
        "InterruptWords": [
          "stop"
        ],
        "VadLevel": 11,
        "CharBreak": false,
        "AsrHotWords": [
          "check"
        ]
      }
    },
    "UserData": "{\"Email\":\"johndoe@example.com\",\"Preferences\":{\"Language\":\"en\"}}"
  },
  "RequestId": "7B117AF5-2A16-412C-B127-FA6175ED1AD0"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.