📊 Compare flight fares from Skyscanner, Air India & more with email alerts

⚡ 841 views · 📊 Market Research & Insights

Description

This guide walks you through setting up an automated workflow that compares live flight fares across multiple booking platforms (e.g., Skyscanner, Akasa Air, Air India, IndiGo) using API calls, sorts the results by price, and sends the best deals via email. Ready to automate your flight fare comparison process? Let’s get started!

What’s the Goal?

Why Does It Matter?

Manual flight fare comparison is time-consuming and often misses the best deals. Here’s why this workflow is a game-changer:

How It Works

Here’s the step-by-step magic behind the automation:

Step 1: Trigger the Workflow

Step 2: Process Input Data
Step 3: Fetch Flight Data
Step 4: Merge API Results
Step 5: Analyze and Sort
Step 6: Send Results

How to Use the Workflow?

Importing this workflow in n8n is a straightforward process that allows you to use this pre-built solution to save time. Below is a step-by-step guide to importing the Flight Fare Comparison Workflow in n8n.

Steps to Import a Workflow in n8n

  1. Obtain the Workflow JSON

    • Source the Workflow: The workflow is shared as a JSON file or code snippet (provided earlier or exported from another n8n instance).
    • Format: Ensure you have the workflow in JSON format, either as a file (e.g., workflow.json) or copied text.
  2. Access the n8n Workflow Editor

    • Log in to n8n: Open your n8n instance (via n8n Cloud or self-hosted).
    • Navigate to Workflows: Go to the Workflows tab in the n8n dashboard.
    • Open a New Workflow: Click Add Workflow to create a blank workflow.
  3. Import the Workflow

    • Option 1: Import via JSON Code (Clipboard):
      • In the n8n editor, click the three dots (⋯) in the top-right corner to open the menu.
      • Select Import from Clipboard.
      • Paste the JSON code (provided earlier) into the text box.
      • Click Import to load the workflow.
    • Option 2: Import via JSON File:
      • In the n8n editor, click the three dots (⋯) in the top-right corner.
      • Select Import from File.
      • Choose the .json file from your computer.
      • Click Open to import the workflow.

Setup Notes

Example Input

Send a POST request to the workflow (if integrated with a webhook) with:

{
  "origin": "DEL",
  "destination": "BOM",
  "departureDate": "2025-08-01",
  "returnDate": "2025-08-07"
}

Optimization Tips

This workflow transforms flight fare comparison into an automated, efficient process, delivering the best deals directly to your inbox!

🔗 Nodes Used

Send Email, Function, HTTP Request, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup