-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall_workflows.json
More file actions
1 lines (1 loc) · 23.1 KB
/
all_workflows.json
File metadata and controls
1 lines (1 loc) · 23.1 KB
1
[{"updatedAt":"2025-12-17T16:15:02.234Z","createdAt":"2025-12-17T14:57:56.345Z","id":"9qMAmBV0KUbzWtdk","name":"Data Analysis Agent","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/analysis","responseMode":"responseNode","options":{}},"id":"452ed276-bbdf-4994-846e-2f57cb5600e8","name":"Webhook Trigger","type":"n8n-nodes-base.webhook","typeVersion":2.1,"position":[2128,-160],"webhookId":"51fcd083-ec36-4c43-9b17-9f08bceadb6b"},{"parameters":{"assignments":{"assignments":[{"id":"id-1","name":"tableName","value":"cleaned_vehicle_data","type":"string"},{"id":"id-2","name":"recordLimit","value":50,"type":"number"}]},"includeOtherFields":true,"options":{}},"id":"d45dbcbd-932f-4249-bdd0-c072fbd18703","name":"Workflow Configuration","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[2352,-160]},{"parameters":{"operation":"executeQuery","query":"=SELECT * FROM {{ $('Workflow Configuration').first().json.tableName }} WHERE vehicle_id = $1 ORDER BY created_at DESC LIMIT {{ $('Workflow Configuration').first().json.recordLimit }}","options":{"queryReplacement":"={{ $json.body.vehicle_id }}"}},"id":"821d94e7-c00d-45c0-9987-133ac5cc6057","name":"Get Vehicle Data","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[2576,-160],"alwaysOutputData":true,"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"jsCode":"const allData = $input.all().map(item => item.json);\n\nreturn {\n json: {\n vehicle_id: allData[0]?.vehicle_id || 'unknown',\n telemetry_records: allData\n }\n};"},"id":"3f0f3261-7f27-416c-b731-1c291995fda0","name":"Aggregate Data","type":"n8n-nodes-base.code","typeVersion":2,"position":[2800,-160],"alwaysOutputData":true},{"parameters":{"modelId":{"__rl":true,"value":"models/gemini-flash-latest","mode":"list","cachedResultName":"models/gemini-flash-latest"},"messages":{"values":[{"content":"=Analyze the following vehicle telemetry data patterns (Speed, RPM, Battery, Temp):\n\n{{ JSON.stringify($json.telemetry_records) }}\n\nIdentify any issues or repeating faults. Calculate an overall health score (0-100).\n\nOutput STRICT valid JSON:\n{\n \"analysis_summary\": \"...\",\n \"health_score\": 85\n}"}]},"jsonOutput":true,"options":{}},"id":"70c7112d-838b-4e4a-a182-1520818b4529","name":"Analyze Vehicle Health","type":"@n8n/n8n-nodes-langchain.googleGemini","typeVersion":1,"position":[3024,-160],"credentials":{"googlePalmApi":{"id":"KmripA9dfAZsJkr0","name":"Google Gemini(PaLM) Api account"}}},{"parameters":{"assignments":{"assignments":[{"id":"id-1","name":"analysis_summary","value":"={{ $json.content.parts[0].text ? JSON.parse($json.content.parts[0].text).analysis_summary : JSON.parse($json.content).analysis_summary }}","type":"string"},{"id":"id-2","name":"health_score","value":"={{ $json.content.parts[0].text ? JSON.parse($json.content.parts[0].text).health_score : JSON.parse($json.content).health_score }}","type":"number"}]},"options":{}},"id":"70b9d486-d210-45cf-b7fa-8a9bff6ad336","name":"Format Response","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[3376,-160]},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify($json) }}","options":{}},"id":"465f254c-8912-489a-9c97-c29860d00d3a","name":"Return Analysis","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.5,"position":[3600,-160]}],"connections":{"Webhook Trigger":{"main":[[{"node":"Workflow Configuration","type":"main","index":0}]]},"Workflow Configuration":{"main":[[{"node":"Get Vehicle Data","type":"main","index":0}]]},"Get Vehicle Data":{"main":[[{"node":"Aggregate Data","type":"main","index":0}]]},"Aggregate Data":{"main":[[{"node":"Analyze Vehicle Health","type":"main","index":0}]]},"Analyze Vehicle Health":{"main":[[{"node":"Format Response","type":"main","index":0}]]},"Format Response":{"main":[[{"node":"Return Analysis","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"08d3203a-e15f-458f-997e-8ab93c16fa63","activeVersionId":"08d3203a-e15f-458f-997e-8ab93c16fa63","versionCounter":18,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T14:57:56.350Z","createdAt":"2025-12-17T14:57:56.350Z","role":"workflow:owner","workflowId":"9qMAmBV0KUbzWtdk","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]},{"updatedAt":"2025-12-17T15:59:03.033Z","createdAt":"2025-12-17T15:19:30.027Z","id":"9fA7ZkbRwWYSgcdM","name":"Vehicle Service Appointment Scheduling Agent","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/scheduling","responseMode":"responseNode","options":{}},"id":"4017c230-7096-4189-8564-956420a583fd","name":"Webhook Trigger","type":"n8n-nodes-base.webhook","typeVersion":2.1,"position":[80,-528],"webhookId":"b0d19961-ca51-4947-90d5-c3077e67da0b"},{"parameters":{"assignments":{"assignments":[{"id":"id-1","name":"tableName","value":"appointments","type":"string"}]},"includeOtherFields":true,"options":{}},"id":"3d874b2c-795c-43c8-a892-a3a1a3bd08a2","name":"Workflow Configuration","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[304,-528]},{"parameters":{"operation":"executeQuery","query":"=SELECT count(*) as count FROM {{ $('Workflow Configuration').first().json.tableName }} WHERE vehicle_id = '{{ $('Webhook Trigger').first().json.body.vehicle_id }}' AND status = 'CONFIRMED'","options":{}},"id":"d2f25992-a08b-4701-b18a-809ce0d33675","name":"Check Existing Appointment","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[528,-528],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose"},"conditions":[{"id":"id-1","leftValue":"={{ parseInt($json.count) }}","rightValue":0,"operator":{"type":"number","operation":"gt"}}],"combinator":"and"},"options":{}},"id":"653cf209-0ba2-45f4-b584-c2de4ddbd217","name":"Appointment Exists?","type":"n8n-nodes-base.if","typeVersion":2.3,"position":[752,-528]},{"parameters":{"jsCode":"function uuidv4() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); }); }\nconst confirmationCode = Math.random().toString(36).substring(2, 10).toUpperCase();\nreturn { confirmation_code: confirmationCode, id: uuidv4() };"},"id":"bc50f28e-527c-41f0-8363-d8b3515374b7","name":"Generate Confirmation Code","type":"n8n-nodes-base.code","typeVersion":2,"position":[976,-624]},{"parameters":{"operation":"executeQuery","query":"=INSERT INTO {{ $('Workflow Configuration').first().json.tableName }} (id, user_id, vehicle_id, appointment_date, service_center_id, status, confirmation_code) VALUES ('{{ $json.id }}', '{{ $('Webhook Trigger').first().json.body.user_id }}', '{{ $('Webhook Trigger').first().json.body.vehicle_id }}', '{{ $('Webhook Trigger').first().json.body.preferred_date }}', '{{ $('Webhook Trigger').first().json.body.service_center_id }}', 'CONFIRMED', '{{ $json.confirmation_code }}') RETURNING *","options":{}},"id":"fd59dfea-e052-4211-b895-927e13fb7dc3","name":"Insert New Appointment","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[1200,-624],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"assignments":{"assignments":[{"id":"id-1","name":"success","value":true,"type":"boolean"},{"id":"id-2","name":"appointment_id","value":"={{ $('Insert New Appointment').first().json.id }}","type":"string"},{"id":"id-3","name":"confirmation_code","value":"={{ $json.confirmation_code }}","type":"string"}]},"options":{}},"id":"6cae1093-aa1c-47f5-a839-c7aeef002a9b","name":"Format Success Response","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[1424,-624]},{"parameters":{"assignments":{"assignments":[{"id":"id-1","name":"success","value":false,"type":"boolean"},{"id":"id-2","name":"message","value":"An active appointment already exists for this vehicle","type":"string"}]},"options":{}},"id":"8ebedeef-93b4-41d0-8630-ca8571692969","name":"Format Exists Response","type":"n8n-nodes-base.set","typeVersion":3.4,"position":[1424,-432]},{"parameters":{"options":{}},"id":"926f0d35-5971-45c4-8cef-d793637151fc","name":"Return Response","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.5,"position":[1648,-528]}],"connections":{"Webhook Trigger":{"main":[[{"node":"Workflow Configuration","type":"main","index":0}]]},"Workflow Configuration":{"main":[[{"node":"Check Existing Appointment","type":"main","index":0}]]},"Check Existing Appointment":{"main":[[{"node":"Appointment Exists?","type":"main","index":0}]]},"Appointment Exists?":{"main":[[{"node":"Format Exists Response","type":"main","index":0}],[{"node":"Generate Confirmation Code","type":"main","index":0}]]},"Generate Confirmation Code":{"main":[[{"node":"Insert New Appointment","type":"main","index":0}]]},"Insert New Appointment":{"main":[[{"node":"Format Success Response","type":"main","index":0}]]},"Format Success Response":{"main":[[{"node":"Return Response","type":"main","index":0}]]},"Format Exists Response":{"main":[[{"node":"Return Response","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"a1193e97-b83c-473c-b6f9-fd7a9c0d0d23","activeVersionId":"a1193e97-b83c-473c-b6f9-fd7a9c0d0d23","versionCounter":7,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T15:19:30.032Z","createdAt":"2025-12-17T15:19:30.032Z","role":"workflow:owner","workflowId":"9fA7ZkbRwWYSgcdM","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]},{"updatedAt":"2025-12-17T15:58:47.934Z","createdAt":"2025-12-17T15:37:02.066Z","id":"pZ5WyD3LivCy0OLx","name":"Customer Engagement Agent","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/chat","responseMode":"responseNode","options":{}},"id":"1a54c1d1-90ad-46aa-b69f-9cf573404931","name":"Webhook Trigger","type":"n8n-nodes-base.webhook","typeVersion":2.1,"position":[-272,144],"webhookId":"customer-engagement-webhook"},{"parameters":{"operation":"executeQuery","query":"=SELECT * FROM chat_sessions WHERE user_id = '{{ $json.body.user_id }}' AND ended_at IS NULL ORDER BY started_at DESC LIMIT 1","options":{}},"id":"a4d7200b-e035-41eb-8059-f8f019474bce","name":"Get Active Session","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[-48,144],"alwaysOutputData":true,"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"modelId":{"__rl":true,"value":"models/gemini-flash-lite-latest","mode":"list","cachedResultName":"models/gemini-flash-lite-latest"},"messages":{"values":[{"content":"=You are a helpful automotive assistant. Be professional and empathetic.\n\nUser Message: {{ $('Webhook Trigger').first().json.body.message }}\n\nHistory: {{ $json.messages ? JSON.stringify($json.messages) : 'No history' }}"}]},"options":{}},"id":"67dcde38-fa49-4bfc-92f4-a35b2659138f","name":"Gemini Chat","type":"@n8n/n8n-nodes-langchain.googleGemini","typeVersion":1,"position":[176,144],"credentials":{"googlePalmApi":{"id":"KmripA9dfAZsJkr0","name":"Google Gemini(PaLM) Api account"}}},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"loose"},"conditions":[{"id":"id-1","leftValue":"={{ $('Get Active Session').first().json.id }}","rightValue":"","operator":{"type":"string","operation":"exists"}}],"combinator":"and"},"options":{}},"id":"22b3028b-811b-49b6-854c-d8b334930a37","name":"Session Exists?","type":"n8n-nodes-base.if","typeVersion":2.3,"position":[528,144]},{"parameters":{"operation":"executeQuery","query":"=UPDATE chat_sessions SET messages = messages || '[{\"role\": \"user\", \"content\": \"{{ $('Webhook Trigger').first().json.body.message.replace(/'/g, \"''\") }}\"}, {\"role\": \"assistant\", \"content\": \"{{ $json.text.replace(/'/g, \"''\") }}\"}]'::jsonb WHERE id = '{{ $('Get Active Session').first().json.id }}'","options":{}},"id":"f348f439-d15d-4a3e-8825-129091f55ac4","name":"Update Session","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[752,48],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"operation":"executeQuery","query":"=INSERT INTO chat_sessions (id, user_id, role, messages) VALUES (gen_random_uuid(), '{{ $('Webhook Trigger').first().json.body.user_id }}', 'customer', '[{\"role\": \"user\", \"content\": \"{{ $('Webhook Trigger').first().json.body.message.replace(/'/g, \"''\") }}\"}, {\"role\": \"assistant\", \"content\": \"{{ $json.text.replace(/'/g, \"''\") }}\"}]'::jsonb)","options":{}},"id":"b7f1fd9c-7e6d-4439-9136-3461077087ce","name":"Create Session","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[752,240],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify({ response: $('Gemini Chat').first().json.text }) }}","options":{}},"id":"1dac141f-1e1e-46ca-b843-c2d0d1c06d32","name":"Respond to Webhook","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.5,"position":[976,144]}],"connections":{"Webhook Trigger":{"main":[[{"node":"Get Active Session","type":"main","index":0}]]},"Get Active Session":{"main":[[{"node":"Gemini Chat","type":"main","index":0}]]},"Gemini Chat":{"main":[[{"node":"Session Exists?","type":"main","index":0}]]},"Session Exists?":{"main":[[{"node":"Update Session","type":"main","index":0}],[{"node":"Create Session","type":"main","index":0}]]},"Update Session":{"main":[[{"node":"Respond to Webhook","type":"main","index":0}]]},"Create Session":{"main":[[{"node":"Respond to Webhook","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"3fb72a0a-84ac-4bdc-8fe3-a779328b9097","activeVersionId":"3fb72a0a-84ac-4bdc-8fe3-a779328b9097","versionCounter":8,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T15:37:02.077Z","createdAt":"2025-12-17T15:37:02.077Z","role":"workflow:owner","workflowId":"pZ5WyD3LivCy0OLx","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]},{"updatedAt":"2025-12-17T15:58:28.343Z","createdAt":"2025-12-17T15:50:47.447Z","id":"3hLe6CCGwWSxOg7i","name":"Feedback Collection workflow","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/feedback","responseMode":"responseNode","options":{}},"id":"178395e1-8e46-478d-bcfe-37fe828bfb63","name":"Feedback Webhook","type":"n8n-nodes-base.webhook","typeVersion":2.1,"position":[1680,192],"webhookId":"ba20df06-85e2-44c3-8caf-70bbf6d21ffd"},{"parameters":{"operation":"executeQuery","query":"=UPDATE service_records SET customer_satisfaction = {{ $json.body.rating }}, technician_notes = CONCAT(technician_notes, ' [Customer Feedback]: ', '{{ $json.body.comments }}') WHERE appointment_id = '{{ $json.body.appointment_id }}' RETURNING *","options":{}},"id":"ed9b9d00-00fd-40cc-9a14-5057192ec155","name":"Update Service Record","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[1904,192],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"modelId":{"__rl":true,"value":"models/gemini-flash-lite-latest","mode":"list","cachedResultName":"models/gemini-flash-lite-latest"},"messages":{"values":[{"content":"=Analyze the sentiment of the following customer feedback and respond with ONLY one word: Positive, Negative, or Neutral.\n\nFeedback: {{ $('Feedback Webhook').first().json.body.comments }}"}]},"options":{}},"id":"7cd424a0-6f44-4b20-bcc4-f1e9492ca856","name":"Analyze Sentiment","type":"@n8n/n8n-nodes-langchain.googleGemini","typeVersion":1,"position":[2128,192],"credentials":{"googlePalmApi":{"id":"KmripA9dfAZsJkr0","name":"Google Gemini(PaLM) Api account"}}},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify({ success: true, sentiment: $('Analyze Sentiment').first().json.text.trim() }) }}","options":{}},"id":"19931a12-38c0-4a5b-b31f-0679a94a1778","name":"Return Response","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.5,"position":[2480,192]}],"connections":{"Feedback Webhook":{"main":[[{"node":"Update Service Record","type":"main","index":0}]]},"Update Service Record":{"main":[[{"node":"Analyze Sentiment","type":"main","index":0}]]},"Analyze Sentiment":{"main":[[{"node":"Return Response","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"a29ed311-0ab3-4c88-8809-7552557a69ac","activeVersionId":"a29ed311-0ab3-4c88-8809-7552557a69ac","versionCounter":8,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T15:50:47.452Z","createdAt":"2025-12-17T15:50:47.452Z","role":"workflow:owner","workflowId":"3hLe6CCGwWSxOg7i","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]},{"updatedAt":"2025-12-17T16:13:30.035Z","createdAt":"2025-12-17T16:05:35.214Z","id":"lHYDq96NvH2QlUN4","name":"Agent - Manufacturing Insights","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/manufacturing","responseMode":"responseNode","options":{}},"id":"a6510583-f407-4b07-b946-7636964f9491","name":"Webhook Trigger","type":"n8n-nodes-base.webhook","typeVersion":2.1,"position":[368,-336],"webhookId":"manufacturing-insight-webhook"},{"parameters":{"operation":"executeQuery","query":"=SELECT r.component, r.root_cause, r.actual_finding, v.model, v.variant, v.year FROM rca_capa_records r JOIN vehicles v ON r.vehicle_id = v.id ORDER BY r.created_at DESC LIMIT 50","options":{}},"id":"c2a927ae-3d54-4721-9676-c639f96fce47","name":"Fetch Defect Data","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[592,-336],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"jsCode":"const defects = $input.all().map(item => item.json);\nreturn { json: { defects } };"},"id":"11a87851-eafb-4d40-9367-115b6ef7e59f","name":"Aggregate Defects","type":"n8n-nodes-base.code","typeVersion":2,"position":[816,-336]},{"parameters":{"modelId":{"__rl":true,"mode":"id","value":"gemini-1.5-pro"},"messages":{"values":[{"content":"=Analyze the following vehicle defect records to identify manufacturing trends or quality control issues.\n\nData: {{ JSON.stringify($json.defects) }}\n\nProvide a JSON summary with keys: 'top_defects', 'root_cause_analysis', 'recommended_actions' (list of strings)."}]},"jsonOutput":true,"options":{}},"id":"bae56941-c117-4545-8262-490b207ffd2d","name":"Gemini Analysis","type":"@n8n/n8n-nodes-langchain.googleGemini","typeVersion":1,"position":[1040,-336],"credentials":{"googlePalmApi":{"id":"KmripA9dfAZsJkr0","name":"Google Gemini(PaLM) Api account"}}},{"parameters":{"operation":"executeQuery","query":"=INSERT INTO manufacturing_insights (id, insight_data) VALUES (gen_random_uuid(), '{{ JSON.stringify(JSON.parse($json.content.parts[0].text)).replace(/'/g, \"''\") }}'::jsonb) RETURNING *","options":{}},"id":"e03da885-fd00-45ea-bfac-ee8d0173b83f","name":"Store Insight","type":"n8n-nodes-base.postgres","typeVersion":2.6,"position":[1392,-336],"credentials":{"postgres":{"id":"3e6Bci3IGFQfegT0","name":"Postgres account"}}},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify($json.insight_data) }}","options":{}},"id":"ac423324-7987-4ee3-a10f-c94562271889","name":"Respond to Webhook","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.5,"position":[1616,-336]}],"connections":{"Webhook Trigger":{"main":[[{"node":"Fetch Defect Data","type":"main","index":0}]]},"Fetch Defect Data":{"main":[[{"node":"Aggregate Defects","type":"main","index":0}]]},"Aggregate Defects":{"main":[[{"node":"Gemini Analysis","type":"main","index":0}]]},"Gemini Analysis":{"main":[[{"node":"Store Insight","type":"main","index":0}]]},"Store Insight":{"main":[[{"node":"Respond to Webhook","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":null,"pinData":{},"versionId":"d32bec30-e9f0-4ea7-b7c8-baaa489bdcbc","activeVersionId":"d32bec30-e9f0-4ea7-b7c8-baaa489bdcbc","versionCounter":13,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T16:05:35.219Z","createdAt":"2025-12-17T16:05:35.219Z","role":"workflow:owner","workflowId":"lHYDq96NvH2QlUN4","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]},{"updatedAt":"2025-12-17T17:04:05.122Z","createdAt":"2025-12-17T16:50:08.420Z","id":"wlfk90bBovF5516h","name":"OEM Insights Agent","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"agent/oem","responseMode":"responseNode","options":{}},"type":"n8n-nodes-base.webhook","typeVersion":1,"position":[832,-272],"id":"68405832-08d1-4426-b51c-c0e6aeb7e90d","name":"Webhook Trigger","webhookId":"cf4a462f-c857-4726-8910-6fa5507a469a"},{"parameters":{"modelId":{"__rl":true,"value":"models/gemini-flash-latest","mode":"list","cachedResultName":"models/gemini-flash-latest"},"messages":{"values":[{"content":"={{ $json.body.query }}"}]},"options":{"temperature":0.3}},"type":"@n8n/n8n-nodes-langchain.googleGemini","typeVersion":1,"position":[1136,-160],"id":"f88e5f1c-c3b4-4c11-a8e8-518bf1292ec1","name":"Gemini Chat","alwaysOutputData":true,"credentials":{"googlePalmApi":{"id":"KmripA9dfAZsJkr0","name":"Google Gemini(PaLM) Api account"}}},{"parameters":{"respondWith":"text","responseBody":"={{ $json.content.parts[0].text }}","options":{}},"type":"n8n-nodes-base.respondToWebhook","typeVersion":1,"position":[1472,-176],"id":"82011961-4123-493b-baee-6e1011899429","name":"Respond to Webhook"}],"connections":{"Webhook Trigger":{"main":[[{"node":"Gemini Chat","type":"main","index":0}]]},"Gemini Chat":{"main":[[{"node":"Respond to Webhook","type":"main","index":0}]]}},"settings":{"executionOrder":"v1"},"staticData":null,"meta":{"templateCredsSetupCompleted":true},"pinData":{},"versionId":"fe7abebf-b22e-45e0-be85-9570fab1258b","activeVersionId":"fe7abebf-b22e-45e0-be85-9570fab1258b","versionCounter":18,"triggerCount":1,"tags":[],"shared":[{"updatedAt":"2025-12-17T16:50:08.433Z","createdAt":"2025-12-17T16:50:08.433Z","role":"workflow:owner","workflowId":"wlfk90bBovF5516h","projectId":"g4jGHQWZGfrC9Xqu","project":{"updatedAt":"2025-12-17T14:43:25.542Z","createdAt":"2025-12-17T14:42:58.776Z","id":"g4jGHQWZGfrC9Xqu","name":"Buni Stark <meghnath.s.official@gmail.com>","type":"personal","icon":null,"description":null}}]}]