Description
Empower your AI agents to make smart, real-time decisions using weather data. This n8n workflow teaches how to use tools (functions) with AI for dynamic, multi-step task execution—perfect for educational demos or real-world use cases like travel planning.
🧠 How It Works:
✅ 🧭 Geolocation API Call – The AI agent first determines the city’s coordinates using a location API ✅ 🌦️ Open-Meteo API Call – With the coordinates, it then fetches accurate multi-day weather forecasts ✅ 🧠 AI Agent Node – Intelligently decides the sequence: geolocation → weather, all within one conversation ✅ 🧵 Single Call Logic – Demonstrates multi-tool usage in one seamless user-AI interaction
🔍 It Automates:
✅ Weather data extraction based on natural language city input ✅ Decision-making via AI to choose which tool to invoke and when ✅ Forecast retrieval for planning trips or events ✅ Real-time AI integration with external APIs using HTTP requests
💡 Why Choose This Workflow:
✅ Simple yet powerful example of AI-driven decision flows ✅ Demonstrates real-world API usage with OpenAI and Open-Meteo ✅ Perfect for workshops, tutorials, or client demos ✅ Requires only city name as input—AI handles the rest ✅ Fully extensible with additional tools (e.g., clothing suggestions, alerts)
👤 Who Is This For:
✅ Developers learning AI tool-use in workflows ✅ Educators running hands-on AI integration workshops ✅ Product teams building travel/weather chatbots ✅ Tinkerers and builders experimenting with function calling
🔗 Integrations:
✅ OpenAI API (for the agent's tool usage) ✅ HTTP Requests (for geolocation and weather forecast) ✅ Open-Meteo (weather API provider)
🔧 Setup Instructions:
🔑 Add your OpenAI API key to the AI Agent Node 🧭 Configure the HTTP Request Node to fetch geographic coordinates 🌤️ Connect the second HTTP Request Node to Open-Meteo’s forecast endpoint ✅ Activate the workflow and chat with the agent using natural queries like “What’s the weather in Tokyo this weekend?”
🧪 Smart Weather Planning with Tool-Aware AI This lightweight but powerful workflow shows how AI can drive multi-step logic—from location lookup to weather report—in real time. Learn, build, or deploy smarter forecasting experiences today.
Link : https://lovable.dev/projects/99083898-e90f-4f4e-ac84-90cf043ab8a6