Generate summaries from uploaded files using OpenAI Assistants API
Generate Summaries from Uploaded Files using OpenAI Assistants API π Overview Upload a document (PDF, DOCX, PPTX, TXT, CSV, JSON, or Markdown) and receive an AI-generated summary containing: title β 5-10 words summar...
Template notes
Generate Summaries from Uploaded Files using OpenAI Assistants API
π Overview Upload a document (PDF, DOCX, PPTX, TXT, CSV, JSON, or Markdown) and receive an AI-generated summary containing:
title β 5-10 words summary β 1-2 sentences bullets β 3-5 key points tags β 3-6 short keywords
The workflow:
1. Stores the file in OpenAI. 2. Runs an Assistant with File Search and Code Interpreter enabled. 3. Polls until the run finishes. 4. Retrieves the summary JSON.
---
β Prerequisites
OpenAI Assistant - Create one at <https://platform.openai.com/assistants> - Enable File Search and Code Interpreter - Note: The assistant ID starts with asst