The setup and configuration outlined in Create your Flex-Zendesk Integration and Manage Flex-Zendesk Call Flows describe how to get up and running with the default behavior in mind. However, you might want to customize both this integration experience as well as call flows.
Do you still need to set up your Flex-Zendesk Integration? Check out our guide for configuring your Zendesk instance for Flex!
In this guide, we will walk through how to customize the default call flow in your Flex-Zendesk integration by
To accomplish this, we'll need to do the following:
zd_ticket_id
zdCustomTags
Remember: Flex is a Programmable Application Platform, so you can customize Flex to any extent using the Flex Plugin Model, and those changes will be reflected in your Zendesk integration as well. The customizations in this guide refer to the enhancements in both the integration and the call flow itself.
If the call flow in your organisation collects ticket number from the customer on incoming engagement, you can use that information to screen pop the ticket to an agent when they accept the incoming task.
To do so, from your Twilio Console, modify your Flex Flow, as described below.
(1) From the Flex Flow screen, select "Voice IVR" flow
(2) Default "Voice IVR" flow looks like the one below
(3) Add a "Gather Input on Call Widget" to the flow before "Send to Flex" widget, like shown below to collect ticket number from the caller. Let's name this widget "getTicketNumber'
(4) Add the ticket number as a Task Attribute in the "Send to Flex" Widget, as shown below
(5)The task attributes in "Send to Flex" widget after modification will look like the following
1{ "type": "inbound",2"name": "{{trigger.call.From}}" ,3"zd_ticket_id" : "{{widgets.getTicketNumber.Digits}}" }
(6) If you now call your Flex Number and supply the ticket number, you should have the Ticket screen displayed instead of a new ticket. For the scenario when no ticket number is provided in the above IVR, or an invalid ticket number is provided, you would still have a new ticket number created and displayed on the screen
While the above example shows the approach to collect Ticket number in an IVR, the same approach can be applied to any other channel. For example, you can collect Ticket Number using a Messaging Bot in any text-based channel like SMS, WhatsApp or Webchat and pass that Ticket Number as "zd_ticket_id" task attribute to Flex.