SalesIQ Scripts Bot Handlers

In the SalesIQ scripts bot builder, there are four handlers where you will begin to code called, trigger, message, context, and failure handler. This flow chart demonstrates how the SalesIQ Script works:

                  ‚Äč

The flow of these handlers

  • A visitor lands on the website. When this visitor matches the trigger criteria set while setting up the Zobot, the bot triggers a message (trigger handler executes). 
  • When the visitor doesn't match the triggers set and when they proceed to initiate a chat reactively with the Zobot, the message handler executes.
  • It checks if the context in the message exists and if it does, it collects all the inputs that it can find in the message. Otherwise, it looks for another message that matches the existing context.
  • Once the message handler is successfully executed, it collects all the responses from the visitors and gives them to the context handler executes to perform the desired action. 

Note: 

  • Each script handler/function will have an execution timeout of 90 seconds
  • Each API invocation from handlers using the invoke URL task should not exceed 40 seconds to be completed
  • If there is any issue in the execution or response of one of the handlers, as a fallback bot will forward the chats to the department operators. 

Customize the Bot using Handlers

These handlers in SalesIQ Scripts are used to customize your bots.