AI Prompt Hub (Notion + ChatGPT): Auto-Find the Right Prompt with Embeddings
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 meaning - not keywords.
Perfect for developers who maintain dozens of prompts and want ChatGPT to pick the right one automatically.
Key Features
🔍 Semantic Prompt Search - Finds the best prompt using HuggingFace embeddings
đź§ AI Agent Integration - ChatGPT automatically calls the prompt-search workflow
📚 Notion Prompt Database - Store unlimited prompts with auto-generated embeddings
⚡ Automatic Embedding Sync - Regenerates vectors when prompts change
This template is ideal for:
AI automations
Prompt engineering
DevOps and backend engineers who reuse prompts
Teams managing large prompt libraries
How it works
The user sends any message to the ChatGPT interface
The n8n AI Agent calls a sub-workflow that performs semantic search in Notion
HuggingFace converts both the message and saved prompts into vector embeddings
The workflow returns the most similar prompt, which ChatGPT can use automatically
Setup Instructions (15–20 minutes)
Import this template into your n8n instance
Set credentials for Notion, OpenAI, and HuggingFace
Create a Notion database with:
Prompt (Text)
Embeddings (Text)
Checksum (Text)
Paste your Notion database ID in:
“Get All Prompts”
“On Page Update”
“On Page Create”
“Get All Prompts for Search”
Enable the workflow and open the URL from “When chat message received” to start chatting
Type any request - the system will search for a matching prompt automatically
Documentation & Demo
Full documentation and examples:
https://github.com/YahorDubrouski/ai-planner/blob/main/documentation/prompt-hub/README.md
Related Templates
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🤖 Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
Smart Sales Support Chatbot with GPT-4o and Google Sheets
Who is this tempate for? This workflow powers a simple yet effective customer and sales support chatbot for your webshop...
đź”’ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments