Skip to content

<Task>

The task’s attributes as a JSON object, written either as the text of <Task> or as an <Attributes> child followed by an optional <Proficiency> child (in that order). Invalid JSON, or a <Task> with <Attributes> left empty, creates no task.

Used inside <Enqueue>.

<Task>
<Attributes>{"type":"billing","priority":"high"}</Attributes>
<Proficiency>{"billing":3}</Proficiency>
</Task>

The element’s text is its value (see the description above).

Element Description
<Attributes> Task attributes, a JSON object.
<Proficiency> Required worker proficiency, a JSON object, passed to TaskRouter with the task.