StartAIWorkflow
Submits an intelligent workflow task to automate the Intelligent Media Services process based on an intelligent workflow template.
Operation description
When you initiate an intelligent workflow task, you must specify an intelligent workflow template. You can create an intelligent workflow template in the Intelligent Media Services console.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:StartAIWorkflow |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkflowId |
string |
Yes |
The ID of the intelligent workflow template. |
****3f44-f1f6-477e-9364-c5e6c49e**** |
| Inputs |
string |
No |
The startup parameters for the intelligent workflow. The value is a JSON string, such as media asset information or live streaming/RTC stream information. |
{ "live_url": { "Url": "rtmp://test.com/test_app/test_stream?auth_key=test", "MaxIdleTime": 20 }, "source_language_id": "es" } |
| UserData |
string |
No |
The custom user data. This parameter is optional. |
{ "url":"https://test.com" } |
| DispatchTag |
string |
No |
The task tag. This parameter is optional. |
default |
Inputs: Configure this parameter in the start node of the intelligent workflow template. It supports multiple parameters and parameter types. You can define the parameters based on the actual process requirements of the workflow template. Refer to the following scenario examples:
Live streaming translation:
{
"live_url": {
"Url": "rtmp://test.com/test_app/test_stream?auth_key=test",
"MaxIdleTime": 20
},
"source_language_id": "es"
}
RTC subtitle translation.
{
"rtc": {
"AppId": "xxx",
"ChannelId": "rtcaitest1",
"UserId": "userA"
},
"source_language_id": "zh",
"push_app_id": "app_id",
"push_channel_id": "channel_id",
"push_uid": "user_id"
}
Media processing.
{
"TaskInput":{
"Type":"OSS",
"Media": "oss://sashimi-cn-shanghai/test/test.flv"
}
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| TaskId |
string |
The ID of the intelligent workflow task. |
********-266c-4bb8-b20c-6faa******** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"TaskId": "\n********-266c-4bb8-b20c-6faa********"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.