Library / Chatbots & Messaging Bots
Chatbots & Messaging Bots
Answer Discord game price and deal commands with IsThereAnyDeal
Parses Discord commands received by webhook to look up game prices, current deals, or help, then replies in the channel using IsThereAnyDeal data and stored price history.
What it does
## Discord Game Search Command ### How it works 1. The webhook receives Discord commands and a parsing node extracts the command and arguments. 2. A router node dispatches the command to one of three branches (lookup, deals, or help). 3. The lookup branch searches ITAD for a game, finds the best match, fetches price details, loads stored history, and builds a lookup reply. 4. The deals branch queries ITAD for deals and builds a deals reply. 5. Built replies (lookup, deals, or help) are sent back to Discord by the Discord reply node. ### Setup steps - [ ] Configure the Discord Message Webhook with the correct webhook URL or set up the Discord credentials in the Discord node. - [ ] Add the ITAD API key (isthereanydeal) into HTTP Request credentials or environment variables used by the ITAD request nodes. - [ ] Ensure the data table node (Load Stored History) is initialized and has the correct table name/schema accessible to the workflow. - [ ] Verify the Parse Command and custom code nodes have any required environment variables or secret values available in n8n. ### Customization Adjust command names and parsing logic in the Parse Command node, modify outgoing message templates in the Build Reply nodes, and change how history is stored/queried by updating the data table node.
The steps
- When Discord Message Received
- Parse Discord Command
- Route by Command
- Fetch ITAD Game Search
- Extract Best Game Match
- Fetch ITAD Game Prices
- Load Stored Price History
- Build Lookup Reply Message
- Post Reply to Discord
- Fetch ITAD Deals
- Build Deals Reply Message
- Build Help Reply Message
Similar automations
Monitoring, Ops & IncidentsTrack game prices from Discord slash commands using IsThereAnyDeal and Discord40 stepsBuilding Blocks & UtilitiesLearn n8n Coding in an Interactive Game6 stepsCRM & Sales PipelineCopy HubSpot Deal Line Items and Notify Slack7 stepsChatbots & Messaging BotsBuild a Telegram Bot with Menu-Driven Commands21 steps