Monitor Truth Social posts for Iran-Israel risk and alert Discord with Bright Data and OpenAI
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Cron. 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| Cron Every minute | Schedule Trigger |
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Cron
n8n-nodes-base.cron - No Operation, do nothing
n8n-nodes-base.noOp - Split Out
n8n-nodes-base.splitOut - If
n8n-nodes-base.if - Discord
n8n-nodes-base.discord
What it does
Quick overview This workflow polls a Truth Social account every minute via Bright Data, tracks the newest processed post ID in an n8n Data Table, uses OpenAI (GPT-4o-mini) to classify posts about Iran–Israel–US tensions, and sends relevant alerts to a Discord channel. How it works 1. Runs every minute on a cron schedule. 2. Reads the stored lastid cursor from an n8n Data Table and requests newer Truth Social statuses through the Bright Data API. 3. If new statuses are returned, extracts key fields (content and timestamp) and updates lastid to the highest status ID in the batch. 4. Prefilters posts with a keyword/regex check to avoid sending obviously irrelevant content to OpenAI. 5. Sends remaining posts to OpenAI (GPT-4o-mini) to extract a relevance flag, severity level, and one-sentence reason. 6. Posts a formatted alert to Discord for items OpenAI marks as relevant. Setup 1. Create or select a Bright Data HTTP Bearer credential and ensure the fetchtruths zone exists in your Bright Data account. 2. Add an OpenAI API credential and confirm the selected model (for example, gpt-4o-mini) is available to your account. 3. Add a Discord Webhook credential and set it to the channel where alerts should be posted. 4. Run the included one-time setup path to create the workflowstate Data Table and initialize lastid (rerunning it resets the cursor to 0).