Test a Genesys Dialog Engine Bot Flow
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
- Create and publish a new bot flow.
- Create a new inbound call flow or open an existing one.
- Under Settings, click Supported Languages.
- Make sure that the text-to-speech engine for the flow is set to a text-to-speech engine other than Genesys TTS.
- Add a reusable task.
- Click More and from the menu that appears, click Set this as the starting task.
- From the Architect toolbox, drag a Call Bot Flow action into the task editor.
- Configure the Call Bot Flow action:
- Add an identifiable name for the action.
- Click the Bot Flow list and select the appropriate bot flow.
- Under Execution Results, assign variables to the Exit Reason and Intent actions. For example, Task.ExitReason and Task.Intent.
- From the Architect toolbox, click the Audio category and drag a Play Audio action below the Call Bot Flow action.
- 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 + “‘”
- Publish the inbound call flow.
- In Genesys Cloud, click Calls .
- Click Dialpad and enter the name of the inbound call flow.
- Press Enter.
Test a bot in a chat or message flow
- Create and publish a new bot flow.
- Create a new inbound chat or message flow or open an existing one.
- From the Architect toolbox, drag a Call Bot Flow action into the state editor.
- Configure the Call Bot Flow action:
- Add an identifiable name for the action.
- Click the Bot Flow list and select the appropriate bot flow.
- Under Execution Results, assign variables to the Exit Reason and Intent actions. For example, Task.ExitReason and Task.Intent.
- From the Architect toolbox, drag a Send Response action below the Call Bot Flow action.
- 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 + “‘”.
- Publish the chat or message flow.
- Create a queue, or select an existing one.
- Create a widget.
- Open the Developer Tools Web Chat according to your preferred region.
- From the Deployment list, select your widget.
- From the Queues list, select the appropriate queue.
- Click Start Chat.