Create a workflow
/automation
Requires `automation:create`.
Request Body
Response Body
Why the Agent cannot edit it, for a caller who otherwise could. Null when available, or when the caller cannot edit at all.
assistant_disabledllm_not_configurednot_permittednull
The in-app Agent can edit this workflow for the caller.
The caller may throw the draft away and go back to the live version.
8 properties
The MCP client that made the last edit, when updated_via is mcp.
Where the last draft edit came from.
consoleagentmcpapinull
6 properties
False until a first publish; there is nothing to compare against before then.
5 properties
addedchangedremoved
Changes beyond the listed items.
Steps the draft no longer has, with where they were.
Per step key: added or changed, for the diagram.
4 properties
Absent when the caller is below use access (run history is what the runs tab shows) or while it is not known yet.
3 properties
Connected apps the live version uses (the draft, if never published), most-used first.
3 properties
Apps beyond apps.
Runs per UTC day by the day each was queued, oldest first, ending today. Dry runs excluded.
4 properties
Canceled, skipped or still going.
2 properties
The person's picture: their stored profile picture, else a Gravatar URL (d=404, 96px) derived from their email (the address itself is not sent), else null. Draw initials when it is null or the image fails to load.
2 properties
The same 14 days as glance.run_history. Absent below use access, or when the run history is not known.
5 properties
Succeeded / (succeeded + failed) over the same 14 days; null when none finished.
Pending approvals: runs parked on a person.
draftactivedisabledpaused
2 properties
Stable id of the rule that raised it (bp_... for a best-practice warning).
One plain sentence on how to clear it.
errorwarning
curl -X POST 'https://api.elaichi.ai/automation' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"your_name","description":"your_description"}'const body = {
"name": "your_name",
"description": "your_description"
};
const response = await fetch('https://api.elaichi.ai/automation', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/automation"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
payload = {
"name": "your_name",
"description": "your_description"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())