Im trying to set the slots of a conversation before starting the chat with the user such as their name and all.
Im able to post the slot name into the event tracker whoever the value comes out as null despite assigning it a value.
POST request doesn’t seem to work but PUT does
PUT api/conversations/23/events
[ { "event": "slot", "name": "name", "value": "hello", "timestamp": 1610316444.2579936981 } ]
GET api/conversations/23/
> { > "sender_id": "23", > "slots": { > "webstatus": null, > "name": null > }, > "latest_message": { > "intent": {}, > "entities": [], > "text": null, > "message_id": null, > "metadata": {} > }, > "latest_event_time": 1610486942.6921339035, > "followup_action": "action_session_start", > "paused": false, > "events": [ > { > "event": "slot", > "timestamp": 1610316443.2579936981, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1698 > }, > "name": "webstatus", > "value": "4", > "is_flagged": false > }, > { > "event": "slot", > "timestamp": 1610316444.2579936981, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1704 > }, > "name": "name", > "value": "hello", > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610483908.1122841835, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1694 > }, > "name": "action_session_start", > "policy": null, > "confidence": 1, > "is_flagged": false > }, > { > "event": "session_started", > "timestamp": 1610483908.1123051643, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1695 > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610483908.1123216152, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1696 > }, > "name": "action_listen", > "policy": null, > "confidence": null, > "is_flagged": false > }, > { > "event": "user", > "timestamp": 1610484373.6798844337, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1697 > }, > "text": "string", > "parse_data": { > "intent": {}, > "entities": [], > "text": "string", > "message_id": null, > "metadata": {} > }, > "input_channel": null, > "message_id": null, > "is_flagged": false > }, > { > "event": "restart", > "timestamp": 1610485146.07802701, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1699 > }, > "is_flagged": false > }, > { > "event": "restart", > "timestamp": 1610486176.1254849434, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1701 > }, > "is_flagged": false > }, > { > "event": "restart", > "timestamp": 1610486243.3223462105, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1703 > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486460.84983778, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1705 > }, > "name": "action_session_start", > "policy": null, > "confidence": 1, > "is_flagged": false > }, > { > "event": "session_started", > "timestamp": 1610486460.8498544693, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1706 > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486460.8498682976, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1707 > }, > "name": "action_listen", > "policy": null, > "confidence": null, > "is_flagged": false > }, > { > "event": "user", > "timestamp": 1610486460.8658306599, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1708 > }, > "text": "gracias adios", > "parse_data": { > "intent": { > "id": 7841129470544692689, > "name": "goodbye", > "confidence": 0.999471128 > }, > "entities": [], > "text": "gracias adios", > "message_id": "5831561f457f4dbdaf62dd9d34c172a7", > "metadata": {}, > "intent_ranking": [ > { > "id": 7841129470544692689, > "name": "goodbye", > "confidence": 0.999471128 > }, > { > "id": 2010416887127778773, > "name": "bot_challenge", > "confidence": 0.000401778 > }, > { > "id": 2601533521434552815, > "name": "inform", > "confidence": 0.0000689154 > }, > { > "id": -6690454956667738687, > "name": "city_of_origin", > "confidence": 0.0000293539 > }, > { > "id": -4511741830055856524, > "name": "cost", > "confidence": 0.0000282475 > }, > { > "id": 1623011401781399526, > "name": "confirm", > "confidence": 4.423e-7 > }, > { > "id": 5334800356958836535, > "name": "deny", > "confidence": 1.101e-7 > }, > { > "id": -3815293616266439634, > "name": "greet", > "confidence": 5.54e-8 > } > ], > "response_selector": { > "all_retrieval_intents": [], > "default": { > "response": { > "id": null, > "response_templates": null, > "confidence": 0, > "intent_response_key": null, > "template_name": "utter_None" > }, > "ranking": [] > } > } > }, > "input_channel": "rasa", > "message_id": "5831561f457f4dbdaf62dd9d34c172a7", > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486460.8734741211, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1709 > }, > "name": "utter_goodbye", > "policy": "policy_1_TEDPolicy", > "confidence": 0.5809454322, > "is_flagged": false > }, > { > "event": "bot", > "timestamp": 1610486460.8735158443, > "metadata": { > "template_name": "utter_goodbye", > "rasa_x_flagged": false, > "rasa_x_id": 1710 > }, > "text": "Muchas gracias por su atención y el nos estaremos comunicando con Ud.", > "data": { > "elements": null, > "quick_replies": null, > "buttons": null, > "attachment": null, > "image": null, > "custom": null > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486460.8810405731, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1711 > }, > "name": "action_listen", > "policy": "policy_1_TEDPolicy", > "confidence": 0.9844363332, > "is_flagged": false > }, > { > "event": "restart", > "timestamp": 1610486583.2911477089, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1713 > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486923.4537000656, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1715 > }, > "name": "action_session_start", > "policy": null, > "confidence": 1, > "is_flagged": false > }, > { > "event": "session_started", > "timestamp": 1610486923.4537160397, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1716 > }, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486923.4537301064, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1717 > }, > "name": "action_listen", > "policy": null, > "confidence": null, > "is_flagged": false > }, > { > "event": "action", > "timestamp": 1610486923.4540538788, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1718 > }, > "name": "utter_greet", > "policy": null, > "confidence": 0, > "is_flagged": false > }, > { > "event": "bot", > "timestamp": 1610486923.4541065693, > "metadata": { > "template_name": "utter_greet", > "rasa_x_flagged": false, > "rasa_x_id": 1719 > }, > "text": "Muy bien profesor {name}, mi nombre es Sari Agente de OZCE Seguros, le llamo porque el Profesor Juan Manuel Ríos Ortega me pidió que le llamara, para explicarle los grandes beneficios de contar con un seguro de Gastos Médicos Mayores, que cubra el covid y otros gastos médicos más, podría hacerle unas preguntas?", > "data": { > "elements": null, > "quick_replies": null, > "buttons": null, > "attachment": null, > "image": null, > "custom": null > }, > "is_flagged": false > }, > { > "event": "restart", > "timestamp": 1610486942.6921339035, > "metadata": { > "rasa_x_flagged": false, > "rasa_x_id": 1720 > }, > "is_flagged": false > } > ], > "latest_input_channel": "rasa", > "active_loop": {}, > "latest_action": {}, > "latest_action_name": null > }