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.
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.
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.
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.
Last Updated 2024-06-11 18:57:28 +0530 +0530
Yes
No
Send your feedback to us