https://discord.gg/botpress logo
How to get the current URL from Botpress ?
# 🤝help
l
I would like to capture and store the current page URL in a variable, then parse it to extract the gclid and fbclid parameters. However, I haven’t been able to get it working. If anyone has a solution, I’d greatly appreciate your help. Thank you!
l
Thank you for your reply. In the example you give, you know the full URL with the fbclid and gclid, whereas I don't know the fbclid and gclid, which is why I would like to know if I can retrieve the URL of my current page from Botpress
I tried to reuse your code and adapt it to retrieve the URL of the current page, but I'm having the same problems. My workflow won't start and I'm getting an error message. I get the impression that I don't have access to the page URL from Botpress. Am I wrong @loud-crowd-60573 ? https://cdn.discordapp.com/attachments/1418586663029837884/1419673333074497596/image.png?ex=68d29d52&is=68d14bd2&hm=418f243d0753517fd3e9a8e330edcefdcc7860e01fb8d106c436f84641a59520&
The code works perfectly in the browser console but not in my chatbot
w
Hi @User , look at this my tutorial, is write for webchat v2 works with v3 too. https://discord.com/channels/1108396290624213082/1294770912155013163/1294770912155013163
2 Views