Please ensure Javascript is enabled for purposes of website accessibility
Triggers & Events
  • 03 Jan 2024
  • 8 Minutes to read
  • Dark
    Light
  • PDF

Triggers & Events

  • Dark
    Light
  • PDF

Article Summary

Mindful Feedback has a number of survey flow options that can be configured using Triggers and Events. These settings can be accessed by clicking on the link in the bottom right corner of a question box.
Screen capture of Question page with Triggers and Events highlighted

This section contains lists of triggers and events that can be added to the question. Triggers are essentially conditional statements that are evaluated after the question is answered. Events are actions that Mindful Feedback can take if a trigger has been found to be true. Multiple events can be added to a single trigger.

Prompt Only Questions

As "prompt only" type questions do not ask for an answer from the respondent, triggers associated with these questions will be evaluated as soon as the prompt is presented.

To add a trigger to the question, simply click and drag the label from the triggers list onto the outlined box to the left. Then to add an event to the trigger you need to add it to the outlined box.
GIF demonstrating how to add triggers and events

You can add as many triggers as you like to each question and as many events as needed to each trigger. Triggers and events can also be reordered by simply dragging them around.

Order Matters

Triggers and events are evaluated and executed in the order they are shown in the survey configuration.

Triggers

The following triggers can be added to any question

TriggerFunctionImage
Question responseChecks a question response value against the comparison field. Last response is simply the most recent response that was received (Usually this will be the response to the question that the event is triggered by), while the average, lowest, and highest responses are aggregates based on all previous number type responses in the current interaction.
Yes/No questions

When setting up a Question Response Trigger using a Yes/No question, be sure to set Last response = 1 for a Yes response, and Last response = 0 for a No response.

For example, the customer may hear Press 1 for Yes or Press 2 for No. But in your Question Response Trigger, make sure you set Last response = 0 if you want a No response to trigger an event. 


Screen capture of Question response trigger
Respondent dataChecks the respondent's phone number or email address against the comparison field. Note that these values will not always be defined for all survey types.Screen capture of Respondent data trigger
Survey TypeChecks the survey type. If the survey type is equal to the value selected, the events will be activated.Screen capture of Survey Type trigger
Watch WordsListens for positive, negative, or all Watch Words. When used as a Wrap-Up Trigger, an additional field allows you to wait until a specified survey attribute has been updated before triggering the associated events.
screenshot of the watch words trigger
Agent IDChecks the agent ID associated with the interaction. If the agent ID of the interaction is equal to (or not equal to, depending on the operator selected) the selected agent ID, the events will be activated. Note that you can use this trigger to check for the case when no agent ID is assigned to the interaction by leaving the comparison field blank.Screen capture of Agent ID trigger
Always triggerAny events attached to this trigger will be triggered whenever the question is processed.Screen capture of Always trigger
Custom triggerCompares a custom evaluation field to the comparison field by any operator you like. The custom field can be a set value, or it can be a prompt template value. This allows you a lot of flexibility, including evaluating prompt expressions with multiple variables in them or comparing different interaction variables to each other.Screen capture of Custom trigger
Polling Triggers

As some of the surveys that pass into Mindful Feedback do not yet have all of the information of the original conversation, there is the option to have a trigger wait until a specific attribute has been updated into Mindful. This offers the ability to send email/SMS/third-party notifications that contain complete information from the call and survey.

Events

The following events can be added to any trigger

EventFunctionImage
Skip QuestionsSkips the number of questions specified in the number box. If there are fewer questions left on the survey than the number to be skipped, the closing message will be sent to the respondent and the survey will end.Screen capture of Skip questions event
Go To QuestionJumps to a specific question, skipping all questions in between. The number of the question to jump to must match the number on the left of the question row on the survey management page. If there is no question in the survey with the number specified, the closing message will be sent to the respondent and the survey will end.Screen capture of Go to question event
Send an EmailImmediately sends an email with the specified email message and subject line to the specified recipient. By default, the recipient is set to the email address of the respondent. Note that only plain text emails can be sent using this event, but the recipient, subject, and message fields will first be processed as prompt templates, allowing you to provide custom messages based on interaction variables. If the recipient is not a valid email address, the event will have no effect and an error will be logged in the event log.
NOTE

