Use AI Skills in API Tasks
- Updated: 2024/10/17
Use AI Skills in API Tasks
Optimize your automations by utilizing our cutting-edge task execution infrastructure in API Tasks, and take advantage of faster executions of AI Agents using AI Skills with the generative AI capability.
See Enterprise Platform.
Take advantage of using API Tasks to avoid the additional steps of setting up Bot Runners or a device pool for executing the AI Skills. A Pro Developer or Citizen Developer would use this feature to create an API Task integrated with an AI Skill.
- You would first create a Model connection in AI Agent Studio, and then use the Model connection in an AI Skill.
- Next, create an AI Skill connecting to the Model connection you created.
AI Skills are created by the Pro Developer and assigned for reuse to the Citizen Developer or Pro Developer. This can be directly used within an automation thus leveraging the generative AI capability by executing the action and making a call to the connected foundational model, via Model connection. See Create AI Skills.
- Next, create an API Task and use the action available for use.
See Create an API Task.
- In the API Task choose the AI Skill you created.
- When you select the API Task, you would see the Prompt Input variable that gets passed from the API Task to the AI Skill.
A container is deployed for an API Task that invokes the AI Skills package within the container that executes the Execute action which makes a call to the linked foundational model via Model connection to retrieve a response. This response gets assigned to the output variables.
action in the - Next, run the API Task.
See Run API Tasks.
Known product behavior
In Automation 360 v.34 release, AI governance Audit logs are not supported for API Tasks. This is specific to the API Tasks that are run in real-time mode (for attended automations).
Some important references
- See API Task
- See Create and manage Model connections.
- See Create AI Skills.
- See Run API Tasks.
- See Packages supported in API Tasks.