Skip to content
FlowHubFluxonLab
Postgres
RAG & Knowledge Basesfree

Feedback Loop

by Vivekanand MUpdated Aug 2026
RequiresPostgresPostgresGmailGmailOpenAI
Share Post Share
Sc⏰ Schedule - Every 3 Hours⏰ Schedule - Ev…🗄️ DB - Get Last Watermark🗄️ DB - Get La…Co⚙️ Set Watermark🗄️ DB - Start Run Log🗄️ DB - Start …Co⚙️ Carry Run Context⚙️ Carry Run Co…📧 Gmail - Fetch Sent Emails📧 Gmail - Fetc…SI🔄 Loop - Sent Emails🔄 Loop - Sent …🗄️ DB - Match Thread ID🗄️ DB - Match …If❓ IF - Draft Match Found?❓ IF - Draft Ma…If❓ IF - Already Processed?❓ IF - Already …Ag🤖 AI - Compare Draft vs Sent🤖 AI - Compare…OpenAI Chat Model - CompareOpenAI Chat Mod…Co⚙️ Parse AI Comparison⚙️ Parse AI Com…If❓ IF - Approved As-Is?❓ IF - Approved…🗄️ DB - Mark Approved As-Is🗄️ DB - Mark A…HR🔢 Generate Embedding - Human Sent🔢 Generate Emb…Co⚙️ Extract Embedding⚙️ Extract Embe…🗄️ DB - Save Correction🗄️ DB - Save C…🗄️ DB - Mark Draft Processed🗄️ DB - Mark D…If❓ IF - KB Update Needed?❓ IF - KB Updat…🗄️ DB - Fetch KB Entry to Update🗄️ DB - Fetch …🤖 AI - Rewrite KB Answer🤖 AI - Rewrite…🗄️ DB - Update KB Entry🗄️ DB - Update…🗄️ DB - Mark KB Updated🗄️ DB - Mark K…🗄️ DB - Complete Run Log🗄️ DB - Comple…HR📧 Gmail - Fetch Full Message📧 Gmail - Fetc…Co⚙️ Parse Full Message Body⚙️ Parse Full M…12345678910111213141516171819202122232425262728293031
1/5
STEPS · 31
Runs on a schedule

On a schedule, pulls feedback records from Postgres, analyzes them with an OpenAI agent, and emails the results via Gmail.

Tags

cronadvancedPostgresGmailTicket ManagementAI RAGdiscoveredpending-review
Connects
postgresPostgresgmailGmailOpenAI
CategoryRAG & Knowledge Bases
Triggercron
Complexityadvanced
Nodes27
AddedJun 27, 2026