I’m curious if anyone here has experience with getting Rasa to automatically identify “My current city name” based on the device’s GPS location. I noticed that some websites use location services to retrieve a user’s city, but I was wondering if this could be implemented within a Rasa bot. Specifically, I’d like to understand the process of using the device’s GPS to detect the city and how to relay that information to the bot for more personalized conversations.
I’m currently using Rasa Open Source, and I’m trying to make the bot more intuitive when it comes to user interactions. For example, if a user asks about local weather or nearby services, it would be great if the bot could fetch the current city name automatically and tailor its responses based on that. Instead of asking the user to manually input their city, the bot would simply use the device’s GPS coordinates.
Here are a few things I’m wondering about:
- How can the GPS location from a user’s device be shared with Rasa? Do I need any external tools to help with this, or is there a way Rasa itself can manage this information? For example, could there be a middleware tool that retrieves the GPS data and passes it to Rasa?
- Once I have the GPS coordinates, how do I convert them into a city name? Is there any built-in functionality within Rasa that can manage this, or should I use an external API for geolocation services? If an external API is needed, I’d love to know which ones integrate well with Rasa and are reliable for this type of task.
- How can the bot then use this city information in its responses? I’d like to make the bot conversationally aware of the city it detects. For example, when users ask for local recommendations, it could automatically reply with suggestions based on their current location. But how would I store and use that city information across multiple intents?
I think this would make the bot more natural and user-friendly, so any advice on how to approach this would be greatly appreciated!