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
- Runs every day at 07:00 (or manually on demand) and loads your configured list of routes, alert levels, and notification channel.
- 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.
- 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.
- De-duplicates alerts across workflow runs using stored state so the same route and price is not sent twice.
- Sends the formatted alert (including percentile, median, and booking window details when available) to Telegram, Slack, or a webhook endpoint.
- If the PirateFly free-tier rate limit is hit, sends a single “limit reached” notice through the selected channel.
Setup
- Update the routes list in the configuration with origin/destination city names and optionally set maxPrice (in EUR) per route.
- Choose your notification channel (telegram, slack, or webhook) and fill in the matching destination value (Telegram chat ID, Slack channel name, or webhook URL).
- Add the required credential for your chosen channel (Telegram bot credentials or Slack OAuth); no credentials are needed for the webhook option.
- (Optional) Add a PirateFly Pro API key to increase the daily request cap and enable the X-Api-Key header on requests.