Test an Action

To ensure that your action doesn’t have any functional issues, you have to test your action before deploying it to production. Additionally, you can also verify the user experience and ensure that it works as expected.

To test your action before deploying it, you can click on Test this bot to use the sample chat window on the right side panel of the Edit Execution Functions page. This sample chat window would look similar to the actual chat window of your bot in the production.

test-the-bot

Using this, you can test only the current action. If the given invoking sentence is irrelevant to the current action, the bot would not be able to understand it and would reply with a message that it doesn’t understand your message.

chat-window1-updated

Note: You can only test the current action in this window, and not all configured actions of your bot.

Override Session Data

If your functions use the sessionData argument in its business logic, then you can test your action with different sets of mock session data using the Override Session Data option available in the top-right corner of the chat window. For example, if you have written any code logic specific to the web client, you can set the apt session data values and mock how the logic would work, if the bot is being accessed from an actual web client in production.

override-session-data1

Once you provide apt values to the attributes and upon saving, the configured values will be passed to the sessionData argument of the next conversation.

override-session-data2

Last Updated 2024-06-11 18:57:28 +0530 +0530

ON THIS PAGE