Skip to main content

Wait for the contact to respond

3 minute read                                                                                                                         Beginner


In Glific, NGO users can create flows and communicate with their beneficiaries in a bot like experience using flows. Flows have different types of actions to send a message to beneficiary(ies) and receive responses from them.

Video Tutorial : Collecting responses from Contacts


Select action type from the dropdown in the node. Given below are the list of response types available to use. Anything else given in the response type defined will not be accepted as a valid response.

image

1. has any of the words

To accept the input if the words matches any of the words defined in the response criteria. you can add multiple words comma separated in response criteria. If user will respond any other word from the list it will be treated as valid response. For example : Yes, Y, Ya, Yup all of it will pass the criteria of the response in below response type.

image


2. has all of the words

To accept the input if the input matches exactly what is defined in the response criteria.


3. has a phrase

To accept the input if the input is present in the response criteria.


4. has only the phrase

To accept the input if the input matches exactly what is defined in the response criteria.


5. has a number

To accept the input if the response is in numeric. This will accept any number as a valid response. Any non numeric input will be treated as invalid response.

image


6. has a number between

To accept the input if the number is in between the range defined in the response criteria. This option will accept numbers only given in the range. any number out of range will be treated as invalid response.

image


7. has a number equal to

To accept the input if the number matches with the number defined in the response criteria. This will accept only the number given in the criteria as a valid response. Any other response will be treated as invalid response.

image


8. has a phone number

To accept the input if the response is a valid phone number. It accepts mobile and landline numbers

  • 10 digit Mobile number (XXXXXXXXXX )
  • 10 digit Mobile number with 0 prefix (0XXXXXXXXXX),
  • 10 digit Mobile number with country code prefix (+91 XXXXXXXXXX),
  • landline number with (XXX XXXXXXX)
  • landline number with 0 and state code (0XXX XXXXXXX)
  • landline number with with country code prefix (+91 XXX XXXXXXX)

image


9. has an email

To accept the input if the response is an email address.

Valid emails

image


10. has media

Video Tutorial


To accept the input if the response is a media file (jpeg, png, mp4).

image

You can use Has Media in your flow editor to receive and store media files in Glific. You can also receive the caption of the media file from the flow.

image

Create a variable to store the media file received from the contact. For example picture

image

Now you can save or use the media file URL received and its caption.

In this example, the syntax will be.

  • for media file URL @results.picture.url
  • for media file caption @results.picture.caption

image

It will be shown in the chat window like the below example.

image


11. has audio

To accept the input if the response is an audio file (mp4 audio files).

image


12. has video

To accept the input if the response is a video file (mp4 video files).

image


13. has image

To accept the input if the response is an image file (jpeg, png).

image


14. has file

To accept the input if the response is a file ( pdf,doc).

image


15. has location

Video Tutorial



To accept the input if the response is a location.

image

Select the check box Continue when there is no response if you want to take some decision on No response in the flow. Select the wait time form the dropdown.

image

  • Response criteria - fields next to the response type is to enter the response criteria.

  • Category as - is the field to give name/category to the response.

  • Result Name - is the field to define the variable name for the response received from beneficiaries

image

Click Ok button to save the Wait for response action type.

You can get the value of location with Has Location in contact response and save it in the form of longitude and latitude.

image

The user will send the location from WhatsApp in the user response. The value will be store in a variable. For example location

image

Now you can save or use the location details received in longitude and latitude forms in your flow like other variables.

  • @results.location.longitude
  • @results.location.latitude

image

It will be shown on the chat window in a flow.

image


16. No response used as a Nudge