<

Getting Started with Voice Survey

A voice call will help notify the users of any critical alerts that require immediate attention. Plivo’s PHLO allows you to quickly create and configure a voice alert system for your business. An API call will trigger the PHLO and will enable making direct calls to the customers with critical alerts.

You can also set up PHLO to alert you in case of important notifications, and take actions on those notifications based on the key pressed.

Creating the Use Case using PHLO

With PHLO, you can quickly create a workflow that suits your use case. To use PHLO, make sure to register and log on to Plivo Console.

Use the following components to create this PHLO:

  • Initiate Call
  • IVR Menu
  • Play Audio
  • HTTP Request

When you send an API request to the PHLO, it triggers a call to the user using the Initiate Call component. Once the user answers the call, the Play Audio component plays an audio to the user. The call will disconnect automatically after the playback audio is completed.

Note: The Callback function provides the user details required to make the call.

To create this PHLO

  1. On the top navigation bar, click PHLO.The PHLO page will appear and display your existing PHLOs, if any. If this is your first PHLO, then the PHLO page will be empty.
  2. Click CREATE NEW PHLO to build a new PHLO.
  3. From the CREATE A NEW PHLO window, select Build on a blank canvas, and then click CREATE PHLO. The PHLO canvas will appear with the Start node. Note: The Start node is the starting point of any PHLO. You can choose between the four available trigger states of the Start node; Incoming SMS, Incoming Call, Endpoint Call, and API Request. For this PHLO, we will use the API Request trigger state.
  4. Click the Start node to open the Configurations tab, and then enter the information to retrieve from the HTTP Request payload. For example, this could be a list of numbers to call. image alt text
  5. Click Validate to save the configurations for the node.
  6. From the list of components, on the left hand side, drag and drop the Initiate Call component onto the canvas. This will add a Initiate call node onto the canvas.
  7. Connect the Start node with the Initiate Call node, using the API Request trigger state. image alt text
  8. Configure the Initiate Call node to select the From and To numbers from the Start node.Note:
    • Enter two curly brackets to view all available variables.
    • The values for the From and To numbers are picked from the HTTP Request Payload. Make sure to clearly define the variables in the Start node. image alt text
  9. Rename the Initiate Call node to Call_Customer. Note: You can rename the nodes as per your requirements. We are using specific names in this example to help you relate to the different nodes used in this use case.
  10. Click Validate to save the configurations for the node.
  11. Similarly, create a node for the IVR Menu component and connect it to the Initiate Call node using the Answered trigger state. image alt text
  12. Click the IVR Menu node to open the Configurations tab.
  13. Configure the choices for the IVR Menu from the Configurations tab. In this example, we will select 1 and 2 as the allowed choices and enter a message to play to the user. image alt text
  14. Rename the IVR Menu node to Question_1, and then click Validate to save the configurations for the node.
  15. Similarly, create another IVR Menu node and rename it to Question_2.
  16. Connect Question_2 node to the Question_1 node using the 1 and 2 trigger states. image alt text
  17. Configure the choices for Question_2 from the Configurations tab. In this example, we will select 1 and 2 as the allowed choices, and enter a message to play to the user.
  18. Enter a message in the Speak Text field. The caller will be greeted with this message. Note: You can also configure the Language and Voice for the message. image alt text
  19. Click Validate to save the configurations of the node.
  20. Create a node for the Play Audio component.
  21. Rename the node to Acknowledge_Participation using the Configurations tab.
  22. Connect Acknowledge_Participation node to the Question_2 node using the 1 and 2 trigger states. image alt text
  23. Configure the Acknowledge_Participation node to speak a message to the customer. image alt text
  24. Click Validate to save the configurations for the node.
  25. Next, create a node for HTTP Request component and rename it to Handle_Callback.
  26. Connect the Handle_Callback node to the Acknowledge_Participation node using the Prompt Completed trigger state. image alt text
  27. Configure the **HTTP Request_1 **node to post the survey results to a website.
  28. In the Params tab, add answer1 and answer2 as Key.
  29. For answer1, enter two curly braces and select Question_1.digits.
  30. For answer2, enter two curly braces and select Question_2.digits. image alt text
  31. Click Validate to save the configurations of the node.
  32. After you complete the configurations, click Save.You can trigger your PHLO using the PHLO URL to test it out.

For more information on using PHLO, see the PHLO User Guide.

For more information on components and their variables, see the PHLO Components Library.