Quick overview
This workflow connects Discord with the IsThereAnyDeal (ITAD) API, enabling users to manage a game watchlist via Discord commands, get real-time deal and price updates, and receive automated price-drop alerts within Discord channels.
How it works
- Receives command messages through a Discord webhook.
- Parses the command and routes it based on user input (e.g., watch, unwatch, watchlist, price, deal, alerts, clearwatchlist).
- Uses the IsThereAnyDeal API to search for games, retrieve current prices, top deals, and historical lows according to the user command.
- Updates or modifies user watchlists and alerts stored in n8n data tables as users add/remove games or clear their lists.
- Formats and sends interactive response messages, personalized price info, recent alerts, and help messages back to Discord.
- Runs every 6 hours to check all active watchlists against the latest prices from the ITAD API.
- Compares new prices with historical and target values, and sends automated Discord alerts to users when their tracked games meet deal or price-drop conditions.
- Records sent alerts and updates price histories to prevent duplicates and keep the watchlist accurate.
Setup
- Add Discord Bot API credentials and configure the Discord webhook for message intake and replies.
- Set up an IsThereAnyDeal API generic (custom) authentication credential for making ITAD API requests.
- Configure and create n8n data tables for watchlists, alerts, and price history, updating table IDs in each relevant node.
- Copy the Discord webhook URL into your desired Discord server or relevant bot integration settings.
- Optionally, customize command responses and scheduling parameters as needed for your Discord community.