The following keys are essential to call the methods for displaying the conversation AI in your app.
orgId
widgetId
domain
The values of these keys appear under the Code Snippet section on the setup page of the ASAP help widget in Zoho Desk.
ZohoGC.show(activity, orgId, widgetId, domain)
ZohoGC.show(activity, orgId, widgetId, domain)
Also add the generated map API key.
The search option enables the user to search for a location and share it. This option will be displayed by default. If not required, follow the below method in your preferred language to hide it:
Kotlin
ZConfigUtil.hideLocationSearch = true
Java
ZConfigUtil.hideLocationSearch = true
These variables are dynamically retrieved during the conversation. These variables are org-specific and accessible across flows.
You can perform the following actions with the session variable:
val sessionVariableMap = HashMap<String, Any>()
sessionVariableMap.apply
{
this["name"] = "exampleName"
this["value"] = "exampleValue"
}
val sessionVariableList = ArrayList<HashMap<String, Any>>()
sessionVariableList.add(sessionVariableMap)
ZohoGC.setSessionVariables(widgetId,sessionVariableList)
HashMap<String, Object> sessionVariableMap= new HashMap<>();
sessionVariableMap.put("name","exampleName");
sessionVariableMap.put("value","exampleValue");
ArrayList<HashMap<String,Object>> sessionVariableList= new
ArrayList<>();
sessionVariableList.add(sessionVariableMap);
ZohoGC.setSessionVariables(widgetId,sessionVariableList);
val sessionVariableMap = HashMap<String, Any>()
sessionVariableMap.apply
{
this["name"] = "exampleName"
this["value"] = "exampleValue"
}
val sessionVariableList = ArrayList<HashMap<String, Any>>()
sessionVariableList.add(sessionVariableMap)
ZohoGC.updateSessionVariables(context,orgId, widgetId, domain,sessionVariableList)
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.