Skip to main content

Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails

Workflow preview

Workflow preview
100%
Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 D...

Best for

  • Document Extraction automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.filter, n8n-nodes-base.airtop, @n8n/n8n-nodes-langchain.guardrails, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.telegram, @tavily/n8n-nodes-tavily.tavilytool, n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Daniel Nkencho.

Original n8n.io source

1.1 Workflow description

Title
Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails
Workflow name
Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails

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.

  • Filters for valid URLs only to prevent unnecessary processing
  • Extracts structured Q&A from documents or forms
  • Enforces safety checks for harmful or private content
  • Supports web searches for enhanced responses when needed

πŸ”§ Prerequisites

  • A Telegram bot created via @BotFather
  • Accounts with Airtop, OpenRouter, and Tavily

πŸ”‘ 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

  • Researchers summarizing academic papers or reports while ensuring no sensitive data leaks
  • Support teams extracting info from customer-submitted docs/forms with automatic safety filtering
  • Content creators pulling Q&A from articles for bots, blocking inappropriate responses
  • Educators analyzing educational resources safely for student-facing chat tools

⚠️ Troubleshooting

  • No response from bot: Verify the message contains only a valid URL; adjust regex in Filter Only URLs node if needed
  • Guardrail failures: Lower NSFW threshold (e.g., from 0.7 to 0.5) or disable PII checks in Apply Safety Guardrails node
  • Extraction errors: Test with public, text-heavy URLs; some JS-heavy sites may require alternative extractors
  • Rate limits hit: Check OpenRouter/Tavily dashboards for usage; upgrade to paid tiers for heavy traffic

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Filter Only URLs

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 2 - Extract Q&A from URL

Type / Role
n8n-nodes-base.airtop - airtop
Config choices
Version 1

Block 3 - Apply Safety Guardrails

Type / Role
@n8n/n8n-nodes-langchain.guardrails - guardrails
Config choices
Version 1

Block 4 - OpenRouter Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 5 - Send Safe Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 6 - Send Violation Alert

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Tavily Web Search

Type / Role
@tavily/n8n-nodes-tavily.tavilyTool - tavilyTool
Config choices
Version 1

Block 8 - Note: URL Filter

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Note: Extraction

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Note: Guardrails

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Note: Language Model

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Note: Web Search

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Overview Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Telegram Trigger1

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 15 - Note: Trigger2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Note: Agent1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Main agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

3. Summary Table

Workflow Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails
Complexity advanced
Nodes 17
Categories Document Extraction, AI Chatbot
Author Daniel Nkencho
Published 14 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10849/10849.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract & process Q&A from URLs with Airtop, OpenRouter AI & Safety Guardrails do?

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 D...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Chatbot use case.