Skip to main content

Notifications

Power Platform Community / Forums / General / Ask for the location o...
General
Answered

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

Posted on by 11

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. 

  • zun77 Profile Picture
    zun77 2 on at
    Re: Ask for the location of the bot user to show the nearest branches

    .

  • Verified answer
    chass Profile Picture
    chass on at
    Re: Ask for the location of the bot user to show the nearest branches

    (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/

     

     

  • castillolj Profile Picture
    castillolj 11 on at
    Re: Ask for the location of the bot user to show the nearest branches

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

  • castillolj Profile Picture
    castillolj 11 on at
    Re: Ask for the location of the bot user to show the nearest branches

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

  • Re: Ask for the location of the bot user to show the nearest branches

    Hi Partner

     

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

  • renatoromao Profile Picture
    renatoromao 6,459 on at
    Re: Ask for the location of the bot user to show the nearest branches

    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.

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,990

#3
Expiscornovus Profile Picture

Expiscornovus 1,700