Jump to content


Accessing further Chat information from Chatbot


2 replies to this topic

#1 tberen

    Member

  • Members
  • PipPip
  • 17 posts

Posted 25 July 2017 - 06:37 AM

Hi there,

I'm in a experiment with the chatbot api and the livezilla api.

The chatbot only gives a visitor id.

Now i can get all open chats via the livezilla api. Now i have to use the visitor id, to search the related chat.

Now my question is: is there a better way to get the chat id within the chatbot directly so that i can request easier more data if necessary?

kind regards

#2 Patrick Keil

    Administrator

  • Administrators
  • 3303 posts
  • LocationSingen, Germany

Posted 25 July 2017 - 08:34 AM

Hi,

Which chat ids do you like to have? The chat id of the active bot chat? Or all related chat ids?

#3 tberen

    Member

  • Members
  • PipPip
  • 17 posts

Posted 26 July 2017 - 12:14 PM

The Chatbot is a part of our faq system. Informations are correlated to each other, so i have to identify the chat with the user session in our faq. the best way is to check the ip-address cause the user session is bound to this.

yesterday i found a simple way to do this by adding following line on lin 659 in objects.global.users.inc.php:
$_apiREQobject["VisitorIp"] = $_visitor->IP; // not original





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users