Library / Content Writing & Generation
Content Writing & Generation
Generate Research Reports with OpenAI, Web Search and Telegram
When you run it or another workflow calls it, an OpenAI agent searches news, Wikipedia and the web, writes a report and shares it via Drive, Gmail and Telegram.
What it does
# 📋 Research Report Workflow 🧠💻 This workflow generates a professional PDF research report on a given topic, sends it via Telegram, and emails🚀 --- ## 🔍 Query Refiner - What it does: Refines the input topic for better readability. 🧹 - Input: Topic from the HTTP Request (e.g., "the best ai models 2025"). - Output: Formatted topic (e.g., "The Best AI Models 2025"). - ✨ Detail: Capitalizes words and ensures "AI" is uppercase. --- ## 📊 Aggregate Research Data - What it does: Collects research data for the topic. 📚 - Input: Refined topic. - Output: Research data (introduction, summary, key findings, etc.) with a timestamp. - ⏰ Note: The timestamp is used to date the report. --- ## 🔗 Merge Split Items - What it does: Combines and organizes research data into sections. 🗂️ - Input: Data from Aggregate Research Data. - Output: Structured JSON with sections like introduction, key_findings, sources. - 📑 Purpose: Prepares data for the PDF report. --- ## 📝 Generate PDF HTML - What it does: Creates an HTML template for the PDF report. 🖥️ - Input: Refined topic and research data. - Output: HTML content, file name (e.g., research-report-the-best-ai-models-2025-2025-04-09.pdf), and formatted date. - 🎨 Features: - Professional styling (Helvetica, Georgia fonts, deep blue accents). - Sections: Cover page, introduction, summary, key findings, etc. - Escapes special characters to prevent HTML errors. - ⏳ Timestamp Fix: Stores rawTimestamp and formattedDate (e.g., "April 9, 2025"). --- ## 📄 Convert HTML to PDF (PDFShift) - What it does: Converts the HTML to a PDF using the PDFShift API. 🖨️ - Input: HTML content from the previous node. - Output: JSON response with a URL to the generated PDF. - 🔑 Requirement: Needs a valid PDFShift API key. - ⚠️ Note: Outputs a URL, not the PDF binary data. --- ## ⬇️ Download PDF - What it does: Downloads the PDF from the URL provided by PDFShift. 📥 - Input: PDF URL from the Convert HTML to PDF node. - Output: Binary PDF data (MIME type: application/pdf, ~98 KB). - 📛 File Name: Uses the file name from the previous node (e.g., research-report-the-best-ai-models-2025-2025-04-09.pdf). --- ## 📱 Gmail/Telegram - What it does: Sends the PDF to a Gmail/Telegram chat. 💬 - Input: PDF binary data and metadata (topic, formatted date). - Output: Sends the PDF as a document to the spe
The steps
- OpenAI Chat Model
- Simple Memory
- Search News
- Wikipedia
- OpenAI Chat Model1
- Query Refiner
- Research AI Agent
- Google Search Web
- SerpApi
- Structured Output Parser
- Split Out
- Input Validation
- Parse Research Output
- Merge Split Items
85 steps in total.
Similar automations
Content Writing & GenerationWrite Research Reports with OpenAI, Wikipedia and Google Search25 stepsContent Writing & GenerationGenerate New SEO Keywords with Search Volumes6 stepsMCP Servers & ToolsWeb Search Chatbot with GPT-4o and Brave Search MCP9 stepsContent Writing & GenerationAnalyze Keyword Search Intent with Bright Data and Gemini16 steps