Fallback Function

Fallback Function


When a bot receives an input message that it couldn't understand, it would reply with a "Sorry, I can't understand" message. If you wish to customize this default response message to give a reply of your own, you can customize that with Fallback function.

Enabling Fallback Function

  1. In a bot's detail page, under the ACTIONS section, click on  ellipsis icon beside the ACTIONS section's filter.

  2. Click the Enable Fallback Function option. A pop-up window will be displayed for confirmation. Click OK.
  3. With this, Fallback function will be enabled and you will be redirected to the Fallback Function page.
  4. Save the function after constructing the required response.
Options to modify and disable Fallback function will also be available under the ACTIONS sectionunder the  ellipsis icon, once the Fallback Function is enabled.

Any changes made to the Fallback function will reflect in the bot after the bot is published.

Invocation point

Fallback function is executed when the bot is unable to understand a user input message.

Input arguments

In addition to the system defined input arguments, the following input arguments are also available for Fallback Function.

Argument
Deluge data type
Description
userInput
String
Latest reply from user.

Return value

Fallback function should return a map whose structure is similar to the return map of the Action Execution function.
    • Related Articles

    • Trigger Function

      Zoho Survey is integrated with Deluge, our online scripting language, which can help you add functions to automatically perform actions when responses are submitted. Use Deluge and APIs to create connections and push data to third-party services or ...
    • Insert a function

      To insert a formula 1. Click Insert > Function. 2. Alternatively, you can select a cell, click on the Function icon on the side panel, and choose the function you'd like to add in the selected cell.3. Enter the addresses of the required cells to be ...
    • Context handler function

      Context handler function is used to control the conversational flow of an action. You can change the order in which the params are prompted to the users in the runtime. You can also skip some params, do custom validations of the param values and ask ...
    • Custom Function: Create_Job

      This custom function can be used to create a new job in any layout. It can also be configured to carry forward necessary field values from the former job to the latter.   Business Scenario Helen is the head of Procurement Management in her ...
    • 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 ...