https://discord.gg/botpress logo
try this: ```js window.botpressWebChat.sendPayloa...
# 💻developers
a
try this:
Copy code
js
 window.botpressWebChat.sendPayload({ type:'text', text:"This is what the user sees", payload:{
          url: window.location.href;
        }
        })
      });
And then in your bot, add an execute code card with
workflow.url = event.payload.payload.url
28 Views