LlmSmartCall
Intelligent outbound call based on an LLM.
Operation description
-
Each API invocation supports adding only one called number. If you have multiple called numbers, invoke the API multiple times.
-
Before initiating an intelligent call based on an LLM, ensure that you have created an LLM application in the Application Management interface and have successfully requested a real number in the Voice Service Number Management interface.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aiccs:LlmSmartCall |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CalledNumber |
string |
Yes |
Called number that receives the intelligent outbound call. |
137****0000 |
| CallerNumber |
string |
No |
Caller number. This parameter is required and supports only numbers from the Chinese mainland. View available numbers in the Voice Service Number Management interface. |
132****2054 |
| ApplicationCode |
string |
Yes |
LLM application code. View it in the Application Management interface. |
F32****** |
| StartWordParam |
object |
No |
Start-word variables. Go to the LLM Application Management interface and click Details to view the start-word variables of your created LLM application. |
{ "name": "小明", "address": "浙江省杭州市" } |
| PromptParam |
object |
No |
Prompt variable. Go to the Application Management interface and click Details to view the prompt variables you created. |
{ "style": "温柔" } |
| OutId |
string |
No |
An ID reserved for the caller. This ID will be returned to the caller through a receipt message. Length: 1–15 bytes. |
222356**** |
| BizParam |
object |
No |
Business parameters. These parameters are passed to the customer model when invoking the customer model. |
biz_params = { "user_prompt_params": "{\"city\":\"北京\"}" } |
| Extension |
string |
No |
The extension number of the X number, up to 5 digits. Important Fill this field only in AXN extension mode. If no extension number exists, do not fill it. |
123 |
| SessionTimeout |
integer |
No |
Maximum call duration. The call is automatically disconnected after timeout. Unit: seconds. Note
|
1200 |
| TtsVoiceCode |
string |
No |
The voice code used for TTS playback. Note
|
V65****** |
| TtsSpeed |
integer |
No |
Voice speed during TTS playback. Note
|
50 |
| TtsVolume |
integer |
No |
The volume for TTS playback. Note
|
10 |
| CustomerLineCode |
string |
No |
Customer-provided ingest endpoint encoding. Note
|
SELF_xxxxx_A_NET |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
D6A51251-F7C4-596A-9F45-3C3219A5450D |
| Code |
string |
Request status code. A return value of "OK" indicates that the request succeeded. |
OK |
| Message |
string |
Description of the status code. |
OK |
| CallId |
string |
Unique receipt ID for this call. |
125165515***^11195613**** |
Examples
Success response
JSON format
{
"RequestId": "D6A51251-F7C4-596A-9F45-3C3219A5450D",
"Code": "OK",
"Message": "OK",
"CallId": "125165515***^11195613****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ModelStatus.Invalid | Model state invalid. | Invalid model state. |
| 400 | MissingParameter.CallerNumber | Parameter "CallerNumber" which is mandatory for the request is not provided. | The request required parameter "CallerNumber" was not provided ". |
| 400 | InvalidParameter.ApplicationCode | The specified parameter "ApplicationCode" is invalid. | The parameter ApplicationCode is invalid. |
| 400 | ModelNotExist | The model does not exist. | The model does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.