performCustomAction()

The performCustomAction() API allows you to perform a custom action that can be used to initiate a chatbot (Zobot/Answer bot) or triggers if configured. This API will notify the user about the chat and supports time-based or delayed execution based on trigger configurations.

Note: 

  • This API is supported from version 8.2.0-beta01.
  • Use this API, when performing the "Invoke JS API" option in triggers.
  • Ideal for initiating actions without immediately starting a chat session.
  • If you want to start a chat immediately (without delay), use the ZohoSalesIQ.Chat.startWithTrigger() API instead.

Parameter:

  • actionName (String) – The name of the custom action to be performed. 

 

Syntax

Copiedvoid performCustomAction(String actionName)

Example

CopiedZohoSalesIQ.Visitor.performCustomAction("custom_action_name");
CopiedZohoSalesIQ.Visitor.performCustomAction("custom_action_name")