Created
September 4, 2025 13:30
-
-
Save arnaudh458/7f5741b4ac7525dfaad39eb3a94aa109 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "UNIPILE TUTO receive -> ai -> reply Whatsapp", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "modelId": { | |
| "__rl": true, | |
| "value": "gpt-3.5-turbo", | |
| "mode": "list", | |
| "cachedResultName": "GPT-3.5-TURBO" | |
| }, | |
| "messages": { | |
| "values": [ | |
| { | |
| "content": "YOUR PROMPT" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| 224, | |
| 0 | |
| ], | |
| "id": "8588e7f1-081b-4c37-8ba9-43c237464071", | |
| "name": "OpenAI", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "FAKE_ID", | |
| "name": "FAKE_CREDENTIAL" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "httpMethod": "POST", | |
| "path": "your-webhook-path", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.webhook", | |
| "typeVersion": 2.1, | |
| "position": [ | |
| 16, | |
| 0 | |
| ], | |
| "id": "7221e5e6-9e10-4cb5-89e6-ada570da8fb1", | |
| "name": "Webhook message_received", | |
| "webhookId": "your-webhook-id" | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "=https://api14.unipile.com:14485/api/v1/chats/{{ $('Webhook message_received').item.json.body.chat_id }}/messages", | |
| "sendHeaders": true, | |
| "headerParameters": { | |
| "parameters": [ | |
| { | |
| "name": "X-API-KEY", | |
| "value": "YOUR_API_KEY" | |
| }, | |
| { | |
| "name": "accept", | |
| "value": "application/json" | |
| } | |
| ] | |
| }, | |
| "sendBody": true, | |
| "contentType": "multipart-form-data", | |
| "bodyParameters": { | |
| "parameters": [ | |
| { | |
| "name": "account_id", | |
| "value": "ACCOUNT_ID" | |
| }, | |
| { | |
| "name": "text", | |
| "value": "={{ $json.message.content }}" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 512, | |
| 0 | |
| ], | |
| "id": "9c5a71d6-5ba3-450f-b6fe-4411a4d9d546", | |
| "name": "HTTP Request (Send a message in a chat)" | |
| } | |
| ], | |
| "pinData": {}, | |
| "connections": { | |
| "OpenAI": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "HTTP Request (Send a message in a chat)", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Webhook message_received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "OpenAI", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "HTTP Request (Send a message in a chat)": { | |
| "main": [ | |
| [] | |
| ] | |
| } | |
| }, | |
| "active": true, | |
| "settings": { | |
| "executionOrder": "v1" | |
| }, | |
| "versionId": "VERSION_ID", | |
| "meta": { | |
| "instanceId": "INSTANCE_ID" | |
| }, | |
| "id": "WORKFLOW_ID", | |
| "tags": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
True