Automation tasks, callbacks, and task templates¶
Create and run automation tasks, maintain callback rules, and manage reusable agent task templates. This page does not observe runtime tasks; use the adjacent task page for runtime observation.
Prerequisites¶
Prepare credentials that can access the target workspace and IDs for source resources required by automation tasks, callback rules, or templates. For service endpoints, authentication, and general request formats, see Make your first AI Studio API call.
Confirm a target task before starting it. To receive callbacks, manage the corresponding callback rule first.
Call sequence¶
Create a task template or query existing templates to determine a reusable task definition.
Retain the task ID after creating an automation task. To adjust it, get task details first, then update the task.
After starting a task run, use the run-detail, event, and result actions to view distinct observable run information.
To manage callback rules, query the target rule first, then create, update, or delete it. Confirm impact before archiving a task.
API operations¶
Manage automation tasks and runs¶
Task |
Use it when |
|---|---|
Create a new automation task. |
|
Select or confirm a target task. |
|
Confirm a target task before updating, starting, or archiving. |
|
You have the task ID and need to modify it. |
|
You confirmed a task and need to submit one run. |
|
You have a run ID and need run information. |
|
View events for a target run. |
|
View the result for a target run. |
|
Confirm impact and conditions on the action page before archiving. |
Manage callback rules¶
Task |
Use it when |
|---|---|
Configure a callback rule for a task. |
|
Select or confirm a target rule. |
|
Confirm a target rule before updating or deleting it. |
|
You have the rule ID and need to modify it. |
|
Confirm impact and conditions on the action page before deletion. |
Manage agent task templates¶
Task |
Use it when |
|---|---|
Create a reusable template. |
|
Select or confirm a template. |
|
Confirm a target template before updating. |
|
You have the template ID and need to modify it. |
Confirm the result¶
After starting a run, use Get an automation-task run, List automation-task run events, and Get an automation-task run result to confirm it. Confirm task, callback-rule, and template changes with their respective detail or list actions.
Limitations and notes¶
Archiving a task and deleting a callback rule affect the target object. Confirm conditions and results on the corresponding action page before proceeding.