Templates / Generate document summaries & Q&As from PDF/TXT using GPT-4o with Slack alerts

Generate document summaries & Q&As from PDF/TXT using GPT-4o with Slack alerts

Ready for 3.0

by Rahul Joshi ✓ · 232 views · created 2025-12-12 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Azure OpenAI Chat Model, Google Sheets and Slack.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Check If Uploaded File Is PDF (If): checks a condition and branches into true / false
  2. Check If Uploaded File Is TXT (If): checks a condition and branches into true / false
  3. Extract Text from PDF File (Extract from File): extracts data from a file (pdf)
  4. Extract Text from TXT File (Extract from File): extracts data from a file (text)
  5. Generate Summary & Q&A Using AI (AI Agent): runs an AI agent, with model: Provide LLM Engine for Document Analysis; memory: Store AI Memory for Document Analysis Session; output parser: Parse AI Summary and Q&A into Structured JSON
  6. Validate AI Output Before Processing (If): checks a condition and branches into true / false
  7. Unwrap AI Output Object (Code): runs custom JavaScript code
  8. Log Invalid AI Output to Google Sheet (Google Sheets): append
  9. Prepare Final Response Payload (Code): runs custom JavaScript code
  10. Send Final Summary & Q&A Response to Webhook (Respond to Webhook): sends the response back to the webhook caller

…plus 1 more step. See the full node list below.

Services it uses

Azure OpenAI Chat ModelGoogle SheetsSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (11)

From the author

📘 Description This workflow automates document understanding by accepting uploaded PDF or TXT files, extracting their text, generating a structured summary and question–answer set using GPT-4o, validating the AI output, and returning a clean JSON response to…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.