📊 Send a curated daily X tech digest to Telegram with Claude and DeepSeek

⚡ 21 views · 📊 Market Research & Insights

💡 Pro Tip — Twitter’s API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.

View All Scrapers

Description

Quick overview

This workflow runs every weekday morning, pulls the last 24 hours of original posts from a list of X (Twitter) accounts via TwitterAPI.io, uses Anthropic Claude (with a Fireworks DeepSeek fallback) to curate a tech digest, and sends the formatted Markdown summary to Telegram.

How it works

  1. Runs on a cron schedule every weekday at 07:25.
  2. Builds a timezone-aware 24‑hour window and expands the configured X account list into one item per username.
  3. Queries TwitterAPI.io advanced search for each account (excluding replies) with throttling and captures any failed account lookups.
  4. Flattens and filters the results to keep only original tweets within the last 24 hours, then deduplicates and sorts them into a single digest payload.
  5. If there are tweets, sends them to an LLM (Anthropic Claude Haiku 4.5 with a Fireworks DeepSeek fallback) to remove noise and write a Telegram‑compatible Markdown digest.
  6. If there are no tweets, creates a “nothing to report” message that can also list any accounts that could not be read.
  7. Sends the resulting message to the configured Telegram chat.

Setup

  1. Create a TwitterAPI.io API key and add it as an n8n Header Auth credential (header name X-API-Key), then select it in the TwitterAPI.io request step.
  2. Add Anthropic API credentials for the primary model and an OpenAI-compatible Fireworks credential for the DeepSeek fallback.
  3. Create a Telegram bot, add the Telegram API credentials in n8n, and set your target telegram_chat_id in the Settings step.
  4. Update the x_accounts list and timezone (IANA name) in the Settings step, and adjust the cron schedule time if needed.

Requirements

Customization

đź”— Nodes Used

HTTP Request, Telegram, Schedule Trigger, AI Agent, Anthropic Chat Model, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup