Skip to content

Instantly share code, notes, and snippets.

@architjn
Created June 11, 2025 05:50
Show Gist options
  • Save architjn/9847d6188424f3d255172b8a3f9aef88 to your computer and use it in GitHub Desktop.
Save architjn/9847d6188424f3d255172b8a3f9aef88 to your computer and use it in GitHub Desktop.
{
"name": "OpenRouter",
"nodes": [
{
"parameters": {
"content": "## Setup OpenRouter\n- Create OpenRouter Account - [Here](https://openrouter.ai/)",
"height": 360,
"width": 640
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
-100
],
"typeVersion": 1,
"id": "8422f240-a790-4a33-98e2-372908c23dde",
"name": "Sticky Note"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-60,
40
],
"id": "3c36e8af-41b2-45a4-9569-de61199b78ff",
"name": "When clicking ‘Execute workflow’"
},
{
"parameters": {
"promptType": "define",
"text": "Hello",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2,
"position": [
140,
-40
],
"id": "6c8f9512-3f25-44e0-ad1d-79fd70058a0b",
"name": "AI Agent"
},
{
"parameters": {
"model": "openai/gpt-4.1-nano",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
"position": [
180,
180
],
"id": "d9b8fa20-0394-4a3e-ab64-347c8e5a794d",
"name": "OpenRouter Chat Model",
"credentials": {
"openRouterApi": {
"id": "eFOCETknZW5RJ8Ma",
"name": "OpenRouter account 2"
}
}
}
],
"pinData": {},
"connections": {
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "8c1e9eeb-6ae0-4f3f-b133-b65394e7fd30",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9"
},
"id": "ZIAr8uCvBr3w9W8R",
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment