CreateCustomScriptTemplate
Creates a custom script template for a specified script.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
0ec0c897-b92c-40e4-9ad7-e6e4f5ce13bb |
| ScriptId |
string |
No |
The script ID. |
43972417-0657-452a-81c2-c59d8245a9b2 |
| PromptJson |
string |
No |
The agent configuration in JSON format. |
{"name":"Xiao X","gender":"Male","age":18,"role":"Game Promoter","communicationStyle":["Friendly"],"goals":"Hello","background":"Not very good","openingPrompt":"Hello, I am XXX"} |
| Prompt |
string |
No |
The prompt in professional mode. |
\nName: Annie \nRole: Game Promoter\nBackground: Promote the latest benefit activities to players over the phone, ensuring that every player stays informed and enjoys the game.\nSkills: As a game customer service representative, recommend time-limited game benefit activities to users, highlight the benefits, and explain the participation process.\nConstraints: You must remember that you are Annie, |
| Model |
string |
No |
The ID of the model used to create the template. |
model_002 |
| LabelsJson |
string |
No |
The label descriptions in JSON array format. |
[{\"name\":\"Delivered\",\"description\":\"Whether the purchased home appliance has been delivered\",\"valueList\":\"[\\\"Yes\\\",\\\"No\\\"]\"},{\"name\":\"On-site Appointment Time\",\"description\":\"Collect the customer's expected on-site installation time\",\"valueList\":\"[]\"}] |
| Name |
string |
No |
The name of the custom scenario. |
Test scenario |
| Description |
string |
No |
The description of the custom scenario. |
This is a large language model bot |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BaseResponse |
||
| Code |
string |
The status code. |
OK |
| Data |
string |
The ID of the created custom scenario template. |
8d6a6e41-8093-49af-a9d1-0281878758ac |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The message returned by the API. |
Success |
| RequestId |
string |
The request ID. |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the call was successful. |
true |
Examples
Success response
JSON format
{
"Code": "OK",
"Data": "8d6a6e41-8093-49af-a9d1-0281878758ac",
"HttpStatusCode": 200,
"Message": "Success",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.