I was able to connect my rasa bot to a whatsapp business account using twilio. I am now trying to get location co-ordinates from the location the user sends to my bot in whatsapp I am facing difficulty in understanding how to write the code in actions for this. Any help would be appreciated. Here is the twilio link = Rich Messaging Features in the Twilio API for WhatsApp - Twilio
my action;
class GetLatLon(Action): def name(self) -> Text: return “get_lat_lon”
def run(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text,Any]]:
resp = MessagingResponse()
msg = resp.message()
lat = msg['Latitude']
lon = msg['Longitude']
return [SlotSet('lat', lat), SlotSet('lon', lon)]