# Generate structured research reports with OpenAI, Wikipedia, Google Sheets, and Slack

> 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

- **Domain**: `n8n-workflow-19710.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19710
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19710.n8n.io
- Documentation: https://n8n.io/workflows/19710
