n8n

How to Automate Gmail Flight Price Alerts?

Get daily flight deal alerts sent straight to your inbox. It watches your route and only emails you when the ticket price is at or below your target. Ideal for travel coordinators, office managers, and anyone booking company trips.

Each morning a schedule runs, loads your origin and destination, and fetches airline data from Amadeus to show real carrier names. A code step creates future dates to search, by default 7 and 14 days out. The system loops through each date and calls the Amadeus flight offers API, pausing briefly between calls to respect limits. Results are merged and cleaned, key fields like price, time, duration, and carriers are extracted, and only fares under your price move forward to Gmail for a clear, easy to read alert.

Set your airports in the FromTo node, tweak the day offsets in Get Dates, and choose your price target in the Under Price filter. Expect to replace manual checks with one scheduled run and act quickly when good fares show up. Most teams save 20 to 30 minutes a day and avoid missing short lived price drops. Great for controlling travel costs without monitoring sites all day.

What are the key features?

  • Daily schedule runs at a set hour to start the search
  • Set node stores origin and destination airport codes
  • HTTP request pulls airline reference data to map carrier codes to names
  • Code step generates future search dates, default 7 and 14 days ahead
  • Loop step iterates dates and calls the Amadeus flight offers endpoint
  • Wait step adds a short pause to respect API limits
  • Merge and extract step flattens results into price, time, duration, and legs
  • Filter keeps only fares that meet your target price
  • Gmail sends a clear alert with route, price, time, duration, and carrier
  • OAuth2 credentials secure both Amadeus and Gmail connections

What are the benefits?

  • Reduce manual checking from 30 minutes to 1 minute per day
  • Automate daily route checks with zero clicks
  • Use live API data to avoid copy and paste errors
  • Connect Gmail and Amadeus in one simple flow
  • Avoid rate limit issues with a built in wait between calls
  • Receive clear emails with real carrier names, not just codes

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail and Amadeus. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create an Amadeus OAuth2 credential. If unsure, double click the Get Carrier Codes node, then on the Credential to connect with dropdown, click Create new credential and follow the on screen steps. Use the Client Credentials grant and the token URL https://test.api.amadeus.com/v1/security/oauth2/token. Enter your Client ID and Client Secret from your Amadeus account and name the credential clearly.
  4. Open the Get Carrier Codes node and select your new Amadeus credential. Do the same in the Amadeus Flight Search node so both requests use the same Amadeus connection.
  5. Connect Gmail by double clicking the Gmail node. In the Credential to connect with dropdown, click Create new credential and complete the Google sign in. Pick the correct Gmail account and name the credential.
  6. Open the FromTo node and set your origin and destination airport codes, for example LHR and JFK.
  7. Open the Get Dates node and adjust the day offsets if needed. The default searches 7 and 14 days ahead.
  8. Open the Under Price filter and set your target price in your currency. This controls which offers reach Gmail.
  9. Optional: Open the Schedule Trigger node and change the time to match your timezone and preferred hour.
  10. Click Test workflow. Check the execution log. You should see the Amadeus calls, a short wait, merged results, and either an email sent or no items passing the filter.
  11. If no email arrives, review the Under Price node output. Try a higher price for testing, then tune it back down. Also confirm the Gmail node is connected to the right account.
  12. Troubleshooting: A 401 error on Amadeus means the OAuth2 credential or token URL is wrong. A 429 error means too many calls; increase the Wait time. If Gmail blocks the send, reauthorize the Gmail credential or switch to a different account.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Amadeus

Sign up

Free monthly request quota in test and production; pay only for additional calls (rates vary by API).

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.