Summarize PDF documents in Telegram with Groq AI
How It Works Telegram Trigger → Sub-Workflow (Separate Text/Files) → IF (Is PDF?) ├── True: Extract PDF → Set Text → Code (Clean) → Done! └── False: NoOp (Ignore) 9 nodes**: Lightweight, efficient (no loops). Key Steps**: Triggers on Telegram messages - downloads files. Sub-workflow splits text/files. (Optional but recommended) IF node checks MIME type/extension for PDFs. Extracts text via "Extract From File" node. AI writes summary. Responds to user. Setup Instructions IMPORTANT* : Requiring an n8n instance to be configured with public/production webhook !
Recommendation: Ngrok or Cloudflare Tunnel
Add the Telegram credential Go to Credentials → New Credential → Telegram API. Paste your Bot Token. Configure the Trigger Open the Telegram Trigger node. Ensure Trigger On contains Message. Enable Download under Additional Fields so file payloads are attached to the node output. (Optional) Enable the sub‑workflow Automate Telegram Message Processing - Separate Text and Files 💬📁 If you need both message text and attachments, enable the Automate Telegram Message Processing – Separate Text and Files node and import the referenced workflow into your workspace. Deploy the workflow and activate it. Testing Send a message with a PDF attachment to your Telegram bot. There will be a response from the chat that summarizes the PDF content.
Nodes Used Telegram Trigger**: Listens for incoming messages and downloads attachments. Execute Workflow**: Calls a sub-workflow to separate text and file data (recommended for reliable file handling). If**: Checks MIME type to ensure the file is a PDF. Extract From File**: Converts the PDF binary into text. Set**: Assignments to organize the text data. Code**: Cleans the text (removes excess newlines) to prepare it for the LLM. Basic LLM Chain**: Orchestrates the AI prompt and processing. AI Chat Model**: The specific LLM provider used for high-speed inference. Telegram**: Sends the final summary back to the user.
Output Example The bot will reply with a message formatted like this: > Title: Q3 Financial Report > Type: Financial Report > Exec Summary: Revenue increased by 15% due to new product lines... > Key Insights: > • Growth in APAC region. > • Reduced operational costs by 5%.
🙏 Thank You for Trying This Workflow!
Your time and trust mean a lot! I truly appreciate you using this template.
Your feedback shapes future updates:
💡 Suggestions for improvement
🆕 Ideas for new features
📝 Requests for other automation workflows
Please share your thoughts! Every idea helps shape the next update.
🙋♂️ Join & Follow For More Free Templates!
Discord Community: We Work Together
Get help, share builds, collaborate!
Daily tips, tutorials, and updates
Thank you again for being part of this journey! 🚀
Together, we automate better! 🤖✨
Related Templates
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Instagram Full Profile Scraper with Apify and Google Sheets
📸 Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Compare Lists and Identify Common Items & Differences Using Custom Keys
This workflow compares two lists of objects (List A and List B) using a user-specified key (e.g. email, id, domain) and ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments