Create a Location-Aware AI Agent with Amazon Bedrock and Foursquare APIs
Learn how to integrate Amazon Bedrock Agents with Foursquare APIs to develop a location-aware AI agent that delivers personalized user experiences.
Amazon Web Services (AWS) and Foursquare have teamed up to demonstrate how businesses can leverage Amazon Bedrock Agents and Foursquare Places APIs to create location-aware AI agents. These agents can provide personalized recommendations by integrating user preferences, real-time location data, and weather conditions.
Key Components of the Solution
- Amazon Bedrock Agents: A serverless feature within Amazon Bedrock that enables the creation of autonomous AI agents. These agents can process user requests, break them into actionable steps, and connect to external APIs like Foursquare and weather services.
- Foursquare Places APIs: These APIs deliver precise location intelligence, transforming GPS coordinates into contextual business data. Features include:
- GeoTagging API: Identifies specific places from coordinates (e.g., a coffee shop or park).
- Place Search & Data APIs: Filters locations by categories, amenities, and real-time popularity.
How It Works
The solution architecture combines:
- A Streamlit web interface for user interaction.
- Amazon Bedrock Agents to process queries and invoke tools.
- Foursquare APIs to fetch nearby points of interest (e.g., parks, restaurants).
- A Weather API to factor in environmental conditions.

Example Use Case
A user asks the agent for "a nearby park and a recommended restaurant for takeout." The agent:
- Uses Foursquare’s APIs to locate parks.
- Retrieves restaurant options near the park.
- Displays results via an interactive map.

Getting Started
Developers can deploy the open-source solution from GitHub. Prerequisites include:
Related News
AWS extends Bedrock AgentCore Gateway to unify MCP servers for AI agents
AWS announces expanded Amazon Bedrock AgentCore Gateway support for MCP servers, enabling centralized management of AI agent tools across organizations.
CEOs Must Prioritize AI Investment Amid Rapid Change
Forward-thinking CEOs are focusing on AI investment, agile operations, and strategic growth to navigate disruption and lead competitively.
About the Author

Alex Thompson
AI Technology Editor
Senior technology editor specializing in AI and machine learning content creation for 8 years. Former technical editor at AI Magazine, now provides technical documentation and content strategy services for multiple AI companies. Excels at transforming complex AI technical concepts into accessible content.