cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
castillolj
Frequent Visitor

Ask for the location of the bot user to show the nearest branches

Hi, 

I need to make a bot that allows me to ask the user for his location and with it (latitude & longitude) I can send him a chat indicating the closest places he can visit.

Is it possible to do this in PVA? Is there an example that can guide me to achieve this?

 

I appreciate in advance any support you can give me in this regard. Either using 'skills' or 'javascript'. Any example I will appreciate.

Thanks 

 

Leonardo. 

1 ACCEPTED SOLUTION

Accepted Solutions

(If I am miss understanding your question my apologies) 

 

If you have a database of your branches with URLs their lat/long (I would also add city state) then build a Flow that passes those parameters to a query you can return the URL as a link to the chatbot to show that location. 

If you are using a custom canvas like a Power Apps you could use a geo aware control and pass this information to the chatbot and not even need to ask for their location. 

 

Some links to get you started: 

https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow

https://flow.microsoft.com/en-us/blog/powerquery-flow/

 

 

View solution in original post

5 REPLIES 5
renatoromao
Super User
Super User

Hi @castillolj ,

 

Today, unfortunately, not yet.

You can suggest an idea here: https://aka.ms/pva/community/ideas

 

But you can send a question to the user and the users send the location with the text. Send the location using the Power Automate parameter and your workflow can use the Markdown to customize the message to send to the user.

Maybe will help you.


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.760 students) : English | Português
AkashJain
Community Support
Community Support

Hi Partner

 

This is not possible at the moment, You can submit an idea here: https://aka.ms/pva/community/ideas

Thanks for the answer, I hope you have an alternative soon, as it is something that is requested a lot (70% of the projects).

Thanks for the answer !. I will try to test your idea

(If I am miss understanding your question my apologies) 

 

If you have a database of your branches with URLs their lat/long (I would also add city state) then build a Flow that passes those parameters to a query you can return the URL as a link to the chatbot to show that location. 

If you are using a custom canvas like a Power Apps you could use a geo aware control and pass this information to the chatbot and not even need to ask for their location. 

 

Some links to get you started: 

https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow

https://flow.microsoft.com/en-us/blog/powerquery-flow/

 

 

Helpful resources

Announcements
Power Virtual Agents News & Announcements

Power Virtual Agents News & Announcements

Keep up to date with current events and community announcements in the Power Virtual Agents community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Virtual Agents Community Blog

Power Virtual Agents Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,733)