Lo sapevate Bot Libre offre anche la connessione ospitato il forum per il tuo sito web o un'applicazione mobile?
Artificial Intelligence

remember conversation and the "chatter" from web interface

da cliffh postato Jan 5 2020, 16:27

is this doable?

the chatter would not be a bot libre user

the web interface would identify the chatter to the bot

 


by admin posted Jan 6 2020, 15:01

The conversation user is stored on the conversation object in the bot's database as the relationship #speaker.
If the user is not connected this would normally be stored as anonymous, but you can also pass the user name and optional email address through the web API.

The chat API takes a message object that has an info variable that you can set.

var request = new XMLHttpRequest();
request.open('POST', 'https://www.botlibre.com/rest/api/chat', true);
request.setRequestHeader('Content-Type', 'application/xml');
var xml = "<chat application='12345' instance='12345' info='John Doe [email protected]'><message>hello world</message></chat>";
request.send(xml);

It will show in the chat log as "info: user email"


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2620, today: 1, week: 3, month: 13

Id: 31309959
Postato: Jan 5 2020, 16:27
Risposte: 1
Vista: 2534, oggi: 1, settimana: 5, mese: 16
0 0 0.0/5