Back to All

JSON API interaction not sending updated attribute

(Bot ID = 63806.) My bot lets a user write a message, optionally overwrite it with a new message, and then send.

There's a JSON API interaction called "Send?" that tells the user what their message is and gives them options to "Send" or "Write new message". The endpoint associated with this interaction receives the "message" attribute. For the original message, the interaction presents the correct text.

If the user selects "Write new message", they go through two more interactions that let them overwrite the original message with a new one, the bot overwriting the old "message" attribute. The user then returns to the "Send?" interaction, which should receive the (overwritten) "message" attribute. Strangely though, it doesn't. When it presents the new message to the user, the text is not updated (it's the same as the original message).

This is an issue specific to "Send?" being a JSON API interaction. I tested this by creating a Bot Statement interaction called "send test" and rewiring the bot to use that instead of "Send?". The "send test" interaction does exactly the same thing -- the only difference is the type of interaction -- but it correctly presents the new message, not the original one.

How can I fix this? Is this a bug in Snatchbot maybe?