Create Ai Automation
create_ai_automationCreates a saved AI agent automation that runs a prompt on schedules, incidents, alerts, Slack messages, webhooks, or on demand and posts results to Slack or the incident timeline.
Instructions
Create an AI automation. Set name and prompt; triggers decide when it runs, destination_kind where its answer is posted, and allowed_tool_keys which tools the agent may use (null means every tool the team allows, so pass an explicit list to keep it narrow). New automations are disabled unless enabled is true. An AI automation is a saved instruction (prompt) that a Rootly AI agent runs on a schedule, on a matching event (incident, alert, Slack message, webhook) or on demand. When it runs, the agent may only use the tools listed in the automation's allowed_tool_keys (all team-allowed tools when null), and it posts its answer to the configured destination (a Slack channel or the incident timeline), or nowhere when destination_kind is none.
Requires OAuth scope ai.automations:write. Read-only attributes are ignored on write.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "create_ai_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||