Configure ChatBot
To configure chatbot in your app, use the below code snippet:
NotifyVisitorsApi.getInstance(activityContext).startChatBot(screenName, new OnNotifyBotClickListener() {
@Override
public void onInAppRedirection(JSONObject data) {
//do your task here
}
});
NotifyVisitorsApi.getInstance(activityContext).startChatBot(screenName, object : OnNotifyBotClickListener {
override fun onInAppRedirection(p0: JSONObject?) {
//do your task here
}
})
In the above function, you need to pass an attribute screenName
, which you have set in NotifyVisitors' panel.
Warning
screenNameparameter is Mandatory to run ChatBot.
Updated 3 months ago