The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "\ud83e\udd16 Ejemplo: Copilot API (GPT-4 Gratis)",
"nodes": [
{
"parameters": {},
"id": "manual-trigger",
"name": "Inicio Manual",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"method": "POST",
"url": "http://copilot-api:8000/v1/chat/completions",
"authentication": "none",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"gpt-4\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Explica en 2 lineas que es n8n\"\n }\n ],\n \"temperature\": 0.7,\n \"max_tokens\": 500\n}",
"options": {}
},
"id": "http-copilot",
"name": "Llamar a Copilot API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
450,
300
]
},
{
"parameters": {
"jsCode": "// Extraer la respuesta del GPT-4\nconst response = $input.item.json;\nconst mensaje = response.choices[0].message.content;\n\nreturn {\n json: {\n pregunta: \"Explica en 2 lineas que es n8n\",\n respuesta: mensaje,\n modelo: response.model,\n timestamp: new Date().toISOString()\n }\n};"
},
"id": "code-format",
"name": "Formatear Respuesta",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
650,
300
]
}
],
"connections": {
"Inicio Manual": {
"main": [
[
{
"node": "Llamar a Copilot API",
"type": "main",
"index": 0
}
]
]
},
"Llamar a Copilot API": {
"main": [
[
{
"node": "Formatear Respuesta",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2025-11-04T19:23:00.000Z",
"versionId": "1"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
🤖 Ejemplo: Copilot API (GPT-4 Gratis). Uses httpRequest. Event-driven trigger; 3 nodes.
Source: https://github.com/Anntonios1/EFIG/blob/777f95d9636a256fd75702aa507aec09a60a5f29/workflows/ejemplo_copilot_api.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t
[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.
[](https://youtu.be/c7yCZhmMjtI)
This automation organizes your n8n workflows files into categorizes (Active, Template, Done, Archived) and uploads them directly to a categorized Google Drive folders. It is designed to help users man
Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API. Uses httpRequest. Event-driven trigger; 51 nodes.