Create an automation from a template
curl --request POST \ --url https://example.com/api/v1/projects/example/automations/from-template \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "isActive": true, "name": "example", "templateId": "example" }'Requires the projects.manage and tasks.manage permissions and reach to the project. Copies the template’s definition onto the project, each status matched by name onto the project’s workflow, and validates it as POST /projects/{id}/automations does: a status with no namesake in the workflow answers 422. The caller becomes the automation’s owner. Later changes to the template do not reach it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Defaults to true.
Defaults to the template’s name.
The template the automation starts from.
Example generated
{ "isActive": true, "name": "example", "templateId": "example"}Responses
Section titled “Responses”The created automation.
object
A Chelsea-native automation over one project’s tasks.
object
Executed in order, acting as the automation’s owner.
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Ordered first-match branches at each level. Parent conditions gate children; parent actions run before selected child actions. Maximum 5 levels, 10 siblings and 50 total branches. An unconditional fallback is allowed only last at each level. Empty means a linear automation.
object
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
object
object
A fixed due instant (ISO 8601).
Due this many days after the automation runs.
object
Priority and due date have their own actions; this one covers the remaining writable fields.
object
Operand for every field type except MULTI_SELECT.
MULTI_SELECT operand: the option ids to store.
object
object
object
object
object
A role of the workspace (Settings, Roles), such as Project Owner: the task goes to the project’s first manager holding it. Omitted, to its first manager.
object
object
The team members to spread tasks across; each task goes to the one with the fewest open tasks in the project, the first listed on a tie.
object
The titles of the subtasks to create under the task, in order.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
Which of the assignee, the due date and the priority to copy; the chosen ones only.
object
A person (MEMBER) custom field; the task goes to the member it holds.
object
object
object
The project the task moves to.
A status of the target project’s workflow; omitted, each status maps by name and category.
object
The new task’s assignee; omitted, it starts unassigned.
The project of the new task; omitted, the automation’s own project.
A status of that project’s workflow; omitted, its open default.
object
object
object
GitHub-Flavored Markdown, converted to sanitized HTML for the comment.
object
Members to @-mention with the channel provider’s own syntax.
object
object
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
Target custom_field only: a single-select custom field of the project or the workspace. The AI can only choose one of its options, or none.
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
Replace a value the task already has. Omitted or false, a task whose field is already set is left alone; for the priority, None counts as not set.
What the AI picks the value of: the task’s priority, or a dropdown custom field (then fieldDefinitionId is required).
object
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
object
The teammate (an agent member with a teammate configuration) the task is handed to
What the AI is asked to do, in plain words; the organization edits it. The step does nothing without it.
How branch conditions combine: all (AND, default when omitted) or any (OR).
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
How branch conditions combine: all (AND, default when omitted) or any (OR).
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
How branch conditions combine: all (AND, default when omitted) or any (OR).
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
How branch conditions combine: all (AND, default when omitted) or any (OR).
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
How branch conditions combine: all (AND, default when omitted) or any (OR).
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
Every condition must hold on the task’s current state for the actions to run.
object
Custom_field only: the CustomFieldDefinition the condition reads.
Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.
Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.
In operand: the condition holds when the subject matches any of them.
Whether the webhook has a signing secret. The secret itself is returned only when it is created or replaced.
WorkspaceMember the actions act as.
The config of the first trigger; kept for clients that predate triggers.
object
TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).
TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.
TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).
TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).
What starts the automation, in editor order: any one of them fires it. Each entry carries its own config (TASK_CUSTOM_FIELD_CHANGED requires config.fieldDefinitionId; TASK_STATUS_CHANGED optionally selects config.statusId; TASK_LABEL_ADDED and TASK_LABEL_REMOVED require config.labelId; TASK_DUE_SOON and TASK_START_SOON require config.days; TASK_IN_STATUS_FOR requires config.statusId and config.days of 1 or more, in business days; TASK_VIDEO_TRANSCRIPT_READY and TASK_CLIENT_REPLIED need none). Task type and approval-status triggers are not supported.
One way an automation starts: a trigger type and its optional configuration. Any trigger of the automation fires it.
object
object
TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).
TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.
TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).
TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).
Where another system sends the INCOMING_WEBHOOK trigger’s deliveries; null without that trigger.
Example
{ "data": { "actions": [ { "type": "set_priority_option" } ], "branches": [ { "actions": [ { "type": "set_priority_option" } ], "branches": [ { "actions": [ { "type": "set_priority_option" } ], "branches": [ { "actions": [ { "type": "set_priority_option" } ], "branches": [ { "actions": [ { "type": "set_priority_option" } ], "branches": [ { "actions": [ { "type": "set_priority_option" } ], "conditionMatch": "all", "conditions": [ { "op": "eq", "subject": "priority_option" } ] } ], "conditionMatch": "all", "conditions": [ { "op": "eq", "subject": "priority_option" } ] } ], "conditionMatch": "all", "conditions": [ { "op": "eq", "subject": "priority_option" } ] } ], "conditionMatch": "all", "conditions": [ { "op": "eq", "subject": "priority_option" } ] } ], "conditionMatch": "all", "conditions": [ { "op": "eq", "subject": "priority_option" } ] } ], "conditions": [ { "op": "eq", "subject": "priority_option" } ], "trigger": "TASK_CREATED", "triggers": [ { "config": null, "type": "TASK_CREATED" } ] }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC