Code Automate

For platform Code Automate, this automated workflow checks for bargain flights daily, targeting specific itineraries and price limits. It integrates with Gmail to notify you of flight deals under $600, streamlining your travel planning and saving you time and money.

7/8/2025
12 nodes
Medium
schedulemediumgmailsplitinbatcheswaitfiltersticky noteschedule triggerautomationadvancedapiintegrationcron
Categories:
Communication & MessagingSchedule TriggeredMedium Workflow
Integrations:
GmailSplitInBatchesWaitFilterSticky NoteSchedule Trigger

Target Audience

This workflow is ideal for:
- Frequent Travelers: Individuals who are looking for affordable flight options and want to be notified when prices drop.
- Travel Agents: Professionals who want to automate the process of finding bargain flights for their clients.
- Budget-Conscious Consumers: People who have a specific budget in mind and are looking for flights that fit within that budget.
- Tech-Savvy Users: Those comfortable with using automation tools and APIs to enhance their travel planning experience.

Problem Solved

This workflow addresses the challenge of finding affordable flights by automating the search for flight offers based on user-defined criteria such as:
- Specific departure and arrival airports.
- Desired dates for travel.
- A price target below a specified amount (e.g., $600).
It sends an email notification via Gmail when a matching flight is found, ensuring users never miss a bargain.

Workflow Steps

  • Schedule Trigger: The workflow is set to run every day at 8 AM.
    2. FromTo Node: Defines the origin (LHR) and destination (JFK) airports for the flight search.
    3. Carrier Name Lookup: Retrieves and stores carrier names and codes for better readability in the results.
    4. Get Dates: Generates the next 7 and 14 days as potential travel dates.
    5. Loop Over Items: Iterates through each date to perform a flight search for each.
    6. Amadeus Flight Search: Queries the Amadeus API for flight offers based on the defined parameters.
    7. Merge & Extract: Combines the results from multiple API responses and extracts relevant flight information such as carrier name, duration, time, and price.
    8. Under Price: Filters the results to only include flights that are below the specified price target.
    9. Gmail: Sends an email notification with details of any bargain flights found, including departure time, duration, and price.
  • Customization Guide

    To customize this workflow:
    - Change Airports: Edit the FromTo node to set your desired departure and arrival airports.
    - Adjust Price Target: Modify the Under Price node to change the maximum price you are willing to pay for a flight.
    - Set Travel Dates: In the Get Dates node, you can adjust the days for which you want to search for flights.
    - Email Configuration: Update the Gmail node with your own email account details to receive notifications.
    - Schedule Timing: Modify the Schedule Trigger settings to run the workflow at a different time or frequency that suits your needs.