We’d like to include a 3rd party bot in our Discourse site to help new users understand what our community is all about before they join it and pay a membership fee (via the subscription plugin). We’d like to trigger this bot from posts and CTAs around the site via a link / button click and start a predefined flow in the bot.
The Bot (Here’s an example) can be integrated via an iframe or via this script before the closing body-tag:
<script src="https://widget.flowxo.com/embed.js" data-fxo-widget="eyJ0aGVtZSI6IiM2N2MxOGUiLCJ3ZWIiOnsiYm90SWQiOiI1ZjYwNmFmZGJhYmU5NjAwNGIwODc4NTMiLCJ0aGVtZSI6IiM2N2MxOGUiLCJsYWJlbCI6IkV4YW1wbGVib3QifX0=" async defer></script>
So I (non-coder ) built a theme component with the code above and an additional script that triggers a certain flow when a link with a certain ID is clicked:
This works in theory, but, unfortunately, the ID is automatically removed from a link in a Discourse post. Is there a way to achieve this? Thanks for your help!