https://discord.gg/botpress logo
How should I trigger a deployed webchat component ...
# 🤝help
h
I deployed a custom webchat component via the webchat cli (build + deploy succeeded, PAT authenticated, bot selected). In my bot flow, I'm using the Send Custom Event card to send a JSON payload with the component name and props. The event fires but nothing renders in the webchat. How does a deployed webchat component actually get triggered in a conversation? Is Send Custom Event the right card, or is there a different mechanism?
l
Here are some useful links: https://botpress.com/docs/webchat/interact/listen-to-events https://botpress.com/docs/webchat/interact/send-custom-events/from-webchat Yes, Send Custom Event is the right card to make a deployed custom Webchat component react. The component renders when it receives the customEvent you send from the flow. If nothing appears, verify the listener code, component name, and that the event payload is correctly formatted and reaches the client.
h
thank you!
2 Views