Index approved SurrealDB articles with OpenAI embeddings
Generate search vectors for up to ten approved articles and save each vector only while its source revision still matches.
8 stepsOperationsProduct and engineering
Free to start, no card required.
How it works
When this happens
Check for articles to index
Schedule
Step 1 · SurrealDB
Read approved article revisions
Step 2 · Code
Check the pending article batch
Step 3
Index each approved article

Step 4 · OpenAI
Generate the search vector
Step 5 · Code
Match the vector to its revision
Step 6 · SurrealDB
Save the matching article vector
Step 7 · Code
Check the conditional update
Repeats for every item
Before you start
Create kb_article with a unique article_key, integer revision, text body and boolean search_approved; allow the flow to write embedding, embedding_revision and embedding_model. Increment revision whenever the text changes and approve only articles authorized for OpenAI. Each run reads ten pending articles of up to 2,000 characters, so keep individual articles or chunks within that limit.
Similar templates
See all 419 in Operations- Index public pages in Pinecone with Firecrawl and OpenAIRefresh embeddings for changed public articles and remove withdrawn articles or obsolete passages from the Pinecone index.Uses Schedule, Storage, Firecrawl, OpenAI, Pinecone20 steps · Product and engineering
- Email the IT team about expiring Entra app secretsSend Azure Communication Services email to IT when a registered Microsoft Entra app has a client secret due to expire within 30 days.Uses Schedule, Azure Active Directory, Storage, Azure Communication Services10 steps · Operations
- Withdraw retired Azure Blob Storage revisions from GoodMemRemove the search entry for an explicitly withdrawn document revision and keep the original blob for the records team.Uses Schedule, Azure Blob Storage, GoodMem13 steps · Operations
Your first automationstarts with one sentence.
Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.