This article explains how to trigger post interaction IVR voice surveys from CX Index inside Genesys Cloud. There are two methods:
- Method 1: Post Interaction Agent Transfer. The agent clicks a button to transfer the caller to the survey.
- Method 2: Post Interaction Callback Survey. An outbound campaign calls the contact to run the survey.
Both methods begin with the same survey building step.
Method 1: Post Interaction Agent Transfer IVR surveys
In this method, the agent triggers the survey by transferring the interaction participant to it.
Step 1: Build an IVR survey within CX Index
- Create the survey and add its questions. See How to create a survey and How to add questions to a survey. The questions can serve as your Genesys Cloud voice prompts.
- Record the survey ID and question ID. You need them when you build the flow in Genesys Cloud. The example in this article uses Survey ID 65 and Question ID 590.
- During configuration, set the Channel field on the General tab to IVR.
- Add a trigger with an integration, queue or flow, and enter a start date in ISO 8601 format, for example
2022-08-22T12:00:00.000Z. - Assign a queue ID or flow ID to the trigger. You can take both from the Genesys Cloud URL.
- Click Save changes.
Step 2: Configure the flow with the survey inside Genesys Cloud
- On the Genesys Cloud Admin page, select Architect and add an Inbound Call Flow. Enter the details for the survey you created in CX Index.
- Design the flow to meet your requirements.
- Remove the initial menu and replace it with a reusable task named Survey Intro. You may also remove the main menu.
- In the Survey Intro task, edit the initial greeting so it plays 100ms of blank audio.
- As the first block, add a Clear Post Flow block. Then add a Set Participant Data block with:
- Attribute name:
Task.cx_index_survey_start_date- Value to assign:GetCurrentDateTimeUtc() - Add the introductory message and the survey questions.
- Add a menu labelled with the survey's metric (NPS, CSAT or CES) and add the matching question prompt. Configure the menu so it does not repeat.
- Under that menu, add a task for each response option. This example uses
CES_One. - For each response option, add a Set Participant Data block:
- Attribute name 1:
Task.cx_index_65_590- Value to assign 1:1 - Add a task for the open ended question. Skip this step if you will not ask one.
- Return to the response task and add a final block that transfers to the open ended question task.
- Repeat for the remaining response options (
CES_Two,CES_Three,CES_FourandCES_Five). Copy the tasks and change only the Set Participant Data value to match each selection. - Add a task for the invalid selection prompt (
CES_Invalid selection) and configure it to transfer back to the CES menu. - On the menu, set the invalid selection as the default menu choice.
- In the Survey Intro task, add a transfer to the question menu.
- Repeat these steps to add more questions.
- Configure the open ended question:
- Add an Audio Playback block with the open ended question.
- Add a Set Participant Data block with two attributes:
- Attribute name 1:
audio_available, Value to assign 1:1- Attribute name 2:Task.cx_index_65_591_verbatim_start_date, Value to assign 2:GetCurrentDateTimeUtc() - Add an Enable Participant Recording block and a first Detect Silence block. We recommend a silence duration of 6 seconds and a timeout of 1 minute.
- Add a second Detect Silence block as the timeout handler, set to 60 seconds with a silence duration of 2500 milliseconds.
- Add a Set Participant Data block with:
- Attribute name 1:
Task.cx_index_65_591_verbatim_end_date, Value to assign 1:GetCurrentDateTimeUtc()- Attribute name 2:complete, Value to assign 2:1
- Add the closing or thank you prompt, then add a Disconnect block.
- Validate the flow to check for errors, then click Publish.
- Copy the flow ID and paste it into the Survey Builder trigger for the relevant survey in CX Index. This binds the flow to CX Index.
Step 3: Set up the Genesys triggers
There are two ways to trigger the survey from Genesys Cloud.
Option 1: Script button
Add a script button that transfers to the flow ID at flowID@localhost.
Option 2: Post call survey with a Post Flow data action
- Go to the routing IVR page (
directory/#/admin/routing/ivrs) and select the call flow and the phone number where the survey should run. - Add a Set Post Flow block wherever the survey should start. This can be at the beginning of the flow or before a transfer to an ACD block.
- Set the post flow target to the caller.
Method 2: Post Interaction Callback Survey
In this method, an outbound campaign calls the contact to run the survey.
Step 1: Build an IVR survey within CX Index
Follow the same steps as Method 1, Step 1. Note the survey and question IDs (for example Survey ID 65 and Question ID 590) and set the Channel to IVR on the General tab.
Step 2: Create a contact list
- On the Genesys Cloud Admin page, under Outbound, select Live Management.
- Click Create New and enter a name in the Contact List Name field.
- In the Upload Contents from a CSV file field, upload a comma separated values file containing the relevant IDs, such as
interaction_id,agent_id,phone_numberandemail. - Check the sample rows shown to confirm the data is correct.
- Optionally, under Contact List Columns, set the Type and Time Zone for the phone and email columns.
- Click Save at the bottom of the page to create the list.
Step 3: Create a flow for the survey
- Create the same inbound call flow described in Method 1, Step 2.
- In Architect, open the Flows - Outbound Call tab and click +Add.
- In the Create Outbound Flow pop up:
- Enter a Name.
- Select the new list from the Contact List dropdown.
- Select Other from the Default Wrapup Code dropdown.
- Click Create Flow.
- In the left sidebar, under Reusable Tasks, select Add reusable task here and create a new task.
- Rename the task to Transfer to Prebuilt survey.
- In the sidebar, click the three dots beside the task name and select Set this as the starting task.
- In the flow chart, click Drag action here, then go to Toolbox > Transfer > Transfer to Flow.
- In the right sidebar, select your inbound call flow from the Inbound Call Flow dropdown.
- In the right sidebar, under the Audio heading, enter prompts for Pre-Transfer Audio and Failed Transfer Audio.
- At the bottom of the flow chart, click Drag action here, then go to Toolbox > Disconnect.
- Click Publish above the task title.
Step 4: Configure the campaign
- On the Admin page, under Outbound, select Campaign Management.
- In the left sidebar, select Campaign Management.
- Enter a Campaign Name.
- Under Dialing Mode Options, set: - Dialing Mode: Agentless Dialing - Number of Outbound lines: your required value - Dialing Group: Site - Site: the relevant site from the dropdown - Call response: the relevant option from the dropdown
- Under Campaign Options, select the new contact list from the Contact List dropdown.
- Set the remaining fields to match your organisation's requirements.
- Set Always Running to Yes.
- Click Save at the bottom of the page.
- On the Campaign Management page, find the new campaign and switch its Status toggle to On.
Important: Always Running must be set to Yes for the campaign to keep sending callback surveys.
Still stuck? Email support@cxindex.com and the team will help.
