{ "name": "Translate customer request from Intercom chat and send to Email", "nodes": [ { "id": "trigger-intercom-chat", "name": "Incoming Trigger", "type": "n8n-nodes-base.webhook", "typeVersion": 1, "position": [ -600, 86700 ], "parameters": { "httpMethod": "POST", "path": "translate-customer-request-from-intercom-chat-and-send-to-email", "responseCode": 200, "responseMode": "onReceived" } }, { "id": "fetch-intercom-chat", "name": "Fetch data from Intercom chat", "type": "n8n-nodes-base.httpRequest", "typeVersion": 1, "position": [ -300, 86700 ], "parameters": { "method": "GET", "url": "https://api.example.com/intercom-chat", "responseFormat": "json" } }, { "id": "ai-translate-customer-request", "name": "AI: Translate Customer Request", "type": "n8n-nodes-base.openAIApi", "typeVersion": 1, "position": [ 0, 86700 ], "parameters": { "model": "gpt-4", "operation": "complete", "prompt": "Perform the following action on the incoming data: translate customer request" } }, { "id": "send-email", "name": "Send to Email", "type": "n8n-nodes-base.httpRequest", "typeVersion": 1, "position": [ 300, 86700 ], "parameters": { "method": "POST", "url": "https://api.example.com/email", "responseFormat": "json", "options": {} } }, { "id": "error-handler-600-86700", "name": "Send Error to Slack", "type": "n8n-nodes-base.slack", "typeVersion": 1, "position": [ 600, 86700 ], "parameters": { "resource": "message", "operation": "post", "channel": "#automation-alerts", "text": "={{ $json.get('error_message', 'An error occurred') }}" } } ], "connections": { "Incoming Trigger": { "main": [ [ { "node": "Fetch data from Intercom chat", "type": "main", "index": 0 } ] ] }, "Fetch data from Intercom chat": { "main": [ { "node": "AI: Translate Customer Request", "type": "main", "index": 0 } ] }, "AI: Translate Customer Request": { "main": [ [ { "node": "AI: Translate Customer Request", "type": "main", "index": 0 } ] ] }, "Send to Email": { "main": [ [ { "node": "Send Error to Slack", "type": "main", "index": 0 } ] ] } }, "settings": {}, "active": false }