# Build comprehensive entity profiles with Wikipedia: n8n workflow

> Started by an event in a connected app, and works across Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/build-comprehensive-entity-profiles-with-wikipedia (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Build comprehensive entity profiles with Wikipedia

Started by an event in a connected app, and works across Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 27 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-comprehensive-entity-profiles-with-wikipedia)

**27 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 18 Logic 7

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

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 3 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 4 **OpenAI Chat Model4** Lm Chat Open Ai *Model*
- 5 **Wikipedia** Tool Wikipedia *Model*
- 6 **Character Text Splitter** Text Splitter Character Text Splitter *Model*
- 7 **Researcher Internet** Tool Workflow *Model*
- 8 **Entity Search Embeddings** Embeddings Ollama *Model*
- 9 **Entity Search Embeddings 1** Embeddings Ollama *Model*
- 10 **Entity Parser** Output Parser Structured *Model*
- 11 **Validation Parser** Output Parser Structured *Model*
- 12 **Entity Search Embeddings 2** Embeddings Ollama *Model*
- 13 **Entity Embeddings** Embeddings Ollama *Model*
- 14 **Set Node** Set *Logic*
- 15 **Entity Researcher** Agent *Model*
- 16 **Validate Entity** Chain Llm *Model*
- 17 **Default Data Loader** Document Default Data Loader *Model*
- 18 **Entity Search** Vector Store Qdrant *Model*
- 19 **Entity Search 1** Vector Store Qdrant *Model*
- 20 **Entity Search 2** Vector Store Qdrant *Model*
- 21 **Save Entity** Vector Store Qdrant *Model*
- 22 **Question Answered** If *Logic*
- 23 **Entity Defined** If *Logic*
- 24 **Entity Search Successful** If *Logic*
- 25 **Entity Exists** If *Logic*
- 26 **Merge1** Merge *Logic*
- 27 **Merge** Merge *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 27, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Qdrant
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

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 27 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%2Fbuild-comprehensive-entity-profiles-with-wikipedia)
- **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.

## Connects to

Each opens the other workflows that use it.

[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Generate AI News LinkedIn Posts with OpenAI and NewsAPI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/generate-ai-news-linkedin-posts-with-openai-and-newsapi)
- [**Classify LinkedIn posts as quality or slop with OpenAI** 23 steps · calls a model · Qdrant](https://millionrounds.com/workflow/classify-linkedin-posts-as-quality-or-slop-with-openai)
- [**Books into 100+ social media posts with DeepSeek** 20 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/books-into-100-social-media-posts-with-deepseek)
- [**Create a private document Q&A system with Llama3 and Postgres** 17 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/create-a-private-document-q-and-a-system-with-llama3-and-pos)
