See llms.txt for all machine-readable content.

Back to Templates

Notify Slack when Santa reaches your country with Santa Tracker API

Quick overview

This workflow is a possible approach for our North Pole Project challenge coming soon to a LinkedIn feed near you! It polls the public n8n Santa Tracker API, tracks the route cursor in an n8n Data Table, and posts a one-time Slack alert when Santa reaches a configured country.

How it works

  1. Runs every minute (or on manual trigger) to start a polling cycle.
  2. Sets the Santa Tracker API URL plus the target country code/name and a unique state key used to store polling progress.
  3. Ensures an n8n Data Table exists and loads the saved cursor and notification status for the configured state key.
  4. Calls the Santa Tracker API to detect the current journey start time, then decides whether to reuse the saved cursor or reset to 0 for a new journey.
  5. Polls the Santa Tracker API with the since cursor to retrieve all newly visited stops since the last run.
  6. Checks whether any new stop matches the configured country and, if it has not already alerted for this journey, posts an arrival message to a Slack channel.
  7. Upserts the latest cursor, journey start, and notified flag back into the Data Table so future runs resume safely.

Setup

  1. Add a Slack credential and select the channel where the arrival alert should be posted.
  2. In the workflow configuration values, set countryCode, countryName, and a unique stateKey (especially if you monitor multiple countries with separate workflows).
  3. Ensure your n8n instance allows creating and using n8n Data Tables, since the workflow stores cursor and notification state there.