See llms.txt for all machine-readable content.

Back to Templates

Send flight fare alerts from PirateFly to Telegram, Slack or webhooks

Quick overview

This workflow runs daily to check your selected flight routes against PirateFly’s route-specific price history and sends alerts to Telegram, Slack, or a custom webhook only when today’s fare is genuinely cheap or below your max price.

How it works

  1. Runs every day at 07:00 (or manually on demand) and loads your configured list of routes, alert levels, and notification channel.
  2. Splits the configuration into one item per route and calls the PirateFly verdict API for each route, using a Pro API key header if provided.
  3. Evaluates each response and keeps only fares rated “great” or “good” (or below the route’s optional maxPrice) while skipping routes with no available fare.
  4. De-duplicates alerts across workflow runs using stored state so the same route and price is not sent twice.
  5. Sends the formatted alert (including percentile, median, and booking window details when available) to Telegram, Slack, or a webhook endpoint.
  6. If the PirateFly free-tier rate limit is hit, sends a single “limit reached” notice through the selected channel.

Setup

  1. Update the routes list in the configuration with origin/destination city names and optionally set maxPrice (in EUR) per route.
  2. Choose your notification channel (telegram, slack, or webhook) and fill in the matching destination value (Telegram chat ID, Slack channel name, or webhook URL).
  3. Add the required credential for your chosen channel (Telegram bot credentials or Slack OAuth); no credentials are needed for the webhook option.
  4. (Optional) Add a PirateFly Pro API key to increase the daily request cap and enable the X-Api-Key header on requests.