Created
June 12, 2025 08:08
-
-
Save architjn/c8d66d963bd537f1bfb4e8aecae9f182 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": "ElevenLabs", | |
"nodes": [ | |
{ | |
"parameters": { | |
"promptType": "define", | |
"text": "={{ $json.body.message }}", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.agent", | |
"typeVersion": 2, | |
"position": [ | |
200, | |
0 | |
], | |
"id": "0321faf2-e42c-4bd0-8349-86d4689308f4", | |
"name": "AI Agent" | |
}, | |
{ | |
"parameters": { | |
"model": "openai/gpt-4.1-nano", | |
"options": {} | |
}, | |
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", | |
"typeVersion": 1, | |
"position": [ | |
228, | |
220 | |
], | |
"id": "b8a6ee2c-ab86-428e-b36d-d6b62df697ca", | |
"name": "OpenRouter Chat Model", | |
"credentials": { | |
"openRouterApi": { | |
"id": "CGW0UD2Uwkzjnlyv", | |
"name": "OpenRouter account" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"toolDescription": "Does a search on internet and provides you with results", | |
"method": "POST", | |
"url": "https://api.tavily.com/search", | |
"authentication": "genericCredentialType", | |
"genericAuthType": "httpBearerAuth", | |
"sendBody": true, | |
"bodyParameters": { | |
"parameters": [ | |
{ | |
"name": "query", | |
"value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.httpRequestTool", | |
"typeVersion": 4.2, | |
"position": [ | |
348, | |
220 | |
], | |
"id": "57f42e85-00ef-46e8-ac11-8b80e24dd5a6", | |
"name": "HTTP Request", | |
"credentials": { | |
"httpHeaderAuth": { | |
"id": "ILqJ0Ss2E6N7bzva", | |
"name": "RapidAPI" | |
}, | |
"httpBearerAuth": { | |
"id": "dyIBSX0y8hUnnXuf", | |
"name": "Tavily Auth" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"content": "## Setup ElevenLabs AI Assistant\n- Signup on [ElevenLabs](http://architjn.com/r/eleven)\n- Agent Prompt - [here](https://gist.github.com/architjn/60d8062a3c796a7190a57e35b10b684a)", | |
"height": 580, | |
"width": 900 | |
}, | |
"type": "n8n-nodes-base.stickyNote", | |
"position": [ | |
-120, | |
-220 | |
], | |
"typeVersion": 1, | |
"id": "209a78d6-2478-4cc8-896a-6a24b14eb8c7", | |
"name": "Sticky Note" | |
}, | |
{ | |
"parameters": { | |
"content": "# Prompts\n\n### description\nLLM call takes 2 parameters\nmessage - which is the request from the user\nuuid - is generate id for session\n\n### message\nwhat the user has requested for\n\n### uuid\ngenerate a uuid which will act as session id. generate the uuid at the starting of the conversation", | |
"height": 580, | |
"width": 560, | |
"color": 4 | |
}, | |
"type": "n8n-nodes-base.stickyNote", | |
"position": [ | |
820, | |
-220 | |
], | |
"typeVersion": 1, | |
"id": "7dffc662-2326-423b-9b34-f62fa1475276", | |
"name": "Sticky Note1" | |
}, | |
{ | |
"parameters": { | |
"httpMethod": "POST", | |
"path": "f4652e6d-aee9-4713-af6a-be55b64e5da7", | |
"responseMode": "responseNode", | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.webhook", | |
"typeVersion": 2, | |
"position": [ | |
-20, | |
0 | |
], | |
"id": "53afae87-517f-4aee-b603-97c0571f588b", | |
"name": "Webhook", | |
"webhookId": "f4652e6d-aee9-4713-af6a-be55b64e5da7" | |
}, | |
{ | |
"parameters": { | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.respondToWebhook", | |
"typeVersion": 1.3, | |
"position": [ | |
560, | |
0 | |
], | |
"id": "641ebc50-6d96-4e55-97fe-611e576ded84", | |
"name": "Respond to Webhook" | |
} | |
], | |
"pinData": { | |
"Webhook": [ | |
{ | |
"json": { | |
"headers": { | |
"connection": "upgrade", | |
"host": "n8n.architjn.com", | |
"x-real-ip": "34.67.146.145", | |
"x-forwarded-for": "34.67.146.145", | |
"x-forwarded-proto": "https", | |
"content-length": "96", | |
"accept": "*/*", | |
"accept-encoding": "gzip, deflate", | |
"user-agent": "Python/3.12 aiohttp/3.11.16", | |
"content-type": "application/json" | |
}, | |
"params": {}, | |
"query": {}, | |
"body": { | |
"message": "Search for the latest news in AI.", | |
"uuid": "b45589ff-44ba-49c9-95c2-ca567919a973" | |
}, | |
"webhookUrl": "https://n8n.architjn.com/webhook/f4652e6d-aee9-4713-af6a-be55b64e5da7", | |
"executionMode": "production" | |
} | |
} | |
] | |
}, | |
"connections": { | |
"AI Agent": { | |
"main": [ | |
[ | |
{ | |
"node": "Respond to Webhook", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"OpenRouter Chat Model": { | |
"ai_languageModel": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_languageModel", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"HTTP Request": { | |
"ai_tool": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "ai_tool", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Webhook": { | |
"main": [ | |
[ | |
{ | |
"node": "AI Agent", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": true, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "b58e0431-f47f-4705-bf05-24412efc4f08", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9" | |
}, | |
"id": "uxY9vcyRlDoJN1Tg", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment