๐Ÿ”ฌ Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails

โšก 85 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

Transform your Telegram bot into a secure content analyzer: send any URL, and get safe, structured Q&A extractions with AI-powered safety checks and web search capabilities.

๐Ÿ“‹ What This Template Does

This workflow activates when a user sends a valid URL to your Telegram bot. It extracts questions and answers from the webpage using Airtop, applies NSFW and PII guardrails to ensure safe content, then uses an OpenRouter AI agent (with optional Tavily search) to generate and send a concise response. If guardrails fail, it alerts the user instead.

๐Ÿ”ง Prerequisites

๐Ÿ”‘ Required Credentials

Telegram API Setup

  1. Open Telegram โ†’ Search @BotFather โ†’ Use /newbot command
  2. Follow prompts to create bot and obtain API token
  3. Add to n8n as Telegram API credential type

Airtop API Setup

  1. Visit https://airtop.ai โ†’ Sign up or log in โ†’ Navigate to Dashboard โ†’ API Keys
  2. Generate a new API key with extraction permissions
  3. Add to n8n as Airtop API credential type

OpenRouter API Setup

  1. Go to https://openrouter.ai โ†’ Sign up or log in โ†’ Navigate to API Keys section
  2. Generate and copy your API key (free tier sufficient for basic use)
  3. Add to n8n as OpenRouter API credential type

Tavily API Setup

  1. Visit https://app.tavily.com โ†’ Sign up or log in โ†’ Go to API Keys
  2. Generate and copy your API key
  3. Add to n8n as Tavily API credential type

โš™๏ธ Configuration Steps

  1. Import the workflow JSON into n8n
  2. Assign your Telegram, Airtop, OpenRouter, and Tavily credentials to the respective nodes
  3. Activate the workflow to register the Telegram trigger
  4. Test by sending a plain URL (no extra text) to your bot in Telegram
  5. Monitor the first execution and adjust guardrail thresholds if needed

๐ŸŽฏ Use Cases

โš ๏ธ Troubleshooting

๐Ÿ”— Nodes Used

Telegram, Telegram Trigger, Filter, AI Agent, OpenRouter Chat Model, Airtop

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup