Use this powerful n8n workflow template to automatically compare flight prices across Kayak, Skyscanner, Expedia, and Google Flights via a webhook, sending a detailed email report to the user.
Download this n8n workflow template and start using it instantly.
Finding the best flight price often means checking half a dozen websites manually. This n8n workflow solves that problem by providing a fully automated, real-time comparison engine. Triggered by a simple HTTP POST request (containing a natural language query and user email), this n8n template first uses a custom n8n node to parse and validate the request, extracting key details like dates and airport codes.
It then launches parallel SSH commands to execute external scraping scripts (e.g., Python scripts using Selenium or BeautifulSoup) across four major platforms: Kayak, Skyscanner, Expedia, and Google Flights. Once all results are gathered, another core n8n node aggregates the data, identifies the best deal, calculates potential savings, and formats everything into a clean, text-based email report, which is then sent to the user. This sophisticated n8n workflow demonstrates complex flow control and external script integration, making it a cornerstone among advanced n8n templates.
The entire process begins with the Webhook - Receive Flight Request n8n trigger.
Parse & Validate Flight Request n8n node uses custom JavaScript to apply NLP logic, converting the query into structured data (ISO dates, airport codes, trip type). It verifies that all essential details are present.Check If Request Valid n8n node ensures the request is fully formed. If not, an error response is sent immediately via the Webhook Response (Error) node.SSH n8n node actions (Scrape Kayak, Scrape Skyscanner, etc.). These nodes run a dedicated Python scraper script on a remote server, passing the structured flight parameters.Aggregate & Analyze Prices n8n node collects the results from all parallel scraping operations, even those that failed. It standardizes the data, sorts prices, identifies the absolute best deal, and calculates market statistics.Format Email Report n8n node generates the plain text body and subject line for the flight comparison email, highlighting the lowest price and the top 10 results.Send Email Report n8n node delivers the final report. Finally, the Webhook Response (Success) n8n node sends a confirmation back to the initiating service, completing the n8n workflow execution.To deploy this advanced n8n workflow, follow these steps:
Webhook - Receive Flight Request n8n trigger. Note the production URL.flightscraper.py script deployed at the path specified in the SSH nodes (/home/oneclick-server2/flightscraper.py).SMTP - test credential for the Send Email Report n8n node to ensure emails are correctly delivered to users.message (query) and email fields.This n8n workflow relies on several specialized n8n node types for its functionality:
Webhook - Receive Flight Request (n8n trigger):
Function: Starts the n8n workflow upon receiving an HTTP POST request.
Key Configuration: Path is set to /flight-price-compare. Allows cross-origin requests.
Parse & Validate Flight Request (Code n8n node):
Function: Extracts flight criteria (origin, destination, dates, trip type) from natural language text using built-in NLP-style parsing logic and validates mandatory fields.
Key Configuration: Custom JavaScript handles date parsing, airport code mapping, and error handling for missing information.
Scrape [Platform Name] (SSH n8n node):
Function: Executes an external Python script (flight_scraper.py) on a remote server, passing flight parameters dynamically using n8n expressions.
Key Configuration: Uses dynamic command expression (=python3 ... {{ $json.origin }}) and is configured to continueErrorOutput to ensure the overall n8n workflow completion even if one scraper fails.
Aggregate & Analyze Prices (Code n8n node):
Function: Merges the output from all parallel SSH nodes, converts string output into structured flight objects, identifies the cheapest flight, and calculates average prices and savings.
Key Configuration: Sorts the resulting list of flights by price.
Format Email Report (Code n8n node):
Function: Constructs a clean, readable text report detailing the trip and the top 10 cheapest results found by the n8n workflow.
Send Email Report (Email Send n8n node):
Function: Delivers the final report to the user's email address using the dynamic $json.userEmail field.
* Key Configuration: Uses SMTP credentials for delivery.
Automate real-time flight fare checking across Skyscanner, Air India, IndiGo, and more using this powerful n8n workflow. Get instant, sorted email alerts for the cheapest deals delivered straight to your inbox.

Compare two Large Language Models (LLMs) simultaneously and log their outputs, context, and user input to Google Sheets using this advanced n8n workflow. Ideal for AI model evaluation.

Use this powerful n8n workflow to compare responses from four major AI models (Qwen, DeepSeek, Seed-OSS, Nemotron) simultaneously using the Nvidia API. Ideal for fast ensemble intelligence.

Compare OpenAI GPT, Claude, and Gemini responses using Contextual AI’s LMUnit evaluation framework within an n8n workflow. This n8n templates solution automates LLM quality testing.

Use this powerful n8n workflow to compare real-time hotel prices across Booking.com, Agoda, and Expedia, generating a detailed price report emailed directly to the user. Leverage this n8n template for web scraping and data aggregation.

Automate candidate evaluation using this n8n workflow. Scrape LinkedIn profiles and JDs using GhostGenius, compare them with Groq AI, and generate ATS-style optimization tips. Integrate this powerful n8n template for recruitment.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































