Templates / AI prompt hub (Notion + ChatGPT): auto-find the right prompt with embeddings

AI prompt hub (Notion + ChatGPT): auto-find the right prompt with embeddings

Ready for 3.0

by Yahor Dubrouski · 307 views · created 2025-11-24 · Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs on Notion events (plus 4 other triggers). Along the way it connects OpenAI Chat Model and Notion. It also calls router.huggingface.co over HTTP.

How it runs

Trigger: On Notion events (plus 4 other triggers).

  1. Generate Checksum (Code): runs custom JavaScript code
  2. Get All Prompts (Notion): get many (database page)
  3. Get Question Embeddings (HTTP Request): calls router.huggingface.co (POST)
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search a Prompt); memory: Simple Memory
  5. If: checks a condition and branches into true / false
  6. Get All Prompts for search (Notion): get many (database page)
  7. Get Embeddings (HTTP Request): calls router.huggingface.co (POST)
  8. Find a prompt (Code): runs custom JavaScript code
  9. Prepare Update Body (Code): runs custom JavaScript code
  10. Save Embeddings + Checksum (HTTP Request): calls an HTTP API (PATCH)

Services it uses

OpenAI Chat ModelNotion

HTTP calls to: router.huggingface.co

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (12)

From the author

Overview Build your own AI Prompt Hub inside n8n. This template lets ChatGPT automatically search your saved prompts in Notion using semantic embeddings from HuggingFace. Each time a user sends a message, the workflow finds the most relevant prompt based on…

Excerpt from Yahor Dubrouski's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.