This article describes how to test a bot flow that you create with Genesys Dialog Engine Bot Flows. The steps below include testing for voice bots, and also chat and message bots.

Test a bot in a call flow

  1. Create and publish a new bot flow.
  2. Create a new inbound call flow or open an existing one.
  3. Under Settings, click Supported Languages.
  4. Make sure that the text-to-speech engine for the flow is set to a text-to-speech engine other than Genesys TTS.
  5. Add a reusable task
  6. Click More and from the menu that appears, click Set this as the starting task.
  7. From the Architect toolbox, drag a Call Bot Flow action into the task editor.
  8. Configure the Call Bot Flow action:
    1. Add an identifiable name for the action.
    2. Click the Bot Flow list and select the appropriate bot flow.
    3. Under Execution Results, assign variables to the Exit Reason and Intent actions. For example, Task.ExitReason and Task.Intent.
  9. From the Architect toolbox, click the Audio category and drag a Play Audio action below the Call Bot Flow action.
  10. Configure the Play Audio action with an expression to send output the variables. For example, in the original inbound call flow, the exit reason is ‘” + Task.ExitReason + “‘ and intent is ‘” + Task.Intent + “‘”
  11. Publish the inbound call flow.
  12. In Genesys Cloud, click Calls .
  13. Click Dialpad and enter the name of the inbound call flow.
  14. Press Enter.

Test a bot in a chat or message flow

  1. Create and publish a new bot flow.
  2. Create a new inbound chat or message flow or open an existing one.
  3. From the Architect toolbox, drag a Call Bot Flow action into the state editor.
  4. Configure the Call Bot Flow action:
    1. Add an identifiable name for the action.
    2. Click the Bot Flow list and select the appropriate bot flow.
    3. Under Execution Results, assign variables to the Exit Reason and Intent actions. For example, Task.ExitReason and Task.Intent.
  5.  From the Architect toolbox, drag a Send Response action below the Call Bot Flow action.
  6. Configure the Send Response action with an expression to send output the variables. For example, in the original inbound call flow, the exit reason is ‘” + Task.ExitReason + “‘ and intent is ‘” + Task.Intent + “‘”.
  7. Publish the chat or message flow.
  8. Create a queue, or select an existing one.
  9. Create a widget.
  10. Open the Developer Tools Web Chat according to your preferred region.
  11. From the Deployment list, select your widget.
  12. From the Queues list, select the appropriate queue.
  13. Click Start Chat.