![]() ![]() ![]() "selected_product=\ "ProgrammableSMS\"" expression for SMS Task Queue. ![]() This application's Workflow rules are defined as: The routing configuration will take a Task's attribute and match this with Task Queues. configuration which is a set of rules for placing Tasks into Task Queues.taskReservationTimeout as the maximum time we want to wait until a Worker is available for handling a Task.We will learn how to implement it on the next steps. assignmentCallbackUrl and fallbackAssignmentCallbackUrl as the public URL where a request will be made when this Workflow assigns a Task to a Worker.friendlyName as the name of a Workflow.Let's see how to create one next!įinally, we create the Workflow using the following parameters: We have a Workspace, Workers and Task Queues. The function initClient configures and returns a TaskRouterClient, which is provided by the Twilio Node.js library. In order to build a client for this API, we need a TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN which you can find on Twilio Console. Activities - Possible states of a Worker.Workflows - Responsible for placing Tasks into Task Queues.Task Queues - Holds Tasks to be consumed by a set of Workers.Workers - The agents responsible for handling Tasks.Tasks - Represents a customer trying to contact an agent.In this Node.js application we'll do this setup when we start up the app.Ī Workspace is the container element for any TaskRouter application. We can do this in the TaskRouter Console or programmatically using the TaskRouter REST API. In order to instruct TaskRouter to handle the Tasks, we need to configure a Workspace. Allow agents to change their status (Available/Offline) via SMS.Redirect users to a voice mail when no one answers the call.Store missed calls so agents can return the call to customers.Create a Task with the selected product and let TaskRouter handle it.Listen for incoming calls and let the user select a product with the dial pad.Configure a workspace using the Twilio TaskRouter REST API.This is what the application does at a high level: If no one is available our customer's number will be saved so that our agent can call them back. In this example customers would select a product, then be connected to a specialist for that product. In this tutorial we will show how to automate the routing of calls from customers to your support agents. Lifecycle of a Task: Workflows and Assignment ![]()
0 Comments
Leave a Reply. |