I’m working on a team support chatbot, which will reside in Slack. My objective is to have it store historical chats for recall and context in its later replies.
When I use the ‘add or update multiple records’ Data Store, the most recent data gets added, but the data that came before that gets updated or erased.
How can I store all historical data in the Data Store for future interactions?
Hi @vunguyenhung, thank you very much. I know what you mean, however, I’m unclear on how to format the postfix. I’ve attached an image of my poor attempt. Would you be able to provide some clarity on how it should be formatted?
I’m using the timestamp variable (I believe): {{steps.response.$return_value.choices[0].text}}
And I’d like to keep the message ID reference: {{steps.trigger.event.client_msg_id}}
And of course the original message: {{steps.trigger.event.text}}
And response: {{steps.response.$return_value.choices[0].text}}
I added an expression in the Data prop containing the Node.js code to construct an object with the single key is the timestamp, the value is another object with the single message field that referenced from the trigger.