If you would like to send an email to more than one recipient, separate recipient email addresses with a semicolon.


Screen capture of Send an email event
Send a NotificationImmediately sends an email and/or browser notification with the specified message and title to the specified recipient. By default, the recipient is set to the agent user. Note that the recipient, title, and message fields will first be processed as prompt templates, allowing you to provide custom messages based on interaction variables.Screen capture of Send a notification event
Send an SMSImmediately sends an SMS message with the specified text to the specified recipient. By default, the recipient is set to the email address of the respondent. Both the recipient and message fields will first be processed as a prompt template allowing you to provide custom messages based on interaction variables. If the recipient field is not an SMS capable phone number, the event will have no effect and an error will be logged in the event log.Screen capture of Send an SMS event
Say a MessageWill add the message field to the next message sent to the respondent. If the interaction is a voice survey type, this message will be played using text to speech. The message field will first be processed as a prompt template allowing you to provide custom messages based on interaction variables. In most circumstances a prompt type question can be used to accomplish the same effect in a more straightforward way.Screen capture of Say a message event
Play Sound FileImmediately plays a sound file for the survey respondent. This event only works for voice type surveys. In most circumstances a prompt type question can be used to accomplish the same effect in a more straightforward way.Screen capture of Play a sound file event
Set External ReferenceSets the external_ref variable on the interaction to the value specified. The value field will first be processed as a prompt template.Screen capture of Set External Reference event
Set Call TypeSets the call_type variable on the interaction to the value specified. The value field will first be processed as a prompt template.Screen capture of Sett Call type event
Set Agent IDSets the agent ID on the interaction to the value specified. The value field will first be processed as a prompt template. This will affect which agent user is able to see reporting for this interaction.Screen capture of Set Agent ID event
Set Respondent LanguageSets the language for the interaction respondent. The value field will first be processed as a prompt template. This will affect which agent user is able to see reporting for this interaction.Screen capture of Set respondent language event
Set Interaction DataSets the custom interaction data variable specified by the Custom Key field to the value specified. Both the Custom Key and the Value fields will first be processed as prompt templates. Note that the Custom Key field must start with a letter and contain only letters, numbers, and underscores. The custom key also must not share a name with a predefined interaction variable such as agent_id, call_type, or external_ref. If the custom key field is not valid, the event will have no effect and an error will be logged in the event log.Screen capture of Set Interaction data event
Post to URLSends a GET, PUT, PATCH or POST request to the specified URL with the specified Body. Both the URL and the Body fields will first be processed as prompt templates, so if you are including a JSON array in your body, it is important to escape any square brackets with a single backslash (eg. "array”:[“a”,”b”]). This event can be used for triggering unauthenticated webhooks in third-party systems, or for making secure API calls in Genesys Cloud or Salesforce. All authentication methods are supported. These integrations can be managed in your Customer Settings.Screen capture of Post to URL event
Abandon/Complete SurveyEnds the interaction with the respondent. If the survey is not already marked as finished (see below), the interaction will be considered abandoned. Screen capture of Abandon/Complete survey event
Mark Survey as FinishedMarks the interaction as finished, making it safe to end the interaction at any point without it counting as an abandon.Screen capture of Mark survey as finished event
Custom Triggers

Custom Triggers can be used to evaluate multiple conditions. For "AND" conditions you simply string each condition to each other in the value input box such as:

%call_type%==Customer Service??%survey_type%==websms??%Customervalue%==GOLD??%last_response%==1

When using a condition like this you can check if it is true by using the "=" operator and the word "true" as shown in the screenshot below:

Screen capture of Custom trigger

Wrap-up Triggers and Events

Wrap-up triggers and events can be added to any survey by clicking on the link below the questions list on the survey management page.

These act exactly as question triggers and events but are activated once an interaction is fully completed (unless completed due to timeout). These triggers are especially useful if you need to use transcribed voice responses, as they are only activated once all transcriptions associated with a survey interaction are complete.

Timeout Triggers and Events

Timeout triggers and events can be added to any survey by clicking on the link below the questions list on the survey management page. These triggers are activated if an interaction times out.

Wrap Up And Timeout Triggers

Because these are activated after the survey has finished, survey flow events such as the go to question event or the play message event will have no effect here.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.