diff --git a/workflows/Improve AI support email drafts with Gmail, OpenAI and PostgreSQL-13978/improve_ai_support_email_drafts_with_gmail_openai_and_postgresql.json b/workflows/Improve AI support email drafts with Gmail, OpenAI and PostgreSQL-13978/improve_ai_support_email_drafts_with_gmail_openai_and_postgresql.json new file mode 100644 index 000000000..b25d7a148 --- /dev/null +++ b/workflows/Improve AI support email drafts with Gmail, OpenAI and PostgreSQL-13978/improve_ai_support_email_drafts_with_gmail_openai_and_postgresql.json @@ -0,0 +1 @@ +{"id":"OLnCF91fbGB6E9FGthJXi","meta":{"instanceId":"19d43a8cad94d007140e13e21de07af2d4119a87745d1049407d721b4880fabd","templateCredsSetupCompleted":true},"name":"Feedback Loop","tags":[],"nodes":[{"id":"5c7d4f79-b479-4c40-a092-0934e2e87169","name":"⏰ Schedule - Every 3 Hours","type":"n8n-nodes-base.scheduleTrigger","position":[-2352,640],"parameters":{"rule":{"interval":[{"field":"hours","hoursInterval":3}]}},"typeVersion":1.2},{"id":"fc095fb7-cdad-4f45-8384-d533101cbfe7","name":"🗄️ DB - Get Last Watermark","type":"n8n-nodes-base.postgres","position":[-2176,640],"parameters":{"query":"SELECT last_processed_sent_at FROM feedback_run_log WHERE status = 'completed' ORDER BY run_completed_at DESC LIMIT 1;","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"43c7801f-2e51-4970-a498-c90de6cb3283","name":"⚙️ Set Watermark","type":"n8n-nodes-base.code","position":[-1952,640],"parameters":{"jsCode":"const rows = $input.all();\nlet watermark;\n\nif (rows && rows.length > 0 && rows[0].json && rows[0].json.last_processed_sent_at) {\n watermark = rows[0].json.last_processed_sent_at;\n} else {\n // First run ever — go back 7 days\n const d = new Date();\n d.setDate(d.getDate() - 7);\n watermark = d.toISOString();\n}\n\n// Unix timestamp for Gmail query\nconst unixTs = Math.floor(new Date(watermark).getTime() / 1000);\n\nreturn [{ json: { watermark, unixTs } }];"},"typeVersion":2},{"id":"1fbc336f-2d9a-45ff-8448-11a585b2ed94","name":"🗄️ DB - Start Run Log","type":"n8n-nodes-base.postgres","position":[-1728,640],"parameters":{"query":"INSERT INTO feedback_run_log (run_started_at, status) VALUES (NOW(), 'running') RETURNING id;","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"424f2c18-4a90-414d-85af-00f6ec627dfa","name":"⚙️ Carry Run Context","type":"n8n-nodes-base.code","position":[-1504,640],"parameters":{"jsCode":"// Carry run_log_id forward alongside watermark\nconst runLogId = $input.first().json.id;\nconst watermark = $('⚙️ Set Watermark').first().json.watermark;\nconst unixTs = $('⚙️ Set Watermark').first().json.unixTs;\n\nreturn [{ json: { runLogId, watermark, unixTs } }];"},"typeVersion":2},{"id":"08bf8015-b08f-42a2-9c58-4c5719fd0723","name":"📧 Gmail - Fetch Sent Emails","type":"n8n-nodes-base.gmail","position":[-1280,640],"webhookId":"fbafdf23-db72-4bce-8a60-ea2403406e68","parameters":{"filters":{"q":"=in:sent after:{{ $json.unixTs }}"},"operation":"getAll","returnAll":true},"credentials":{"gmailOAuth2":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.2,"alwaysOutputData":true},{"id":"d21b20f9-d259-440f-a426-00b08189b29c","name":"🔄 Loop - Sent Emails","type":"n8n-nodes-base.splitInBatches","position":[-1056,640],"parameters":{"options":{"reset":false}},"typeVersion":3},{"id":"8d74b94a-7d0f-4575-8de6-883e8e72ce2c","name":"🗄️ DB - Match Thread ID","type":"n8n-nodes-base.postgres","position":[16,912],"parameters":{"query":"SELECT id, gmail_thread_id, gmail_message_id, original_email_body, classification, ai_draft_text, feedback_processed_at, was_approved_as_is FROM ai_drafts WHERE gmail_thread_id = '{{ $json.threadId }}' LIMIT 1;","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6,"alwaysOutputData":true},{"id":"4f9b5c5b-e2b2-48dc-9e22-794577d816da","name":"❓ IF - Draft Match Found?","type":"n8n-nodes-base.if","position":[224,912],"parameters":{"options":{},"conditions":{"options":{"version":3,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"b1+1234567890-+1234567890","operator":{"type":"number","operation":"exists","singleValue":true},"leftValue":"={{ $json.id }}","rightValue":""}]}},"typeVersion":2.3},{"id":"fb1cd898-8b4c-4d4f-9945-7b03e1e489e2","name":"❓ IF - Already Processed?","type":"n8n-nodes-base.if","position":[-784,288],"parameters":{"options":{},"conditions":{"options":{"version":3,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"b1+1234567890-+1234567890","operator":{"type":"string","operation":"empty"},"leftValue":"={{ $json.feedback_processed_at }}","rightValue":""}]}},"typeVersion":2.3},{"id":"f982e930-4766-4015-b4e5-1f4882351e62","name":"🤖 AI - Compare Draft vs Sent","type":"@n8n/n8n-nodes-langchain.agent","position":[-576,272],"parameters":{"text":"=ORIGINAL CUSTOMER EMAIL:\n{{ $('🔄 Loop - Sent Emails').item.json.text || $('🔄 Loop - Sent Emails').item.json.body || '' }}\n\nAI DRAFT (what the system generated):\n{{ $('🗄️ DB - Match Thread ID').item.json.ai_draft_text }}\n\nHUMAN SENT (what was actually sent to the customer):\n{{ $json.text || $json.body || '' }}\n\nCLASSIFICATION: {{ $('🗄️ DB - Match Thread ID').item.json.classification }}\n\nAnalyze the difference between the AI draft and the human-sent email. Respond ONLY with this exact JSON, no markdown, no explanation:\n{\n \"approved_as_is\": true or false,\n \"edit_type\": \"none\" or \"minor_edits\" or \"major_rewrite\",\n \"diff_summary\": \"Plain English description of what changed and why it likely changed. Be specific.\",\n \"tone_shift\": \"more_formal\" or \"more_casual\" or \"same\" or \"n/a\",\n \"info_added\": true or false,\n \"info_removed\": true or false,\n \"kb_update_needed\": true or false,\n \"kb_update_reason\": \"Why the KB needs updating, or null if not needed\",\n \"kb_category\": \"The category from the classification that should be updated, or null\",\n \"kb_new_info\": \"The specific new information or correction to add to the KB, or null\"\n}","options":{"maxIterations":3},"promptType":"define"},"typeVersion":3.1},{"id":"421e6376-4c88-45c8-b1ea-3127e51682fd","name":"OpenAI Chat Model - Compare","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[-320,144],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o-mini","cachedResultName":"gpt-4o-mini"},"options":{"maxTokens":800,"temperature":0,"presencePenalty":0,"frequencyPenalty":0},"builtInTools":{}},"credentials":{"openAiApi":{"id":"credential-id","name":"Credential Name"}},"typeVersion":1.3},{"id":"6e4090dc-8610-45f7-af03-df16ba65a569","name":"⚙️ Parse AI Comparison","type":"n8n-nodes-base.code","position":[-224,272],"parameters":{"jsCode":"const item = $input.first().json;\nconst rawOutput = item.output || '';\nconst cleaned = rawOutput\n .replace(/```json/gi, '')\n .replace(/```/g, '')\n .trim();\n\nlet parsed;\ntry {\n parsed = JSON.parse(cleaned);\n} catch(e) {\n parsed = {\n approved_as_is: false,\n edit_type: 'parse_error',\n diff_summary: 'Failed to parse AI comparison response',\n tone_shift: 'n/a',\n info_added: false,\n info_removed: false,\n kb_update_needed: false,\n kb_update_reason: null,\n kb_category: null,\n kb_new_info: null\n };\n}\n\n// Carry through the sent email body and thread context\n// The loop item flows into DB - Match Thread ID as input\n// so reference the sent email body from the IF node before it\nconst sentBody = $('⚙️ Parse Full Message Body').item.json.sentBody || '';\nconst draftId = $('🗄️ DB - Match Thread ID').item.json.id;\nconst originalBody = $('🗄️ DB - Match Thread ID').item.json.original_email_body;\nconst classification = $('🗄️ DB - Match Thread ID').item.json.classification;\nconst aiDraftText = $('🗄️ DB - Match Thread ID').item.json.ai_draft_text;\n\nreturn [{\n json: {\n ...parsed,\n sentBody,\n draftId,\n originalBody,\n classification,\n aiDraftText\n }\n}];"},"typeVersion":2},{"id":"a287218e-4a5e-4dab-99ea-0e33da8b1873","name":"❓ IF - Approved As-Is?","type":"n8n-nodes-base.if","position":[0,272],"parameters":{"options":{},"conditions":{"options":{"version":3,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"b1+1234567890-+1234567890","operator":{"type":"boolean","operation":"equals"},"leftValue":"={{ $json.approved_as_is }}","rightValue":true}]}},"typeVersion":2.3},{"id":"0155b7f2-bcd4-4819-a00e-e7d07b06485a","name":"🗄️ DB - Mark Approved As-Is","type":"n8n-nodes-base.postgres","position":[224,256],"parameters":{"query":"UPDATE ai_drafts SET was_approved_as_is = TRUE, feedback_processed_at = NOW() WHERE id = {{ $json.draftId }};","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"c8362985-ba49-4170-a9ae-bb10647966fd","name":"🔢 Generate Embedding - Human Sent","type":"n8n-nodes-base.httpRequest","position":[64,528],"parameters":{"url":"https://api.openai.com/v1/embeddings","method":"POST","options":{},"sendBody":true,"authentication":"predefinedCredentialType","bodyParameters":{"parameters":[{"name":"model","value":"text-embedding-3-small"},{"name":"input","value":"={{ $json.sentBody }}"}]},"nodeCredentialType":"openAiApi"},"credentials":{"openAiApi":{"id":"credential-id","name":"Credential Name"}},"typeVersion":4.4},{"id":"37c6deac-6deb-4b41-9270-3e817766f76b","name":"⚙️ Extract Embedding","type":"n8n-nodes-base.code","position":[288,528],"parameters":{"jsCode":"const item = $input.first().json;\nconst embeddingArray = item.data[0].embedding;\nconst vectorString = '[' + embeddingArray.join(',') + ']';\n\nconst prev = $('⚙️ Parse AI Comparison').first().json;\n\nreturn [{\n json: {\n embedding: vectorString,\n sentBody: prev.sentBody,\n draftId: prev.draftId,\n originalBody: prev.originalBody,\n classification: prev.classification,\n aiDraftText: prev.aiDraftText,\n diff_summary: prev.diff_summary,\n kb_update_needed: prev.kb_update_needed,\n kb_update_reason: prev.kb_update_reason,\n kb_category: prev.kb_category,\n kb_new_info: prev.kb_new_info\n }\n}];"},"typeVersion":2},{"id":"2e318078-fee1-4729-a59b-1816a7db3188","name":"🗄️ DB - Save Correction","type":"n8n-nodes-base.postgres","position":[512,528],"parameters":{"query":"INSERT INTO corrections (\n ai_draft_id,\n original_email_body,\n classification,\n ai_draft_text,\n human_sent_text,\n diff_summary,\n embedding,\n source,\n kb_updated\n) VALUES (\n {{ $json.draftId }},\n $1,\n $2,\n $3,\n $4,\n $5,\n $6::vector,\n 'feedback_loop',\n FALSE\n) RETURNING id;","options":{"queryReplacement":"={{ [$json.originalBody, $json.classification, $json.aiDraftText, $json.sentBody, $json.diff_summary, $json.embedding] }}"},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"33d6c979-c122-4efc-9e54-21ece23e788e","name":"🗄️ DB - Mark Draft Processed","type":"n8n-nodes-base.postgres","position":[736,528],"parameters":{"query":"UPDATE ai_drafts SET feedback_processed_at = NOW() WHERE id = {{ $('⚙️ Extract Embedding').item.json.draftId }};","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"afffe5e1-9615-4342-939a-4202a3dc163f","name":"❓ IF - KB Update Needed?","type":"n8n-nodes-base.if","position":[944,528],"parameters":{"options":{},"conditions":{"options":{"version":3,"leftValue":"","caseSensitive":true,"typeValidation":"strict"},"combinator":"and","conditions":[{"id":"b1+1234567890-+1234567890","operator":{"type":"boolean","operation":"equals"},"leftValue":"={{ $('⚙️ Parse AI Comparison').item.json.kb_update_needed }}","rightValue":true}]}},"typeVersion":2.3},{"id":"ac859ee7-262e-4f49-897c-0b8ee107248e","name":"🗄️ DB - Fetch KB Entry to Update","type":"n8n-nodes-base.postgres","position":[1168,512],"parameters":{"query":"SELECT id, category, question, answer FROM kb_data WHERE category = $1 ORDER BY updated_at DESC LIMIT 1;","options":{"queryReplacement":"={{ [$('⚙️ Parse AI Comparison').item.json.kb_category] }}"},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"87e04269-1321-4be0-9466-eb806f54b907","name":"🤖 AI - Rewrite KB Answer","type":"@n8n/n8n-nodes-langchain.openAi","position":[1360,512],"parameters":{"modelId":{"__rl":true,"mode":"list","value":"gpt-4o-mini"},"options":{"maxTokens":500,"temperature":0.2},"simplify":false,"responses":{"values":[{"role":"system","content":"You are updating a knowledge base entry for a customer support system at InCred Money, a platform for trading unlisted pre-IPO shares. Rewrite the KB answer to incorporate new information while preserving all existing correct content. Respond with ONLY the new answer text. No preamble, no explanation, no markdown."},{"content":"=EXISTING KB ENTRY:\nCategory: {{ $json.category }}\nQuestion: {{ $json.question }}\nCurrent Answer: {{ $json.answer }}\n\nNEW INFORMATION TO INCORPORATE:\n{{ $('⚙️ Parse AI Comparison').item.json.kb_new_info }}\n\nREASON FOR UPDATE:\n{{ $('⚙️ Parse AI Comparison').item.json.kb_update_reason }}\n\nRewrite the answer incorporating the new information."}]},"builtInTools":{}},"credentials":{"openAiApi":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.1},{"id":"d3eb84c2-227a-466f-80f2-57dbf087e1cf","name":"🗄️ DB - Update KB Entry","type":"n8n-nodes-base.postgres","position":[1696,512],"parameters":{"query":"UPDATE kb_data SET previous_answer = answer, answer = $1, updated_by = 'ai_feedback_loop', updated_at = NOW() WHERE id = {{ $('🗄️ DB - Fetch KB Entry to Update').item.json.id }};","options":{"queryReplacement":"={{ [$json.message?.content?.[0]?.text || $json.output || ''] }}"},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"ca26d98e-853e-4d13-9dc0-4b8cfd229624","name":"🗄️ DB - Mark KB Updated","type":"n8n-nodes-base.postgres","position":[1888,624],"parameters":{"query":"UPDATE corrections SET kb_updated = TRUE WHERE ai_draft_id = {{ $('⚙️ Extract Embedding').item.json.draftId }} AND source = 'feedback_loop' ORDER BY created_at DESC LIMIT 1;","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"a3437287-ee6e-46bb-b8a4-f5f2bc4795c3","name":"🗄️ DB - Complete Run Log","type":"n8n-nodes-base.postgres","position":[-784,560],"parameters":{"query":"UPDATE feedback_run_log SET run_completed_at = NOW(), last_processed_sent_at = NOW(), status = 'completed' WHERE id = {{ $('🗄️ DB - Start Run Log').first().json.id }};","options":{},"operation":"executeQuery"},"credentials":{"postgres":{"id":"credential-id","name":"Credential Name"}},"typeVersion":2.6},{"id":"554c5627-7ed7-4234-864b-498f40054607","name":"📧 Gmail - Fetch Full Message","type":"n8n-nodes-base.httpRequest","position":[-384,912],"parameters":{"url":"=https://www.googleapis.com/gmail/v1/users/me/messages/{{ $json.id }}?format=full","options":{},"authentication":"predefinedCredentialType","nodeCredentialType":"gmailOAuth2"},"credentials":{"gmailOAuth2":{"id":"credential-id","name":"Credential Name"}},"typeVersion":4.4},{"id":"5bd58454-bc56-4850-9f90-e8c53cbeaeeb","name":"⚙️ Parse Full Message Body","type":"n8n-nodes-base.code","position":[-192,912],"parameters":{"jsCode":"const item = $input.first().json;\n\nfunction decodeBase64url(str) {\n if (!str) return '';\n return Buffer.from(str.replace(/-/g, '+').replace(/_/g, '/'), 'base64').toString('utf-8');\n}\n\nfunction extractTextPlain(payload) {\n if (!payload) return '';\n\n // CASE 1: Direct body.data on payload (text/plain, no parts) ← this email's structure\n if (payload.mimeType === 'text/plain' && payload.body?.data) {\n return decodeBase64url(payload.body.data);\n }\n\n // CASE 2: Nested parts (multipart/alternative, multipart/mixed etc.)\n if (payload.parts && payload.parts.length > 0) {\n for (const part of payload.parts) {\n const result = extractTextPlain(part); // recursive\n if (result) return result;\n }\n }\n\n return '';\n}\n\nfunction stripQuotedReply(text) {\n const lines = text.split('\\n');\n const replyLines = [];\n for (const line of lines) {\n if (line.startsWith('>')) break;\n if (/^On .+wrote:$/i.test(line.trim())) break;\n if (line.includes('---------- Forwarded message')) break;\n replyLines.push(line);\n }\n return replyLines.join('\\n').replace(/\\r/g, '').replace(/\\n{3,}/g, '\\n\\n').trim();\n}\n\nlet sentBody = extractTextPlain(item.payload);\nsentBody = stripQuotedReply(sentBody);\n\nif (!sentBody) sentBody = item.snippet || '';\n\nconst loopItem = $('🔄 Loop - Sent Emails').item.json;\n\nreturn [{\n json: {\n ...loopItem,\n sentBody,\n threadId: item.threadId,\n messageId: item.id\n }\n}];"},"typeVersion":2},{"id":"b47598a7-6bbd-4cb8-a30f-d6e3415949d6","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[-3168,32],"parameters":{"width":656,"height":848,"content":"## Self-learning feedback loop for AI email drafts\n\nThis workflow runs every 3 hours and checks which AI-generated \nemail drafts have been reviewed and sent by the support team. \nIt compares the AI draft against what was actually sent, learns \nfrom the differences, and stores human-approved responses as \ntraining examples for future drafts.\n\nOver time, the main email workflow surfaces increasingly relevant \npast responses via vector similarity search — no fine-tuning needed.\n\n## How it works\n\n1. Fetches watermark from last completed run — only new sent \n emails are processed each time\n2. Gmail Sent folder is fetched since the watermark timestamp\n3. Each sent email is matched to an AI draft via thread ID\n4. Already-processed drafts are skipped automatically\n5. AI compares the draft vs actual sent email and classifies \n the type of edit made\n6. If sent unchanged — marked approved-as-is, loop continues\n7. If edited — embedding generated, correction saved to DB \n for future similarity search\n8. If edit reveals missing KB info — KB entry auto-updated\n\n## Setup steps\n\n1. Connect Gmail OAuth2 to the Gmail Fetch Sent node\n2. Connect PostgreSQL credential to all DB nodes\n3. Connect OpenAI API to the Chat Model and embedding nodes\n4. Run the DB migration SQL to add feedback columns and \n create the feedback_run_log table\n5. Ensure Workflow 1 (email draft automation) is already \n active and generating drafts\n6. Activate — runs automatically every 3 hours"},"typeVersion":1},{"id":"2ca9131b-ae98-41be-ac18-2e94c02d6155","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[-2496,480],"parameters":{"color":7,"width":1360,"height":400,"content":"## Schedule & Fetch Emails\n\nRuns every 3 hours. Fetches last_processed_sent_at from the \nmost recent completed run as a watermark — so only new sent \nemails are fetched each time. First-ever run defaults to 7 days ago."},"typeVersion":1},{"id":"4e9841ac-1ea9-4fae-a97e-8cca892f5771","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[-864,832],"parameters":{"color":7,"width":1280,"height":336,"content":"## Loop & thread matching\n\nProcesses one sent email at a time. Full message body is fetched \nvia Gmail API separately — the Sent folder list only returns a \nsnippet. Each email is matched to an AI draft by thread ID. \nNo match or already processed = skip."},"typeVersion":1},{"id":"2aebc058-79a7-4de6-9fd7-16593f15919a","name":"Sticky Note3","type":"n8n-nodes-base.stickyNote","position":[-864,-16],"parameters":{"color":7,"width":1280,"height":480,"content":"## AI comparison & branching\n\nGPT-4o-mini compares the AI draft vs human-sent email and returns \nedit type, a plain-English diff summary, and whether a KB update \nis needed.\n\nApproved as-is → mark draft, continue loop\nEdited/rewritten → generate embedding, save to corrections table"},"typeVersion":1},{"id":"d41b364f-5010-4a01-95dd-564bf474b2e5","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[-464,480],"parameters":{"color":7,"width":2528,"height":336,"content":"## Corrections & KB update\n\nHuman-edited pairs are embedded and saved to the corrections \ntable — this is what Workflow 1 queries for similarity search \nwhen drafting future replies.\n\nIf the edit contained new information, the matching KB entry \nis rewritten by AI. Previous answer is preserved for audit."},"typeVersion":1}],"active":false,"pinData":{"⚙️ Extract Embedding":[{"json":{"draftId":12,"sentBody":"Hello Prakash,\n\nThank you for reaching out regarding the referral amount discrepancy.\nWe understand your concern about receiving Rs. 238 instead of the\nexpected Rs. 400 voucher.\n\nTo assist you further, we recommend checking if there were any terms\nor conditions associated with the referral program that might have\naffected the final amount. If everything seems in order, please\nprovide us with any additional details, and we will investigate this\nmatter for you.\n\nWe'd also like to share the deatils with you that your account is\nworking fine and should be good.\n\nRegards, Team InCred Money","embedding":"[0.010643272,-0.0006213155,-0.0011304278,0.009305993,0.000008771835,0.011736298,0.024461815,0.04655439,-0.016719034,-0.0024257256,0.07298243,-0.06677844,-0.029505616,-0.0068940064,0.07791632,0.011943912,-0.015851941,0.013311722,-0.07317784,0.073666334,0.027282923,0.011559215,0.036515642,-0.004671315,-0.0014868827,-0.028406482,-0.017464003,-0.04367222,0.066876136,-0.012346928,0.015143611,-0.01985767,0.020614851,-0.0002700127,-0.038616206,0.018013569,-0.04872823,0.0054803994,0.021543007,-0.003419525,-0.050902072,0.021396456,0.0047598565,0.030629173,-0.0018120429,0.015290162,0.0031966453,-0.015168035,-0.0038378062,0.052465282,-0.059597436,0.0030989444,-0.037468225,0.049314436,0.011089031,-0.00058505934,0.06423822,0.019796606,0.015913004,-0.04218228,-0.0073092347,-0.0053674327,-0.019992009,0.018074632,-0.008011458,0.0076206555,-0.03839638,0.084706515,0.018880663,-0.029505616,-0.041132,0.06282156,0.010802035,0.010618846,0.0059994343,0.0039019221,0.00041179324,-0.028357632,0.0414251,0.010960799,0.028382057,-0.04623686,0.005785714,0.02183611,-0.03150848,-0.039275687,-0.032192387,0.007809951,-0.0057887672,-0.006545948,0.017867018,0.016523633,0.006784093,0.024498453,0.032412212,-0.033853296,-0.019320317,-0.02155522,-0.007797738,0.02684327,0.033902146,-0.017183112,0.029114813,-0.02443739,0.010569996,0.03378002,0.0067474553,-0.01613283,0.010887523,-0.018050207,-0.022373464,-0.020578213,-0.013555974,0.017573915,-0.0064238217,0.037956726,-0.03334037,-0.050218165,-0.0014471918,0.012847643,-0.044844627,0.015021484,0.026550168,-0.035343233,-0.025841838,-0.00410343,0.030580323,0.019283678,-0.003108104,-0.015546626,0.009825028,0.0062833773,-0.018844025,0.016670184,-0.011046287,0.019271465,0.019674482,0.0037828495,-0.016169468,-0.07381289,-0.033853296,-0.011058499,-0.055591706,-0.019356953,-0.012383565,-0.020981228,-0.009476969,-0.03297399,-0.0012418677,-0.016328232,-0.017720466,0.023790123,-0.033462495,-0.012908706,-0.01791587,0.020773614,0.025622012,0.032338936,-0.021958236,0.025670862,0.003895816,-0.0033645683,-0.006741349,-0.008286241,-0.0019311156,-0.011278326,-0.055298604,-0.038640633,-0.052514132,-0.02203151,-0.014276517,-0.013336147,-0.05910893,-0.022861967,0.04914346,0.012981982,0.026525743,-0.030824576,0.030360496,-0.036833167,0.0015616849,-0.03541651,0.022116998,0.013494911,-0.030873425,-0.0059383716,-0.008017565,-0.0064116092,0.024803769,0.032021407,0.007278703,-0.04027712,-0.0102891065,-0.021713983,-0.08626973,-0.03622254,-0.008194648,0.015509988,-0.040203843,0.015607689,0.019124914,-0.067902,0.031239804,0.10033863,-0.057838824,-0.059304334,-0.033047266,-0.026232641,-0.017537277,-0.00095716165,0.04943656,-0.023240557,-0.0340487,-0.024901468,-0.008927403,-0.01906385,-0.032338936,0.024583941,-0.009947154,-0.045723934,0.017573915,0.009934941,-0.004106483,0.017696042,0.0029584998,0.025841838,0.05515205,0.011614172,-0.035025705,-0.027820278,0.014850508,0.029652167,-0.00067741703,-0.025402185,0.01867305,0.0040087826,0.044869054,0.035318807,0.023448171,-0.05104862,-0.015106972,0.010795929,0.02127433,0.030262796,0.01646257,-0.020724764,-0.00064650393,-0.02387561,0.0067718807,-0.006155145,0.013714737,-0.0017631926,0.034512777,-0.04963196,-0.016987711,-0.04665209,0.017305238,0.06672959,0.028137805,-0.056031357,0.04650554,-0.020358386,-0.072933584,-0.009495288,0.03566076,-0.002756992,0.0061032414,0.025499886,-0.02381455,0.042524233,-0.012713306,0.006777987,0.032754164,0.034683753,0.002642499,0.02051715,0.02830878,-0.0012266019,-0.0018532604,-0.007907651,-0.031239804,0.022984093,-0.030629173,0.015363437,-0.031923708,-0.009165548,0.052367583,-0.0061643044,-0.0012464473,0.019943157,-0.0035324914,-0.03368232,-0.014569619,0.0073458725,0.040057294,-0.0005846777,-0.00028642337,-0.028040105,0.04000844,0.009464757,-0.014325367,0.0051018093,0.003294346,0.043818768,-0.0135804,-0.002940181,0.07542495,0.008225178,0.022935241,0.0031905388,0.042670786,0.03250991,0.0004633151,-0.058571577,0.036833167,0.027747003,0.058083072,-0.036955293,-0.010399019,0.04623686,-0.0094464375,0.025499886,0.009067847,-0.011027968,0.05627561,-0.0049247267,-0.031190952,-0.015436713,0.019161552,0.02330162,0.01816012,0.011021862,0.0051353937,-0.02140867,-0.03995959,0.057838824,0.0307513,0.022129212,-0.013275084,0.014410855,-0.062479608,-0.036027137,0.020627063,-0.017280813,-0.033926573,-0.030971127,0.014410855,0.020969015,0.04736042,0.036149263,-0.00879917,0.00875032,0.043501243,0.018025782,0.008359517,0.013189596,0.025060233,-0.004146174,-0.02443739,-0.003129476,-0.06301696,0.026379192,0.026574593,0.012224802,-0.009373162,0.015619902,-0.046383414,-0.03551421,-0.0019647002,-0.034121975,0.0033493026,0.01235914,-0.023460384,-0.0146795325,-0.061991103,-0.06145375,0.0023570296,0.016853373,0.03070245,0.014630682,0.063407764,-0.006356653,0.00218758,-0.02862631,0.04589491,0.031044401,-0.02872401,-0.03485473,0.014740595,-0.004311044,0.027795853,0.021384243,-0.0055353562,-0.021433095,0.049119033,-0.0008052676,-0.02679442,0.034170825,0.05173253,0.008304561,0.03250991,-0.021738408,0.00257075,0.024986958,0.00014607402,0.016059555,0.006490991,-0.014948209,-0.010508933,-0.012249227,0.0340487,-0.08065194,0.004314097,-0.0954536,-0.019992009,-0.07005141,0.015534413,0.03859178,-0.008542706,-0.017854806,-0.009495288,-0.02528006,-0.05881583,-0.009959366,-0.03231451,0.0034378439,-0.010704335,-0.01143709,0.006362759,-0.056861814,-0.04665209,0.042011306,-0.0025264793,0.02882171,0.035318807,0.046432264,-0.0017586128,0.003544704,0.004933886,-0.05744802,0.025695287,-0.045650657,-0.013116321,-0.046139162,-0.019185977,-0.020602638,0.0066009043,0.009959366,0.057936523,0.027991254,-0.048361853,-0.014948209,-0.0000571511,0.04953426,-0.04696962,-0.0377369,-0.012072144,0.010319638,-0.025451036,0.046945192,-0.023020731,0.027624877,0.009208292,0.03207026,0.0378346,-0.045015603,-0.022886392,0.03175273,-0.007272597,-0.018355522,0.007443573,-0.026525743,0.044307273,0.034586053,-0.015058123,-0.011308857,-0.04877708,-0.022654353,0.032045834,0.0066192234,0.0043598944,-0.029701017,0.0056819073,0.021640709,0.04990064,0.02236125,0.02669672,0.025622012,-0.054468147,0.014288729,0.017268602,0.011821786,-0.002839427,-0.011968337,-0.007999246,-0.022666566,0.05065782,0.016425932,0.003523332,0.02038281,-0.021188842,0.006029966,-0.00080221443,-0.011101243,0.020761402,0.023448171,-0.004546136,-0.038738333,-0.013910139,0.014227666,0.04528428,0.013995627,-0.00908006,0.004747644,-0.04775122,0.052367583,0.01334836,0.052611835,-0.024986958,0.029212514,-0.019503504,0.01679231,-0.0124629475,0.0017265548,-0.022446739,-0.0059811156,-0.018184545,0.00547124,0.009452544,-0.00973954,0.01792808,0.013494911,0.028040105,0.025963964,-0.012798794,-0.022520015,0.025353335,-0.029359065,0.022300187,-0.0030302487,-0.0023448172,-0.0068756877,0.0013372785,0.024168713,0.010502826,0.0027493592,0.0021616283,-0.026403617,-0.020443873,0.028479759,-0.004607199,0.012945345,0.008011458,0.02000422,-0.009879985,-0.02297188,0.010997437,-0.037175123,-0.0020746135,-0.015400074,-0.0008411421,0.0028836976,-0.01868526,-0.017207539,-0.023411533,0.043892045,-0.011601959,-0.008121372,0.01665797,0.008267923,0.005016321,0.01684116,-0.007657293,0.00078847527,0.047995474,-0.0023829814,-0.04594376,0.016340444,0.0078404825,-0.020553788,0.024474028,0.0035355445,0.011681342,0.0448202,0.0017357143,-0.00008787339,-0.012615604,-0.008591556,0.033706747,0.011626385,-0.004851451,-0.023387108,-0.008353411,0.019894307,-0.02254444,0.040887747,-0.08773524,0.03971534,0.060818695,0.039422236,0.01740294,-0.006735243,-0.029823143,-0.04914346,-0.018758537,0.03839638,-0.004848398,0.037443798,-0.008634301,-0.008121372,0.035636336,-0.034195248,0.007443573,-0.00029348378,-0.0042347154,-0.0027737843,-0.0127377305,0.0018318883,0.006784093,0.010252468,-0.0010853938,-0.037223972,0.00476291,-0.004369054,0.03353577,0.027282923,0.022984093,-0.02513351,0.010148661,-0.000028408582,0.013446061,0.013421635,0.0011830946,0.0037004144,0.03302284,0.0009907463,-0.008524387,-0.003688202,0.0062955897,-0.03089785,-0.017231964,-0.032851864,0.029456764,-0.02659902,0.02806453,-0.038836032,-0.013384998,0.050902072,0.01433758,0.010716547,0.012554541,-0.014362005,0.026892122,0.007645081,0.021396456,-0.028137805,-0.04293946,0.0041950243,0.033706747,0.007602337,-0.025304485,0.0023203918,-0.021640709,-0.02466943,-0.023411533,0.0113454955,-0.02145752,0.0006323831,0.0023799282,0.021701772,-0.045015603,0.029603316,-0.020162985,-0.034366224,-0.012749943,-0.00043125707,0.00738251,-0.02740505,0.010679909,0.0057124384,-0.003315718,-0.018086845,-0.017769318,-0.009025103,-0.035221107,-0.001711289,0.020065283,-0.0056696944,0.0065581603,-0.00317222,0.009251037,0.014984847,0.014594044,-0.02669672,0.0047232187,0.014471918,-0.0070527704,-0.0066253296,0.021347607,-0.062528454,0.02084689,-0.015265737,0.04858168,-0.03707742,-0.046090312,-0.008292348,0.027576026,-0.009934941,-0.01219427,-0.011101243,0.04215786,0.041522805,0.033975422,0.0035019598,-0.011247794,0.07288473,-0.0038500186,-0.03636909,0.041986883,-0.0066863927,0.020834677,0.038567357,-0.017891442,-0.026501318,0.014410855,0.012200377,-0.009812815,-0.025011383,-0.017231964,0.023216132,-0.045552958,-0.009183867,-0.02178726,-0.029701017,0.020101922,0.0018089898,-0.012291971,-0.0010968432,-0.008035883,-0.011430983,0.0006541368,-0.04721387,0.013189596,0.022373464,0.014471918,0.0069062193,0.02669672,0.00006445003,-0.02419314,-0.033511344,-0.019491293,0.008335092,0.033364795,-0.010588314,0.012444628,0.0029111758,-0.00012909088,-0.0021585752,-0.013006408,-0.015619902,0.020785827,0.051439427,0.016340444,0.0074741044,0.013360572,-0.007846588,0.009855559,-0.00093120994,0.018941727,-0.036759894,0.048557255,-0.004518658,0.0016380135,-0.013849076,0.06580143,-0.025841838,-0.022837542,-0.0017433472,-0.01240799,0.005553675,-0.017390726,0.007645081,-0.0055689407,-0.03541651,-0.020883527,-0.0035782887,-0.023069581,-0.04628571,-0.010209724,0.047189444,-0.009104486,-0.0103745945,-0.047042895,-0.002660818,0.013030833,0.032412212,-0.0016288541,-0.049070183,0.048557255,0.004747644,0.0022761214,0.05080437,-0.0034256312,0.03956879,-0.023790123,0.009727327,0.0120416125,0.03509898,-0.016206106,-0.003691255,-0.024425179,0.026257066,-0.0028989634,0.022764266,0.031288654,-0.008542706,0.03255876,-0.0062070484,0.008561025,0.019088278,0.036027137,-0.041864756,0.023399321,-0.014581831,-0.022520015,-0.004930833,-0.023167282,0.030042969,0.009122804,-0.012059932,0.025841838,0.015803091,0.0014365058,-0.021762833,-0.018013569,0.017256388,-0.014093328,0.017512852,-0.0049491515,0.005059065,0.04626129,0.0023066527,0.0067047114,0.0170732,0.025963964,0.012713306,-0.014752808,0.0029600263,0.031996984,-0.021701772,0.004607199,-0.013006408,0.037468225,-0.0059963814,0.0015448926,-0.008951828,-0.015241311,0.012279758,-0.0030088767,-0.0115775345,-0.041107576,0.023790123,0.010081492,-0.0052483603,0.017622767,-0.0014059743,0.022520015,-0.0077183563,0.009049528,0.02877286,-0.0005125471,-0.021616282,-0.00061253767,-0.015851941,-0.009971579,0.019185977,0.040838897,0.0026180737,-0.005700226,-0.041815907,0.025744138,-0.0239611,0.004845345,-0.02659902,-0.021445306,-0.054223895,-0.004243875,-0.019124914,-0.06291926,-0.009983792,0.022275763,-0.005410177,0.021713983,-0.024657218,-0.019259254,-0.003874444,-0.0055017713,0.0006083396,-0.0002848968,0.021201055,0.023643572,0.009580776,0.005431549,0.027429475,0.013104108,0.021103354,0.012615604,-0.010368488,0.041547228,0.046310138,0.040912174,-0.016853373,0.027478326,-0.010569996,0.0070588766,-0.009476969,0.0117668295,-0.02193381,-0.007980927,0.0062833773,0.011962231,-0.008084734,0.034121975,-0.0032638144,-0.009806709,0.035636336,0.006051338,-0.017818168,0.010557783,-0.022556651,0.024925895,-0.0033462495,0.049729664,0.024681643,-0.02146973,0.005868149,0.0013639935,0.021384243,0.030262796,-0.0021799472,0.041596077,0.006387184,-0.014313155,-0.018734112,0.036442365,-0.02603724,0.014801658,-0.009684583,-0.023594722,0.011663022,-0.030775724,-0.00095258193,0.005001055,-0.0128232185,0.005016321,0.0041919714,0.026672294,-0.014227666,0.037981153,-0.016364869,0.009354843,-0.026379192,-0.011467621,-0.031239804,0.014642894,0.033486918,-0.021713983,0.003972145,0.030409347,0.019588994,0.023643572,0.0037217864,-0.040130567,0.01665797,0.019869883,0.02811338,0.0044484357,-0.0019937053,0.031655032,0.0025890688,0.02330162,-0.0047964943,0.033267092,-0.0003129476,0.008860233,0.014105541,0.001700603,-0.03250991,-0.022752054,-0.012322502,0.0052422537,-0.026721144,0.015986279,-0.02953004,0.009684583,-0.047848925,-0.036686618,-0.038738333,-0.005874255,-0.0049613644,0.03231451,-0.022336826,0.003465322,-0.022520015,0.036198113,0.034512777,-0.01306747,0.020529361,-0.05026702,0.00096250465,-0.009910516,-0.010173087,-0.020358386,-0.028406482,-0.0342441,0.0021204108,0.014239879,-0.013409423,0.0030119298,-0.020224048,0.0075779115,0.022800904,0.022471163,-0.024022162,-0.008408368,0.03248549,0.011363815,0.008774745,0.008414474,-0.023667999,-0.017134262,-0.016999925,-0.013812439,0.0035111194,-0.010081492,0.01264003,-0.009269355,0.0025692235,-0.008084734,0.0066192234,-0.006552054,-0.005492612,-0.015558839,-0.01886845,0.012933132,0.005208669,-0.005510931,-0.014557406,-0.0046102526,-0.020492725,-0.024583941,-0.0073336596,-0.0078404825,0.033047266,-0.010411232,0.0137758,-0.0019662268,-0.006139879,-0.0043446287,-0.016596908,-0.017573915,-0.024925895,0.013629249,-0.015363437,0.02150637,-0.0033889934,0.0007266491,-0.015766453,-0.015546626,-0.0064238217,0.028699584,0.038884886,0.0009777704,0.04169378,0.00005142645,-0.021909384,-0.017671617,0.013409423,-0.008243497,-0.012725518,-0.011455408,-0.00924493,-0.009440332,-0.015876366,-0.016340444,-0.015925216,0.00014492909,0.020773614,-0.010515039,0.028992686,0.020443873,-0.0012327082,0.055982508,0.011418771,0.053979643,-0.02867516,0.034610476,0.028553033,-0.020773614,0.00007508834,-0.015265737,-0.014129966,0.037272822,0.0076328684,-0.00009102195,-0.022434527,-0.0010312005,0.025011383,-0.008548812,-0.02948119,0.017610554,0.035245534,-0.0066680736,-0.000011562603,0.017012136,-0.00896404,-0.0050102146,0.0006571899,-0.005593366,0.026012816,-0.020810252,0.011925593,-0.031728305,0.022800904,-0.0030134565,-0.031899285,0.014471918,0.0135804,0.034561627,-0.006942857,-0.0005739917,-0.010850886,0.020480512,-0.027844703,0.002796683,-0.030213945,-0.004002676,0.05769227,-0.026305918,-0.00015599675,0.008365624,0.021017866,0.0029233885,0.0273562,-0.004720166,-0.031264227,-0.044575952,0.0745945,-0.021286543,0.03951994,0.052318733,-0.00251732,0.0023799282,-0.013262872,0.007064983,-0.0035019598,0.023423746,0.01905164,0.037150696,0.019454654,0.03905586,0.0019402751,0.019711118,-0.02628149,0.01664576,-0.0154611375,-0.045675084,-0.022483377,-0.0052147754,0.036857594,0.016535847,-0.017744891,0.0014601677,0.039422236,-0.011724086,0.020736976,-0.0058162455,0.036759894,0.010063173,0.023533659,-0.008499962,0.031142103,-0.014838296,0.018074632,0.0113027515,0.008194648,-0.001559395,-0.0058498303,-0.0118095735,0.033071693,-0.013641462,0.007229853,0.0069489633,-0.006011647,-0.0476291,0.026452469,-0.0050041084,0.028553033,-0.01905164,-0.027527176,0.002921862,-0.00037763614,-0.006802412,0.024376327,0.021701772,0.012786581,-0.003898869,-0.0029188087,0.02867516,0.013555974,-0.008670938,0.033364795,0.030531473,-0.06033019,0.030262796,0.013116321,-0.0075840177,-0.009055635,-0.020981228,0.014007839,-0.03033607,-0.03920241,-0.011974444,0.013836863,0.00037515548,-0.0056452695,0.020309536,0.026354767,-0.02107893,0.012218695,0.008860233,0.0035294383,0.011266113,0.02140867,0.04076562,-0.011430983,0.0037920089,-0.0030058236,-0.01395899,0.01405669,-0.005056012,0.028357632,0.003706521,-0.007174896,0.02140867,0.025157934,0.0051231813,-0.025548736,-0.029847568,0.014093328,0.023460384,-0.008921296,-0.006490991,0.00934263,-0.011626385,0.0025829626,-0.008707576,0.02957889,-0.006979495,-0.0018242555,0.02994527,-0.0046316246,-0.012059932,0.001657859,-0.0017647191,-0.0021097248,0.021249905,-0.014887146,-0.004274406,-0.04066792,0.012414097,0.018184545,0.0017754051,0.03707742,0.03185043,0.03180158,0.02292303,-0.0046102526,0.032338936,0.00924493,0.021384243,0.016438145,0.034830306,-0.021139992,0.00497663,-0.008762533,-0.006503204,-0.01603513,0.0017479268,-0.0154245,0.019772181,0.00084801164,0.0012098096,0.0006499387,0.010399019,0.006588692,-0.00052018,-0.00092357706,0.02278869,-0.0018181492,0.041522805,-0.02471828,-0.012322502,0.017634979,-0.026354767,0.011406559,-0.02882171,-0.025719713,-0.0034500565,-0.032949567,0.0068085184,-0.027966829,-0.054565847,-0.022935241,0.006203995,-0.016853373,-0.012664455,-0.01754949,0.0047537503,-0.004643837,0.05339344,-0.013604824,0.021152204,-0.011601959,-0.00596585,-0.041767053,0.0068634753,-0.026916547,-0.026379192,-0.05725262,-0.025622012,-0.04621244,0.017293027,-0.026721144,-0.025157934,-0.01703656,-0.006735243,0.0019204296,0.015400074,-0.0071626836,0.023094006,0.02882171,0.015558839,-0.038933735,0.017964719,0.0042621936,0.006155145,0.010856992,-0.007999246,-0.02433969,0.02226355,-0.02400995,-0.0039690915,-0.010460082,-0.061600298,0.012530116,-0.007657293,0.029407915,-0.0032424424,-0.019332528,0.036344666,0.0011716452,-0.0026898228,0.017940294,-0.009538032,0.0309467,-0.014984847,0.01433758,0.0045980397,-0.02387561,-0.014264304,0.041913606,0.008707576,0.044649225,-0.010832567,-0.03910471,0.011968337,0.03666219,-0.022568865,0.0069917073,-0.015558839,-0.025182359,-0.006115454,-0.04147395,0.04892363,-0.032680888,0.031019976,-0.0018120429,-0.03566076,0.020956803,0.0044301166,-0.009916622,-0.021481944,0.031703882,-0.018355522,-0.02198266,0.016316019,0.018611986,-0.007852695,0.014227666,0.0025997548,-0.040545795,-0.047848925,0.007211534,-0.028235506,0.03282744,0.0051659252,-0.011467621,0.008463324,-0.027673727,-0.06135605,0.033511344,0.0033035052,-0.014020053,0.02867516,-0.01306747,-0.031630605,-0.032729737,-0.020920165,0.027063098,-0.025548736,-0.012847643,0.06648534,0.0055200905,0.030800149,0.0026562382,-0.028211081,-0.029163662,0.051537126,-0.016157255,-0.018856237,-0.041205276,0.021762833,-0.018990576,0.016230531,0.023216132,-0.0012411043,0.03961764,-0.00978839,-0.025011383,-0.003966038,-0.0074741044,-0.01537565,-0.015082547,-0.03216796,-0.01778153,-0.00738251,0.0135193365,-0.019308103,0.055396304,-0.0071565774,0.013946777,0.012261439,0.0344395,-0.0023555032,0.01405669,0.029041536,-0.0038713908,-0.02466943,-0.0031600075,0.00048774027,0.0009915095,-0.0224101,0.03886046,0.0031813795,-0.00074496795,0.020785827,-0.008628194,0.024083225,0.022532227,-0.016804522,-0.0020349226,0.0051567657,-0.0018685261,-0.0018792121,-0.021762833,-0.0037797964,-0.03253434,-0.013946777,0.056715265,-0.0018669995,-0.01339721,-0.031606182,-0.001410554,0.0029310214,0.00924493,-0.007907651,0.024474028,-0.0070405575,-0.017415153,-0.010423445,0.015363437,-0.016157255,0.04775122,0.030629173,0.010179193,0.025060233,-0.0029294947,0.008805277,-0.019076064,0.030116245,-0.0029050696,-0.010508933,0.004420957,-0.0115347905,0.029090388,-0.008561025,-0.024498453,-0.00042362418,0.024706068,-0.009464757,0.005266679,0.020346174,-0.03480588,-0.023753487,-0.03688202,0.019332528,0.015216886,0.032338936,0.0045705615,0.03145963,-0.0054376554,0.020395024,0.005175085,-0.019332528,0.032094683,0.00497663,0.015717601,-0.025817413,0.030824576,-0.024449604,0.024803769,-0.022116998,0.008658726,0.021115566,0.022458952]","aiDraftText":"Hello Prakash,\n\nThank you for reaching out regarding the referral amount discrepancy. We understand your concern about receiving Rs. 238 instead of the expected Rs. 400 voucher. \n\nTo assist you further, we recommend checking if there were any terms or conditions associated with the referral program that might have affected the final amount. If everything seems in order, please provide us with any additional details, and we will investigate this matter for you.\n\nLooking forward to your response.\n\nRegards, Team InCred Money","kb_category":null,"kb_new_info":null,"diff_summary":"The human-sent email likely included a more personalized touch or specific details that were not present in the AI draft, making it more relatable to the customer.","originalBody":"Hello team\nIn app it was showing total I will get Rs.400 voucher but only get 238, why\nso less\n\nThanks & Best Regards\nPrakash Srivastava","classification":"billing","kb_update_needed":false,"kb_update_reason":null},"pairedItem":{"item":0}}]},"settings":{"binaryMode":"separate","availableInMCP":false,"executionOrder":"v1"},"versionId":"09b7acc8-474c-4f82-b57c-95474987c1c1","connections":{"⚙️ Set Watermark":{"main":[[{"node":"🗄️ DB - Start Run Log","type":"main","index":0}]]},"🔄 Loop - Sent Emails":{"main":[[{"node":"🗄️ DB - Complete Run Log","type":"main","index":0}],[{"node":"📧 Gmail - Fetch Full Message","type":"main","index":0}]]},"⚙️ Carry Run Context":{"main":[[{"node":"📧 Gmail - Fetch Sent Emails","type":"main","index":0}]]},"⚙️ Extract Embedding":{"main":[[{"node":"🗄️ DB - Save Correction","type":"main","index":0}]]},"❓ IF - Approved As-Is?":{"main":[[{"node":"🗄️ DB - Mark Approved As-Is","type":"main","index":0}],[{"node":"🔢 Generate Embedding - Human Sent","type":"main","index":0}]]},"⚙️ Parse AI Comparison":{"main":[[{"node":"❓ IF - Approved As-Is?","type":"main","index":0}]]},"❓ IF - KB Update Needed?":{"main":[[{"node":"🗄️ DB - Fetch KB Entry to Update","type":"main","index":0}],[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"🗄️ DB - Start Run Log":{"main":[[{"node":"⚙️ Carry Run Context","type":"main","index":0}]]},"OpenAI Chat Model - Compare":{"ai_languageModel":[[{"node":"🤖 AI - Compare Draft vs Sent","type":"ai_languageModel","index":0}]]},"❓ IF - Already Processed?":{"main":[[{"node":"🤖 AI - Compare Draft vs Sent","type":"main","index":0}],[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"❓ IF - Draft Match Found?":{"main":[[{"node":"❓ IF - Already Processed?","type":"main","index":0}],[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"🤖 AI - Rewrite KB Answer":{"main":[[{"node":"🗄️ DB - Update KB Entry","type":"main","index":0}]]},"⏰ Schedule - Every 3 Hours":{"main":[[{"node":"🗄️ DB - Get Last Watermark","type":"main","index":0}]]},"🗄️ DB - Mark KB Updated":{"main":[[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"🗄️ DB - Match Thread ID":{"main":[[{"node":"❓ IF - Draft Match Found?","type":"main","index":0}]]},"🗄️ DB - Save Correction":{"main":[[{"node":"🗄️ DB - Mark Draft Processed","type":"main","index":0}]]},"🗄️ DB - Update KB Entry":{"main":[[{"node":"🗄️ DB - Mark KB Updated","type":"main","index":0}]]},"⚙️ Parse Full Message Body":{"main":[[{"node":"🗄️ DB - Match Thread ID","type":"main","index":0}]]},"📧 Gmail - Fetch Sent Emails":{"main":[[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"📧 Gmail - Fetch Full Message":{"main":[[{"node":"⚙️ Parse Full Message Body","type":"main","index":0}]]},"🗄️ DB - Get Last Watermark":{"main":[[{"node":"⚙️ Set Watermark","type":"main","index":0}]]},"🤖 AI - Compare Draft vs Sent":{"main":[[{"node":"⚙️ Parse AI Comparison","type":"main","index":0}]]},"🗄️ DB - Mark Approved As-Is":{"main":[[{"node":"🔄 Loop - Sent Emails","type":"main","index":0}]]},"🗄️ DB - Mark Draft Processed":{"main":[[{"node":"❓ IF - KB Update Needed?","type":"main","index":0}]]},"🔢 Generate Embedding - Human Sent":{"main":[[{"node":"⚙️ Extract Embedding","type":"main","index":0}]]},"🗄️ DB - Fetch KB Entry to Update":{"main":[[{"node":"🤖 AI - Rewrite KB Answer","type":"main","index":0}]]}}} \ No newline at end of file