下载的开放源 的机器人自由社会版 和安装机器人自由于你自己的服务器
Artificial Intelligence : remember conversation and the "chatter" from web interface

RE: remember conversation and the "chatter" from web interface

通过 admin 发布 Jan 6, 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"


Id: 31323440
发布: Jan 6, 15:01
答复: 0
的风景: 830, 今天: 1, 周: 1, 一个月: 59
我敢肯定
标志后的进攻,或者在违反规则网站