Created
August 24, 2024 13:22
-
-
Save leifermendez/b7279c12308023bc5af91e8b3be7416d to your computer and use it in GitHub Desktop.
template_n8n_genarar_audio_builderbot.json
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": "My workflow", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "id": "32a160fa-88df-41dd-9949-18d98a70574d", | |
| "name": "When chat message received", | |
| "type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
| "typeVersion": 1.1, | |
| "position": [ | |
| 580, | |
| 400 | |
| ], | |
| "webhookId": "eed77b08-e4b7-43e5-9a20-1cbd2b78ca17" | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "audio", | |
| "input": "={{ $json.output }}", | |
| "options": {} | |
| }, | |
| "id": "4f64064c-9d81-4ae5-a700-83d716bf98d4", | |
| "name": "Generar VOZ", | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.4, | |
| "position": [ | |
| 1180, | |
| 260 | |
| ], | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "B4s1MvYvDTFNZLac", | |
| "name": "OpenAi account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "https://api.cloudinary.com/v1_1/TU-CLOUD-NAME/auto/upload", | |
| "sendBody": true, | |
| "contentType": "multipart-form-data", | |
| "bodyParameters": { | |
| "parameters": [ | |
| { | |
| "parameterType": "formBinaryData", | |
| "name": "file", | |
| "inputDataFieldName": "data" | |
| }, | |
| { | |
| "name": "resource_type", | |
| "value": "auto" | |
| }, | |
| { | |
| "name": "upload_preset", | |
| "value": "TU_PRESET" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "id": "b2203f32-5f69-432c-b5e8-0247502c7483", | |
| "name": "HTTP Request", | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 1400, | |
| 260 | |
| ] | |
| }, | |
| { | |
| "parameters": { | |
| "respondWith": "json", | |
| "responseBody": "={\n \"messages\":[\n {\n \"type\":\"to_user\",\n \"content\":\"test\",\n \"media\":\"{{ $json.secure_url }}\"\n }\n ]\n}", | |
| "options": {} | |
| }, | |
| "id": "bddfc4c5-5be5-46fb-9ad9-99bed4ab9f85", | |
| "name": "Respond to Webhook", | |
| "type": "n8n-nodes-base.respondToWebhook", | |
| "typeVersion": 1.1, | |
| "position": [ | |
| 1640, | |
| 260 | |
| ] | |
| }, | |
| { | |
| "parameters": { | |
| "resource": "assistant", | |
| "assistantId": { | |
| "__rl": true, | |
| "value": "TU_ID_DE_ASISTENTE_OPEN_AI", | |
| "mode": "list", | |
| "cachedResultName": "MiAsistentedeBuilderBot" | |
| }, | |
| "prompt": "define", | |
| "text": "={{JSON.stringify($json.body.history) }}", | |
| "options": {} | |
| }, | |
| "id": "918ea3c9-fd48-4a6e-ac51-26d5e3de5592", | |
| "name": "OpenAI", | |
| "type": "@n8n/n8n-nodes-langchain.openAi", | |
| "typeVersion": 1.4, | |
| "position": [ | |
| 760, | |
| 260 | |
| ], | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "B4s1MvYvDTFNZLac", | |
| "name": "OpenAi account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "httpMethod": "POST", | |
| "path": "generar-audio-con-ai", | |
| "responseMode": "responseNode", | |
| "options": {} | |
| }, | |
| "id": "51885f4f-014e-4189-8f46-e44b36ab6d90", | |
| "name": "Webhook", | |
| "type": "n8n-nodes-base.webhook", | |
| "typeVersion": 2, | |
| "position": [ | |
| 400, | |
| 260 | |
| ], | |
| "webhookId": "d84bf3d9-5afd-4a0f-a4b9-e20ea38c2051" | |
| } | |
| ], | |
| "pinData": {}, | |
| "connections": { | |
| "When chat message received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "OpenAI", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Generar VOZ": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "HTTP Request", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "HTTP Request": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Respond to Webhook", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "OpenAI": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Generar VOZ", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Webhook": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "OpenAI", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "active": true, | |
| "settings": { | |
| "executionOrder": "v1" | |
| }, | |
| "versionId": "dfab40d3-239b-4cb5-a0bb-df2b652df1f0", | |
| "meta": { | |
| "templateCredsSetupCompleted": true, | |
| "instanceId": "26cb6bcbe390b80cba67c52b0382106e7471a2e7778c65f72561c452d2f555c5" | |
| }, | |
| "id": "nOQ5Kwd8iGHGdjrK", | |
| "tags": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment