Improve AI support email drafts with Gmail, OpenAI and PostgreSQL
⏰ Schedule - Every 3 Hours
🗄️ DB - Get Last Watermark
postgres
⚙️ Set Watermark
🗄️ DB - Start Run Log
postgres
⚙️ Carry Run Context
📧 Gmail - Fetch Sent Emails
gmail
🔄 Loop - Sent Emails
noOp
🗄️ DB - Match Thread ID
postgres
❓ IF - Draft Match Found?
❓ IF - Already Processed?
🤖 AI - Compare Draft vs Sent
openai
OpenAI Chat Model - Compare
gpt-4o-mini
⚙️ Parse AI Comparison
❓ IF - Approved As-Is?
🗄️ DB - Mark Approved As-Is
postgres
🔢 Generate Embedding - Human Sent
api.openai.com
⚙️ Extract Embedding
🗄️ DB - Save Correction
postgres
🗄️ DB - Mark Draft Processed
postgres
❓ IF - KB Update Needed?
🗄️ DB - Fetch KB Entry to Update
postgres
🤖 AI - Rewrite KB Answer
openai
🗄️ DB - Update KB Entry
postgres
🗄️ DB - Mark KB Updated
postgres
🗄️ DB - Complete Run Log
postgres
📧 Gmail - Fetch Full Message
⚙️ Parse Full Message Body
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.