Powered by
Help Needed: Botpress Webchat Duplicating User's M...
# 🤝help
s
strong-pizza-67444
06/21/2025, 8:45 AM
Hi everyone, I'm hoping someone can help me with a strange webchat issue. When a user on our live site clicks a choice button, their selection appears twice in the chat window before the bot replies. The bot's answer appears correctly, but the user's input is always duplicated. Our Setup: Frontend: Botpress Cloud for the UI flow and user interaction. Backend: The Botpress flow makes an API call to a Vectorshift AI pipeline (using GPT-4o) to generate the actual response. Website: The bot is embedded on a WordPress site that uses the Divi theme. What We've Ruled Out: Duplicate Scripts: This was our first suspect. We have thoroughly checked the website's "View Page Source" and can confirm 100% that the Botpress embed script is only on the page once. The old script was found and deleted from a plugin. Bot Logic: The chatbot works perfectly inside the Botpress Studio emulator. The repeating issue only happens on the live website. This tells us the logic in both the Botpress flow and the Vectorshift pipeline is correct. Our Conclusion: Since the logic is fine and the script is only there once, we believe this is a client-side bug in the webchat script itself, or a conflict with the WordPress/Divi theme environment that causes the user's click event to be processed or rendered twice. My Question for the Community: Has anyone seen this specific UI bug before where a single click renders the user's message twice? Are there any known conflicts with the Botpress webchat and the Divi theme that could cause this? Is there a way to manually override or force a webchat configuration setting (like one for session handling) via a separate script on the page? Any ideas or suggestions would be hugely appreciated! I have screenshots of the flow, the code, and the UI issue ready to share. Thanks!
https://cdn.discordapp.com/attachments/1385903469222690876/1385903469986189422/Screenshot_2025-06-21_at_09.15.20.png?ex=6857c2b0&is=68567130&hm=d934ce398be5bc87ce0b4dfa9d9a49d6ab8edb74f9fe766e78446a1bf4bd879b&
https://cdn.discordapp.com/attachments/1385903469222690876/1385903470606815252/Screenshot_2025-06-21_at_09.17.23.png?ex=6857c2b0&is=68567130&hm=d6837bed88b7e1b438125fc692cac35158d65047e43dc8a0978f75c7661a54ac&
https://cdn.discordapp.com/attachments/1385903469222690876/1385903471286554644/Screenshot_2025-06-21_at_09.18.23.png?ex=6857c2b0&is=68567130&hm=0f41408079f7bd5a48e5cd6f7af3396441c6ebf8017f686e22294dfbe978a5c1&
q
quiet-oyster-7386
06/21/2025, 9:46 AM
I didn't face that exact issue, but the buttons seem broken in general, I also have an issue with them
https://discord.com/channels/1108396290624213082/1385627134042575091
s
strong-pizza-67444
06/21/2025, 10:22 AM
Yeah its so annoyinh, even when the user types a question without using buttons, it still repeats the question. I cant fix it at all.
strong-pizza-67444
06/22/2025, 3:00 PM
Can anyone help
@User
3
Views
Previous
Next