Chat conversation history
# 🤝help
n
Is anything changed? I am using webhooks to get the full history of conversation and WhatsApp number and it was working fine. In the last few days it is broken and the chat history is empty. Before Incoming Message Hook: if (!event.state.session.fullHistory) { event.state.session.fullHistory = '' } event.state.session.fullHistory = event.state.session.fullHistory + User : ${event.payload.text} + '\n\n' *Before Outgoing message Hook: * if (!event.state.session.fullHistory) { event.state.session.fullHistory = ''; } event.state.session.fullHistory = event.state.session.fullHistory + CAI : ${outgoingEvent.payload.text} + '\n' if (!event.state.session.channel) { event.state.session.channel = ''; } event.state.session.channel = event.integration; if (!event.state.session.whatsappNumber) { event.state.session.whatsappNumber = ''; } event.state.session.whatsappNumber = event.tags.conversation['whatsapp:userPhone'];
The chat transcript workflow executes after conversation ends
8 Views