# Perplexity Research AI HTML Web Page Automation with OpenAI: n8n workflow

> Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/perplexity-research-ai-html-web-page-automation-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Perplexity Research AI HTML Web Page Automation with OpenAI

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 13 steps, 2 branches: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fperplexity-research-ai-html-web-page-automation-with-openai)

**13 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 3 Model 5 Logic 5

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **Get Topic** Set *Logic*
- 3 **If Topic Exists** If *Logic*
- 4 **Improve Users Topic (OpenAI)** Chain Llm *Model*
- 5 **Error Response** Respond To Webhook *Starts it*
- 6 **If Improved Topic** If *Logic*
- 7 **Perplexity Research Tool (sub-workflow)** Tool Workflow *Model*
- 8 **Extract Article JSON (OpenAI JSON mode)** Lm Chat Open Ai *Model*
- 9 **Article** Set *Logic*
- 10 **Create HTML Article (title+content JSON)** Lm Chat Open Ai *Model*
- 11 **Wrap in Tailwind Full HTML (single line)** Chain Llm *Model*
- 12 **Set Final Response** Set *Logic*
- 13 **Respond to Webhook** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 13, with 2 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 13 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 13 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fperplexity-research-ai-html-web-page-automation-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Aggregate web product reviews and sentiment with Decodo** 13 steps · calls a model · Telegram](https://millionrounds.com/workflow/aggregate-web-product-reviews-and-sentiment-with-decodo)
- [**Analyze YouTube comments sentiment with Gemini** 13 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/analyze-youtube-comments-sentiment-with-gemini)
- [**Analyze competitor pricing and feature changes with Gemini** 13 steps · calls a model](https://millionrounds.com/workflow/analyze-competitor-pricing-and-feature-changes-with-gemini)
- [**Analyze domain keyword rankings and summarize with SE Ranking** 13 steps · calls a model · Google Sheets, n8n data table](https://millionrounds.com/workflow/analyze-domain-keyword-rankings-and-summarize-with-se-rankin)
- [**Automate Instagram engagement & sentiment analysis with OpenAI** 13 steps · calls a model · Google Sheets, Outlook](https://millionrounds.com/workflow/automate-instagram-engagement-and-sentiment-analysis-with-op)
- [**Automate assignment grading with OpenAI** 13 steps · calls a model](https://millionrounds.com/workflow/automate-assignment-grading-with-openai)
