Skip to main content

Notifications

Copilot Studio - 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. 

Categories:
  • zun77 Profile Picture
    zun77 3 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,762 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

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard