ListAIAgentInstance
Queries a list of AI agent instances. You can retrieve all agent instances or those that meet specified conditions.
Operation description
Queries a list of AI agent instances based on a specified agent ID (AIAgentId), an optional time range (StartTime and EndTime), page size (PageSize), and page number (PageNumber). The response includes the status, runtime configuration, template configuration, user-defined data, and the download URL for the conversation call log of each instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:ListAIAgentInstance |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AIAgentId |
string |
Yes |
The agent ID. |
39f8e0bc005e4f309379701645f4*** |
| StartTime |
string |
No |
The start time of the query in ISO 8601 format. Default value: none. |
2023-01-01T00:00:00Z |
| EndTime |
string |
No |
The end time of the query in ISO 8601 format. Default value: none. |
2023-01-02T00:00:00Z |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Valid values: 0 to 100. |
10 |
| PageNumber |
integer |
No |
The page number. Default value: 1. Valid values: 1 to 100. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Instances |
array<object> |
The list of agent instance structs. |
|
|
object |
|||
| CallLogUrl |
string |
The URL of the conversation call log file for the agent. The file contains the CallLog struct in JSON format. |
https://example.com/call_logs/12345.json |
| RuntimeConfig | AIAgentRuntimeConfig |
The runtime configuration required for the agent. |
{"VoiceChat":{"AgentUserId":"voice_agent_001","ChannelId":"voice_channel_001","AuthToken":"your_voice_chat_auth_token"}} |
| Status |
string |
The instance status. Valid values:
Valid values:
|
Finished |
TemplateConfig
deprecated
|
AIAgentTemplateConfig |
The template configuration used by the agent instance. |
{"VoiceChat": {"VoiceId": "zhixiaoxia"}} |
| UserData |
string |
The user-defined data. |
{"Email":"johndoe@example.com","Preferences":{"Language":"en"}} |
| AgentConfig | AIAgentConfig |
The template configuration used by the agent instance. |
|
| RequestId |
string |
The request ID. |
7B117AF5-2A16-412C-B127-FA6175ED1AD0 |
Examples
Success response
JSON format
{
"Instances": [
{
"CallLogUrl": "https://example.com/call_logs/12345.json",
"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"
},
"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": true,
"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": true,
"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": true,
"AsrHotWords": [
"check"
]
}
},
"UserData": "{\"Email\":\"johndoe@example.com\",\"Preferences\":{\"Language\":\"en\"}}",
"AgentConfig": {
"Greeting": "hello",
"WakeUpQuery": "How’s the weather today?\n",
"MaxIdleTime": 600,
"UserOnlineTimeout": 60,
"UserOfflineTimeout": 5,
"EnablePushToTalk": false,
"GracefulShutdown": true,
"Volume": 100,
"WorkflowOverrideParams": "{}",
"AvatarUrl": "http://example.com/a.jpg\n",
"AvatarUrlType": "USER",
"EnableIntelligentSegment": true,
"AsrConfig": {
"AsrLanguageId": "zh_mandarin",
"AsrMaxSilence": 400,
"AsrHotWords": [
"check"
],
"VadLevel": 11,
"CustomParams": "mode=fast&sample=16000&format=wav",
"VadModel": "",
"VadDuration": 300,
"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.\"}]}]",
"AsrVocabulary": "{\"Qwen\":4,\"Qwen-Audio\":5,\"Alibaba Cloud Speech Lab\":50}"
},
"TtsConfig": {
"VoiceId": "longcheng_v2\n\n",
"VoiceIdList": [
"zhixiaoxia"
],
"PronunciationRules": [
{
"Word": "110",
"Pronunciation": "110",
"Type": "replacement"
}
],
"ModelId": "speech-01-turbo",
"LanguageId": "Chinese",
"Emotion": "happy",
"SpeechRate": 1,
"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"
},
"LlmConfig": {
"LlmHistory": [
{
"Role": "user",
"Content": "hello"
}
],
"LlmHistoryLimit": 10,
"LlmSystemPrompt": "You are the 1 friendly and helpful assistant, focused on providing accurate information and advice to users.",
"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\\\"]}}\"",
"OpenAIExtraQuery": "api-version=2024-02-01&api-key=sk-xxx",
"LlmCompleteReply": true,
"FunctionMap": [
{
"Function": "hangup",
"MatchFunction": "hangup"
}
],
"OutputMinLength": 5,
"OutputMaxDelay": 2000,
"HistorySyncWithTTS": false
},
"AvatarConfig": {
"AvatarId": "5257",
"Resolution": "1080p",
"TemplateId": "tpl-9527"
},
"InterruptConfig": {
"EnableVoiceInterrupt": true,
"InterruptWords": [
"Excuse me"
],
"NoInterruptMode": "cache",
"KeepInterruptWordsForLLM": true
},
"VoiceprintConfig": {
"UseVoiceprint": false,
"VoiceprintId": "zhixiaoxia",
"RegistrationMode": "Explicit"
},
"TurnDetectionConfig": {
"TurnEndWords": [
"I'm done"
],
"Mode": "Semantic",
"SemanticWaitDuration": -1,
"Eagerness": "High"
},
"ExperimentalConfig": "\"\"",
"VcrConfig": {
"StillFrameMotion": {
"Enabled": false,
"CallbackDelay": 3000
},
"InvalidFrameMotion": {
"Enabled": false,
"CallbackDelay": 3000
},
"PeopleCount": {
"Enabled": false
},
"Equipment": {
"Enabled": false
},
"HeadMotion": {
"Enabled": false
},
"LookAway": {
"Enabled": true
}
},
"TransferCallConfig": {
"Type": 1,
"SipDomain": "sip.example.com:5060",
"CallerNumber": "0571xxxxxxx",
"CalledNumber": "0571xxxxxxx",
"ForwardTranscriptionEnabled": false
},
"AmbientSoundConfig": {
"ResourceId": "f67901c595834************",
"Volume": 50
},
"AutoSpeechConfig": {
"UserIdle": {
"WaitTime": 5000,
"MaxRepeats": 5,
"Messages": [
{
"Text": "Are you still there?",
"Probability": 0.5
}
],
"HangupEndWord": "I'm hanging up, bye"
},
"LlmPending": {
"WaitTime": 3000,
"Mode": "ai_select",
"Messages": [
{
"Text": "Just a moment",
"Probability": 0.5
}
]
}
},
"BackChannelingConfigs": [
{
"Enabled": true,
"TriggerStage": "pause_detected",
"Probability": 0.5,
"Words": [
{
"Text": "ok",
"Probability": 0.3
}
]
}
],
"BackChannelingConfig": [
{
"Enabled": true,
"TriggerStage": "pause_detected",
"Probability": 0.5,
"Words": [
{
"Text": "ok",
"Probability": 0.3
}
]
}
]
}
}
],
"RequestId": "7B117AF5-2A16-412C-B127-FA6175ED1AD0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.