Skip to main content

Create task

Put an approval or a form in the Task inbox for people to do, then use Wait for task to suspend until it is done. Assign it to user:NAME or role:NAME (several separated by commas).

Command in the Long-running agents toolkit · id ooa.longrunning/create_task · 7 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
KindStringNoapprovalapproval: approve or reject, with a comment; form: fill in the form's fields.
TitleStringYesWhat the task is, as the inbox lists it.
AssigneeStringYesWho may do it: user:NAME or role:NAME, several separated by commas.
DescriptionStringNoMore about the task.
FormDictionaryNoFor a form: {"fields": [{"id": "amount", "label": "Amount", "type": "number", "required": true}]}, as in workflow forms.
DataDictionaryNoDetails shown with the task.
Due (hours)NumberNoOverdue after this many hours; never when empty.

Outputs​

OutputTypeWhat it is
task_idStringGive it to Wait for task.