Testing an Action

Testing an Action


To ensure that your action doesn't have any functional issues, you may have to test your action before deploying it to production. In addition to that, you can also verify the user experience and ensure that it works as you have configured.

To test your action before deploying it, use the sample chat window on the right-side panel of the Edit 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 wouldn't be able to understand it and would reply the same. Even the other actions of this skill will not work here.


Override Session Data 

If your functions use the sessionData argument in its logic, then you can test your action with different sets of mock session data using the Override Session Data option. For instance, if you have written any code logic specific to the mobile 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 mobile client in production.

Click on the Override Session Data option and provide apt values to the attributes. Upon saving, the configured values will be passed to the sessionData argument from the next conversation.


    • Related Articles

    • Defining an Action

      Adding a new Action To add a new action to a bot, follow the steps as given below.  In the bot's detail page, under the ACTIONS tab, click the + ADD ACTION option. The Create New Action page appears. Give a meaningful name for the action. Based on ...
    • Action Followups

      Action Followups defines what the bot should recommend the user after executing an action, in order to engage the user further in conversation. The bot can display a list of suggestions or ask if it can invoke another action, that might be ...
    • Action Log Viewer

      Action log viewer enables you to view and keep track of actions carried out in your organisation for auditing and administration purposes. You can generate the logs for a specified time and range by applying filter parameters such as module, ...
    • Action Log Viewer

      The action log viewer allows you to view and keep track of actions carried out in your organization for auditing and administration purposes. You can generate the logs for a specified time and range by applying filter parameters such as module, ...
    • Action Execution function

      The Execution function is the endpoint to an action execution. It defines the fulfillment of an action. This does the actual execution of the action and gives a final success (or failure) message to the user, as a result of the completion of an ...