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
- Runs every minute (or on manual trigger) to start a polling cycle.
- Sets the Santa Tracker API URL plus the target country code/name and a unique state key used to store polling progress.
- Ensures an n8n Data Table exists and loads the saved cursor and notification status for the configured state key.
- 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.
- Polls the Santa Tracker API with the
since cursor to retrieve all newly visited stops since the last run.
- 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.
- Upserts the latest cursor, journey start, and notified flag back into the Data Table so future runs resume safely.
Setup
- Add a Slack credential and select the channel where the arrival alert should be posted.
- In the workflow configuration values, set
countryCode, countryName, and a unique stateKey (especially if you monitor multiple countries with separate workflows).
- Ensure your n8n instance allows creating and using n8n Data Tables, since the workflow stores cursor and notification state there.