Upload a document (PDF, DOCX, PPTX, TXT, CSV, JSON, or Markdown) and receive an AI-generated summary containing:
The workflow:
OpenAI Assistant
asst_OpenAI API credential setup in n8n
AuthorizationBearer YOUR-OPENAI-API-KEY (replace YOUR-OPENAI-API-KEY with your OpenAI API secret key for your assistant, starts with sk-)openAIApiHeaderImport the workflow JSON.
When n8n prompts for a credential, choose openAIApiHeader for every HTTP Request node.
Open Run Assistant β Body and replace
"assistant_id": "REPLACE_WITH_YOUR_ASSISTANT_ID"
with your real ID (starts with asst_β¦). Save.
---|---|---
1 | On form submission | User uploads a file (File).
2 | Upload File | POST /v1/files (multipart) β returns file_id.
3 | Create Thread | Creates a thread and attaches the uploaded file.
4 | Run Assistant | Starts the run using your assistant_id.
5 | Poll Run Status β Wait 2 s β IF | Loops until status = completed.
6 | Fetch Summary | GET /v1/threads/{thread_id}/messages β summary JSON.
No community nodes required. Works on any n8n Cloud plan (Starter, Pro, Enterprise) or self-hosted Community Edition.


