Flight deal analyzer with weather data using GPT, Google Flights & WordPress
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs when someone submits an n8n form (“Japan Flight Price Analyzer”). Along the way it connects OpenAI Chat Model, Slack and Wordpress. It also calls google.com and api.open-meteo.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Japan Flight Price Analyzer”).
- Extract Form Data (Edit Fields (Set)): sets 4 fields: departureCity, preferredMonth, maxBudget…
- Scrape Flight Prices (HTTP Request): calls google.com
- Extract Flight Data (HTML): parses or builds HTML
- Prepare AI Input (Edit Fields (Set)): sets 2 fields: flightData, userPreferences
- AI Flight Analyzer (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Fetch Weather Data (HTTP Request): calls api.open-meteo.com
- Format Analysis Results (Edit Fields (Set)): sets 3 fields: aiAnalysis, userEmail, weatherData
- Parse Weather Data (Edit Fields (Set)): sets 4 fields: tokyoWeather, osakaWeather, sapporoWeather…
- Send to Slack (Slack): uses Slack
- Publish to WordPress (Wordpress): uses Wordpress
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: google.com, api.open-meteo.com
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Flight Analyzer (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Flight Analyzer (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Wordpress
n8n-nodes-base.wordpress - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Introduction Automates flight deal discovery and intelligent analysis for travel bloggers and deal hunters. Scrapes live pricing, enriches with weather data, applies AI evaluation, and auto-publishes to WordPress—eliminating manual research and accelerating…