Create a new node per user/chat whenever a new chat is started
Store chat log in the node: should be a JSON object with userid, message and date/time stamp:
[{
"user": "/system/users/ase",
"dateTime": "2018-03-18T20:15:13",
"text": "Hello"
},
{
"user": "", // empty means message from the bot
"dateTime": "2018-03-18T20:15:15",
"text": "Hi, how can I help you?"
}]
* Fetch and render existing log (if it exists) whenever a new chat starts
[{ "user": "/system/users/ase", "dateTime": "2018-03-18T20:15:13", "text": "Hello" }, { "user": "", // empty means message from the bot "dateTime": "2018-03-18T20:15:15", "text": "Hi, how can I help you?" }]