loadConversation with Trigger Action on React App
# 🤝help
h
Hi, I'm embedded the chatbot into react app follow this link https://botpress.com/docs/developers/webchat/embedding-webchat-options/react-app/ When I tried to load the conversation with this window.botpressWebChat.sendEvent({ type: 'loadConversation', conversationId: 'conv_01HNYXPRHYDFSAHGH8B6DYXMJY' }), the 'conv_01HNYXPRHYDFSAHGH8B6DYXMJY' was not loaded. Can anyone tell me what/how is the proper ways to load the old conversation, or I'm doing something wrong ? Thank you 🙏🏼
f
Hey This is how its usually done window.botpressWebChat.onEvent( function (event) { if (event.type === 'LIFECYCLE.LOADED') { window.botpressWebChat.sendEvent({ type: 'show' }) } }, ['LIFECYCLE.LOADED'] ) Not sure if it works on a React app
2 Views