capabilities.work

Create a TaskRouter Workspace and Task

A 2-step recipe with Twilio. We can help you get access.

Recipe · 2 steps

Create a TaskRouter Workspace and Task

with Twilio · Contact Centre Operations Management

Provision a TaskRouter Workspace and route a Task through it.

  1. Create the TaskRouter Workspace with the supplied friendly name and template.
  2. Create a Task inside the new Workspace so TaskRouter can route it.
What you'll need to have ready
  • friendlyName: Descriptive name for the Workspace (up to 64 characters).
  • template: Optional template to pre-configure the Workspace. Can be NONE or FIFO. FIFO seeds a default Workflow and TaskQueue so new Tasks can route.
  • attributes: A URL-encoded JSON string of Task attributes used by the Workflow to route the Task, e.g. {"task_type":"call","customer_ticket_number":"12345"}.
  • priority: Optional priority to assign the new Task, overriding the default.
  • timeout: Optional seconds the Task can live before being assigned. Default is 86400 (24 hours).
For your developer

Arazzo workflow twilio:taskrouter-workspace-and-task, 2 operations: CreateWorkspace → CreateTask. Specs on APIs.io.