Here are some ideas https://discord.com/channels/1...
# 🌎general
q
Here are some ideas https://discord.com/channels/1108396290624213082/1192114320927096872. For example, I used these (which doesn't make sense here, but in the original post):
Copy code
js
workflow.conversation = event.state.session.fullHistory

  const messageData = {
    date: currentDateTime,
    name: workflow.userName,
    conversation: workflow.conversation
  }
I used it like this, I created a workflow variable called conversation, then stored the full history there
Copy code
js
workflow.conversation = event.state.session.fullHistory
with setting up hooks first, Before Incoming Message
Copy code
js
if (!event.state.session.fullHistory) {
  event.state.session.fullHistory = ''
}
event.state.session.fullHistory = event.state.session.fullHistory + `user:  ${event.payload.text}` + '\n'
Before Outgoing Message
Copy code
js
if (!event.state.session.fullHistory) {
  event.state.session.fullHistory = ''
}
event.state.session.fullHistory = event.state.session.fullHistory + `bot: ${outgoingEvent.payload.text}` + '\n'