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.650 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/

 

 

View solution in original post

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Users online (3,216)