Use this comprehensive n8n workflow to automate file archiving. It triggers on Telegram file uploads, executes Google Vision OCR, saves to Google Drive, and creates a searchable index in Airtable. Find the best n8n templates here.
Download this n8n workflow template and start using it instantly.
Users who receive many documents or images via Telegram and need an organized, searchable archive.
Automation specialists looking for advanced n8n templates combining messaging, cloud storage, OCR, and database indexing.
Teams needing a simple, indexed document management system without relying on proprietary software.
Developers wanting to study a complex n8n workflow example involving conditional branching and external API calls (Google Vision).
Managing digital files spread across multiple messaging apps can be chaotic. This sophisticated n8n workflow solves this by instantly processing files received in a designated Telegram chat, creating a permanent, searchable record. When a document or image is sent, the n8n automation takes over. It downloads the file, uploads it securely to Google Drive, and critically, checks if it's OCR-eligible (images or PDFs). If so, it uses the Google Vision API via an HTTP Request n8n node to extract text. Finally, all metadata, the Drive link, and the extracted text are indexed into an Airtable database, making every document immediately searchable directly through a Telegram command. This comprehensive n8n workflow dramatically increases efficiency and ensures no valuable text is locked away inside images.
This n8n workflow operates on a dual-path logic initiated by the Telegram trigger:
Set n8n node./search, the n8n workflow extracts the query and jumps to the Airtable search logic.To deploy this powerful n8n workflow template, follow these steps:
My Drive in this configuration).Google Vision OCR n8n node uses an HTTP Request node configured with OAuth2. You must have a Google Cloud Project with the Google Vision API enabled and configure a corresponding OAuth2 credential in n8n for this n8n node.Index in Airtable and Search in Index n8n nodes to match your chosen database structure. Ensure the Airtable base has fields for file name, Drive URL, and extracted text (used for the search formula).Telegram Trigger to 'Active' to start listening for incoming messages. Telegram Trigger (n8n trigger): The starting point of this n8n workflow. It is configured to listen for new messages and edited messages, specifically trapping files and commands.
Check if File/Image (If n8n node): Essential for flow control, this n8n node checks for the existence of message.document or message.photo properties before proceeding with the archival process.
Extract File Metadata (Set n8n node): Collects dynamic data points like fileId, fileName, and mimeType using expressions (={{ $json.message.document?.fileid || $json.message.photo?.slice(-1)[0].fileid }}).
Download File from Telegram (Telegram n8n node): Executes the file download operation using the previously extracted fileId, retrieving the binary data necessary for subsequent steps.
Upload to Google Drive (Google Drive n8n node): Saves the binary file content to the specified Google Drive location, generating the permanent webViewLink used for indexing.
Google Vision OCR (HTTP Request n8n node): This key n8n node performs OCR by sending the file binary data (content-encoded) to the Google Vision API endpoint. This enables full-text search capabilities.
Index in Airtable (Airtable n8n node): Creates a new record in the Airtable base. It maps the file metadata and the extractedText (from OCR or 'Not applicable' placeholder) into searchable fields, completing the searchable archive portion of the n8n workflow.
Search in Index (Airtable n8n node): Used in the separate command path. It executes a search operation using a complex filter formula (=SEARCH(LOWER("{{ $json.searchQuery }}"), LOWER({extracted_text}))) to find relevant files based on user input from the n8n trigger.
Create a robust PDF digital signing service using this advanced n8n workflow. It handles key generation (PFX), file uploads, PDF signing, and downloads via custom REST API endpoints.

Use this comprehensive n8n workflow to build a cited RAG knowledge base. Scrape data, embed using OpenAI, store vectors in Milvus, and generate reliable answers using an n8n node.

Use this powerful n8n workflow to automatically generate a QuickBooks Online invoice every time a new delivery or service task is created in Onfleet. Leverage this n8n template for real-time billing.

Create a robust, searchable directory API using an n8n workflow and Data Tables. Easily retrieve curated YouTube educational content by topic using custom keyword matching.

Use this n8n workflow to create a secure, validated HTTP API endpoint for retrieving MongoDB collection data. Includes validation logic and data transformation using the n8n node.

Deploy a powerful, self-hosted blockchain payment processor using this advanced n8n workflow. Integrate the x402 protocol with 1Shot API to manage verified, secure crypto payments across multiple chains. Download these n8n templates today.

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.







































