Legacy Dev Forum Posts

 View Only

Sign Up

Whatsapp location in Digital bot

  • 1.  Whatsapp location in Digital bot

    Posted 06-05-2025 19:03

    davidlopez | 2023-10-18 13:40:59 UTC | #1

    Hello all.

    We are using a Digital bot for handling inbound messaging for whatsapp.

    In one step, we would like the customer to share the location, and we tried to use an slot accepting .* to catch the URL, but in the slot variable only puts

    http

    Nothing more.

    Anyone has catched the maps location in a Whatsapp bot?

    Thanks


    Zino_Onokpise | 2023-10-23 16:09:39 UTC | #2

    Hi davidlopez,

    Just to clarify, you want the end user to say their location, and then capture it? or are you trying to do something automatic with whatsapp?


    davidlopez | 2023-10-24 04:15:22 UTC | #3

    Hello, Zino.

    At one moment, in the Genesys Digital Bot, we want the user to share the location. For this we use a slot, and we try to capture the link.

    The problem is that when the user shares the link, the text in the chat is (for example)

    Location shared: https://maps.google.com/maps?q=32.5490279,-0.76763

    And the text captured by the slot is:

    https://maps.google.com/maps?q=325490279066763

    The slot doesn't have 32.5490279,-0.76763 as coordinates, it has 325490279076763 (the comma and the - have been removed).

    The slot is accepting .*, and by the results in the regex checker it should work.

    Thanks.


    Javed_Bhayla | 2023-10-31 19:23:25 UTC | #4

    Hey David, Apologies for the late response. There is a bug currently, I have created a ticket.

    To fix the issue, you can use builtin:any slot type instead and that should keep the co-ordinates in the slot.

    Javed


    system | 2023-12-01 19:23:52 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 22613