Hello @Tanja!
I am still confused by where is the conversation_id gets set. I created a simple websockets powered chat front end that hard codes the session_id and conversation_id for testing:
socket.on('connect', function(msg) {
socket.emit('session_request',
({'session_id': 12345, 'conversation_id' : 67890 })
);
});
the credentials.yml looks like this:
socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true
After chatting through the frontend(websockets), I wanted to retrieve a conversations tracker:
http://localhost:5005/conversations/67890/tracker
The response is this:
{
"sender_id": "67890",
"slots": {},
"latest_message": {
"intent": {},
"entities": [],
"text": null,
"message_id": null,
"metadata": null
},
"latest_event_time": 1571671551.5727872849,
"followup_action": null,
"paused": false,
"events": [
{
"event": "action",
"timestamp": 1571671551.5727872849,
"name": "action_listen",
"policy": null,
"confidence": null
}
],
"latest_input_channel": null,
"active_form": {},
"latest_action_name": "action_listen"
}
Why does the conversation_id becomes the sender_id?
If I change the get to use the sender_id instead of the converstion_id: http://localhost:5005/conversations/12345/tracker I actually get the tracker that I am looking for: Is sender_id and conversation_id the same thing?
{
"sender_id": "12345",
"slots": {},
"latest_message": {
"intent": {
"name": "mood_unhappy",
"confidence": 0.9948384166
},
"entities": [],
"intent_ranking": [
.....
],
"text": "sad"
},
"latest_event_time": 1571671750.9962654114,
"followup_action": null,
"paused": false,
"events": [
{
"event": "action",
"timestamp": 1571671396.7521972656,
"name": "action_listen",
"policy": null,
"confidence": null
},
{
"event": "user",
"timestamp": 1571671396.8155121803,
"text": "Hello",
"parse_data": {
"intent": {
"name": "greet",
"confidence": 0.9864999652
},
"entities": [],
"intent_ranking": [
.....
],
"text": "Hello"
},
"input_channel": "socketio",
"message_id": "269b550cc38743f9997f4c60cb11acbe",
"metadata": null
},
{
"event": "action",
"timestamp": 1571671396.9251480103,
"name": "utter_greet",
"policy": "policy_0_MemoizationPolicy",
"confidence": 1.0
},
{
"event": "bot",
"timestamp": 1571671396.9251606464,
"text": "Hey! How are you?",
"data": {
"elements": null,
"quick_replies": null,
"buttons": null,
"attachment": null,
"image": null,
"custom": null
},
"metadata": {}
},
{
"event": "action",
"timestamp": 1571671396.9300782681,
"name": "action_listen",
"policy": "policy_0_MemoizationPolicy",
"confidence": 1.0
},
{
"event": "user",
"timestamp": 1571671750.4503774643,
"text": "sad",
"parse_data": {
"intent": {
"name": "mood_unhappy",
"confidence": 0.9948384166
},
"entities": [],
"intent_ranking": [
......
],
"text": "sad"
},
"input_channel": "socketio",
"message_id": "474b785331084d21a55248d44e526d97",
"metadata": null
},
{
"event": "action",
"timestamp": 1571671750.9833481312,
"name": "action_joke",
"policy": "policy_0_MemoizationPolicy",
"confidence": 1.0
},
{
"event": "bot",
"timestamp": 1571671750.9833676815,
"text": "Chuck Norris has never been accused of murder because his roundhouse kicks are recognized as "acts of God."",
"data": {
"elements": null,
"quick_replies": null,
"buttons": null,
"attachment": null,
"image": null,
"custom": null
},
"metadata": {}
},
{
"event": "action",
"timestamp": 1571671750.9904024601,
"name": "utter_did_that_help",
"policy": "policy_0_MemoizationPolicy",
"confidence": 1.0
},
{
"event": "bot",
"timestamp": 1571671750.9904193878,
"text": "Did that help you?",
"data": {
"elements": null,
"quick_replies": null,
"buttons": null,
"attachment": null,
"image": null,
"custom": null
},
"metadata": {}
},
{
"event": "action",
"timestamp": 1571671750.9962654114,
"name": "action_listen",
"policy": "policy_0_MemoizationPolicy",
"confidence": 1.0
}
],
"latest_input_channel": "socketio",
"active_form": {},
"latest_action_name": "action_listen"
}