https://discord.gg/botpress logo
#🤝help
Collecting and accessing user location
# 🤝help
n

nice-baker-72574

05/29/2023, 6:24 PM
So I'm collecting the user's location in a Capture Info field. Then I want AI to respond with an interesting fact about the location. When I test it, I get a response that it's not a valid location.
a

acceptable-gold-88171

05/29/2023, 7:15 PM
Hi @nice-baker-72574 Thanks for reporting this too. I think this will be helpful for others too. 🙂 When using "Full Address" in Capture Information, you can access the parts of the location like so : @location.country @location.city @location.street @location.zip @location.number
n

nice-baker-72574

05/29/2023, 11:17 PM
got it to work. thanks
f

famous-jewelry-85388

05/30/2023, 9:46 PM
In general, you can always check the Debugger to see how data are saved in the variable: So in this case it is UserName.first to retrieve my first name
90 Views