I am using the appends event to tracker endpoint to remove the previous message sent. The body of the call is
[
{
"event": "rewind"
},
{
"event": "action",
"name": "action_listen"
}
]
This works most of the time, however, there is a weird case I have encountered:
- hello message is sent to the bot
- bot enters into a form (active loop)
- bot utters greeting message and user affirms
- bot asks a question about user age, the user responds
- I call the endpoint to update the tracker with the rewind event
- The weird behavior: the bot rewinds two messages, so the last message sent in the tracker is the greeting message instead of the user age message.
However, if I proceed with the conversation and try to rewind later in the form, it will work properly and only go back one message.
Does anyone have any insight to this?