๐Ÿ“Š Generate structured research reports with OpenAI, Wikipedia, Google Sheets, and Slack

โšก 14 views ยท ๐Ÿ“Š Market Research & Insights

Description

Quick overview

This workflow receives a research topic via webhook, uses OpenAI to generate Wikipedia search queries, pulls and cleans matching Wikipedia extracts, then synthesizes a structured report with OpenAI, stores the results in Google Sheets, notifies a Slack channel, and returns the report in the webhook response.

How it works

  1. Receives a POST webhook request containing a topic value.
  2. Validates that the topic is present and uses OpenAI to generate five focused Wikipedia search queries.
  3. Searches Wikipedia for each query, iterates through the top results, and fetches the plaintext extracts for each matching page.
  4. Cleans and normalizes the extracted Wikipedia content, then merges it into a single research context.
  5. Sends the merged content to OpenAI to generate a multi-section research report (summary, findings, facts, benefits, challenges, trends, outlook, and references).
  6. Parses the generated report into structured JSON fields, appends or updates a row in Google Sheets, posts a completion message to Slack, and returns the structured report to the webhook caller.

Setup

  1. Add an OpenAI API credential and confirm the selected model (gpt-4o-mini) is available in your OpenAI account.
  2. Configure the Webhook path (/research-assistant) in the calling app and send a JSON body with a topic field.
  3. Add a Google Sheets credential, then update the target spreadsheet, sheet tab, and ensure columns exist for Topic, Date, Summary, and Result.
  4. Add a Slack credential and set the target channel for the completion notification.

Additional info

Customization Options

Use Case Examples

Troubleshooting Guide

Need Assistance?

WeblineIndia can help you with:

Whether you need workflow enhancements, custom dashboards, advanced AI integrations or entirely new automation systems, WeblineIndia can help build scalable solutions tailored to your business needs.

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Slack, Webhook, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup