For the web bot, looking for ideas on how I can capture the users URL to set/use as an attribute
Capture user URL
nathan
(Nathan Stults)
#2
The users URL is already automatically captured for web bots as an attribute on the flow trigger, using the key “hostUrl”
nathan
(Nathan Stults)
#4
Yes, if your bot is embedded in a webpage using the snipped technique (i.e. not the hosted bot page in an iframe) then the URL in hostUrl will be the page on which the bot script is hosted, not the bot URL itself.
nathan
(Nathan Stults)
#5
My example probably wasn’t the best to use because the sample was accessed via the hosted bot page, but that was just a coincidence in the screenshot I took.
Izzy
(Izzy)
#6
YES! The script code version (not iFrame) of the web widget does capture the URL. exactly what I needed.