Automation library · Data collection

Generate and deploy Notion chat assistants with OpenAI

Started by someone opening a chat with it, and works across Notion. It hands the judgement calls to OpenAI. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 6Logic 15Service 2

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

  1. 1Chat: Request Notion Database URLChat triggerStarts it
  2. 2OpenAI Model (Generator)Lm Chat Open AiModel
  3. 3OpenAI Model (Fixer / Classifier)Lm Chat Open AiModel
  4. 4OpenAI Model (Fixer / Classifier) copyLm Chat Open AiModel
  5. 5ConfigurationSetLogic
  6. 6Generate Assistant WorkflowAgentModel
  7. 7Structured Output ParserOutput Parser StructuredModel
  8. 8Valid n8n Workflow JSON?Text ClassifierModel
  9. 9Get Notion Database SchemaNotionService
  10. 10Extract Generated WorkflowSetLogic
  11. 11Build Deployment PayloadCodeLogic
  12. 12Merge Failed AttemptsMergeLogic
  13. 13Standardize Database SchemaSetLogic
  14. 14Reply: Invalid Notion URLSetLogic
  15. 15Check for Placeholder BugSwitchLogic
  16. 16Deploy Workflow via n8n APIHttp RequestService
  17. 17Retry Limit Reached?IfLogic
  18. 18Simplify Schema PropertiesCodeLogic
  19. 19Reply: Deployment SuccessSetLogic
  20. 20Reply: Deploy Failed (Fallback JSON)SetLogic
  21. 21Reply: Generation FailedSetLogic
  22. 22Add Feedback PromptSetLogic
  23. 23Prepare Agent InputCodeLogic
  24. 24Prepare RetrySetLogic

How it's built

Starts on
Someone opening a chat with it
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Notion
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with 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?

Take your time. At 24 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 24 steps before you point it at anything that matters.