3f2db62850
Karpathy 的 LLM Wiki 觀念,用 n8n + Google Docs + Google Sheets 實作。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
142 lines
3.2 KiB
JSON
142 lines
3.2 KiB
JSON
{
|
|
"name": "create_wiki_page",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"folderId": "14vxRl7a9DZLG1ykMTdPCi1AzeQX79usZ",
|
|
"title": "={{ $json.body.doc_title }}"
|
|
},
|
|
"type": "n8n-nodes-base.googleDocs",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
208,
|
|
-128
|
|
],
|
|
"id": "317e8285-f374-493d-acf0-33175e883755",
|
|
"name": "Create a document",
|
|
"credentials": {
|
|
"googleDocsOAuth2Api": {
|
|
"id": "pgd50DD52VYwX6IC",
|
|
"name": "Leo_personal_n8n_test"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "move",
|
|
"fileId": {
|
|
"__rl": true,
|
|
"value": "={{ $json.id }}",
|
|
"mode": "id"
|
|
},
|
|
"driveId": {
|
|
"__rl": true,
|
|
"value": "My Drive",
|
|
"mode": "list",
|
|
"cachedResultName": "My Drive",
|
|
"cachedResultUrl": "https://drive.google.com/drive/my-drive"
|
|
},
|
|
"folderId": {
|
|
"__rl": true,
|
|
"value": "1cpyZ8P3uIDq6ImgwO9K47AsXyfSy3KU3",
|
|
"mode": "list",
|
|
"cachedResultName": "wiki",
|
|
"cachedResultUrl": "https://drive.google.com/drive/folders/1cpyZ8P3uIDq6ImgwO9K47AsXyfSy3KU3"
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleDrive",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
432,
|
|
-128
|
|
],
|
|
"id": "59a77840-bca4-4680-8532-e841fb23817a",
|
|
"name": "Move file",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "QRyA20Y3eqGs35SL",
|
|
"name": "Google Drive account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "38c09cd0-cc9f-44f0-b99c-4009f3a3e3a0",
|
|
"responseMode": "responseNode",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 2.1,
|
|
"position": [
|
|
-16,
|
|
-128
|
|
],
|
|
"id": "e93dc02f-546e-4836-9e2f-6afb64344565",
|
|
"name": "Webhook",
|
|
"webhookId": "38c09cd0-cc9f-44f0-b99c-4009f3a3e3a0"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"respondWith": "allIncomingItems",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"typeVersion": 1.5,
|
|
"position": [
|
|
640,
|
|
-128
|
|
],
|
|
"id": "9485ee0d-dea6-40a2-b439-ad947d03f4a6",
|
|
"name": "Respond to Webhook"
|
|
}
|
|
],
|
|
"pinData": {},
|
|
"connections": {
|
|
"Create a document": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Move file",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Create a document",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Move file": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond to Webhook",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": true,
|
|
"settings": {
|
|
"executionOrder": "v1",
|
|
"binaryMode": "separate"
|
|
},
|
|
"versionId": "b86e5488-b977-4ed5-813c-4bea3a8b080a",
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true,
|
|
"instanceId": "4b0d44081b86641724941387a3a04b51a305f7e1a5c57b8feea64b401216b1f0"
|
|
},
|
|
"id": "5AhXVFwD2xRkSJXH",
|
|
"tags": []
|
|
} |