{"repo": "bara36368-sketch/opencode-server-bot", "files": {"deepseek_workflow.json": {"e1e767f8adf6442228a913b86adfa113190fb51c": {"t": 1785746285.007864, "n": 4696, "h": "6e1f7c4e75355889", "c": "{\n \"name\": \"DeepSeek Web Research\",\n \"nodes\": [\n {\n \"id\": \"webhook-receive\",\n \"name\": \"Receive Request\",\n \"type\": \"n8n-nodes-base.webhook\",\n \"typeVersion\": 1.1,\n \"position\": [250, 300],\n \"parameters\": {\n \"path\": \"deepseek-research\",\n \"options\": {}\n },\n \"webhookId\": \"deepseek-research\"\n },\n {\n \"id\": \"parse-input\",\n \"name\": \"Parse Input\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [500, 300],\n \"parameters\": {\n \"jsCode\": \"const data = $input.first().json;\\nconst query = data.body?.query || data.query || data.body?.message?.text || 'tell me something interesting';\\nreturn [{ query: query }];\"\n }\n },\n {\n \"id\": \"web-search\",\n \"name\": \"Web Search\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [750, 300],\n \"parameters\": {\n \"url\": \"https://api.duckduckgo.com/?q={{ encodeURIComponent($json.query) }}&format=json&no_html=1&skip_disambig=1\",\n \"method\": \"GET\",\n \"authentication\": \"none\",\n \"sendBody\": false,\n \"sendHeaders\": false,\n \"sendQuery\": false\n }\n },\n {\n \"id\": \"extract-search\",\n \"name\": \"Extract Search Results\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1000, 300],\n \"parameters\": {\n \"jsCode\": \"const r = $input.first().json;\\nconst abstract = r.AbstractText || r.Abstract || '';\\nconst heading = r.Heading || '';\\nconst infobox = r.Infobox ? JSON.stringify(r.Infobox).substring(0,500) : '';\\nconst related = (r.RelatedTopics || []).slice(0,5).map(t => t.Text || t.FirstURL || '').filter(Boolean).join('\\\\n');\\nconst source = r.AbstractURL || r.Source || '';\\nreturn [{\\n query: $json.query,\\n heading: heading,\\n abstract: abstract,\\n infobox: infobox,\\n related: related,\\n source: source\\n}];\"\n }\n },\n {\n \"id\": \"deepseek-call\",\n \"name\": \"DeepSeek Analysis\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [1250, 300],\n \"parameters\": {\n \"url\": \"https://api.deepseek.com/v1/chat/completions\",\n \"method\": \"POST\",\n \"authentication\": \"genericCredentialType\",\n \"sendBody\": true,\n \"bodyContentType\": \"json\",\n \"jsonBody\": \"{\\\"model\\\":\\\"deepseek-chat\\\",\\\"messages\\\":[{\\\"role\\\":\\\"system\\\",\\\"content\\\":\\\"You are a research analyst. Analyze the search results and provide a clear, structured answer.\\\"},{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Query: {{$json.query}}\\\\n\\\\nSearch Results:\\\\nHeading: {{$json.heading}}\\\\nAbstract: {{$json.abstract}}\\\\nRelated: {{$json.related}}\\\\n\\\\nProvide a comprehensive answer based on these results.\\\"}],\\\"max_tokens\\\":1024}\",\n \"sendHeaders\": true,\n \"headerParameters\": {\n \"parameters\": [\n { \"name\": \"Authorization\", \"value\": \"Bearer {{ $env.DEEPSEEK_KEY }}\" },\n { \"name\": \"Content-Type\", \"value\": \"application/json\" }\n ]\n }\n }\n },\n {\n \"id\": \"extract-deepseek\",\n \"name\": \"Extract Answer\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1500, 300],\n \"parameters\": {\n \"jsCode\": \"const d = typeof $json.body === 'string' ? JSON.parse($json.body) : $json.body;\\nconst content = d.choices?.[0]?.message?.content || 'No response generated';\\nreturn [{\\n query: $json.query,\\n answer: content,\\n source: $json.source,\\n model: 'deepseek-chat'\\n}];\"\n }\n },\n {\n \"id\": \"respond-webhook\",\n \"name\": \"Send Response\",\n \"type\": \"n8n-nodes-base.respondToWebhook\",\n \"typeVersion\": 1,\n \"position\": [1750, 300],\n \"parameters\": {\n \"respondWith\": \"json\",\n \"options\": {\n \"responseData\": \"allEntries\",\n \"responseContentType\": \"application/json\"\n }\n }\n }\n ],\n \"connections\": {\n \"Receive Request\": {\n \"main\": [[{ \"node\": \"Parse Input\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Parse Input\": {\n \"main\": [[{ \"node\": \"Web Search\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Web Search\": {\n \"main\": [[{ \"node\": \"Extract Search Results\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Search Results\": {\n \"main\": [[{ \"node\": \"DeepSeek Analysis\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"DeepSeek Analysis\": {\n \"main\": [[{ \"node\": \"Extract Answer\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Answer\": {\n \"main\": [[{ \"node\": \"Send Response\", \"type\": \"main\", \"index\": 0 }]]\n }\n },\n \"settings\": {\n \"executionOrder\": \"v1\",\n \"timezone\": \"UTC\"\n },\n \"staticData\": null,\n \"tags\": [],\n \"active\": false\n}\n"}, "972e5b230a39b4da6a29eddabad80d767ebcd61a": {"t": 1785761440.655808, "n": 4696, "h": "6e1f7c4e75355889", "c": "{\n \"name\": \"DeepSeek Web Research\",\n \"nodes\": [\n {\n \"id\": \"webhook-receive\",\n \"name\": \"Receive Request\",\n \"type\": \"n8n-nodes-base.webhook\",\n \"typeVersion\": 1.1,\n \"position\": [250, 300],\n \"parameters\": {\n \"path\": \"deepseek-research\",\n \"options\": {}\n },\n \"webhookId\": \"deepseek-research\"\n },\n {\n \"id\": \"parse-input\",\n \"name\": \"Parse Input\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [500, 300],\n \"parameters\": {\n \"jsCode\": \"const data = $input.first().json;\\nconst query = data.body?.query || data.query || data.body?.message?.text || 'tell me something interesting';\\nreturn [{ query: query }];\"\n }\n },\n {\n \"id\": \"web-search\",\n \"name\": \"Web Search\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [750, 300],\n \"parameters\": {\n \"url\": \"https://api.duckduckgo.com/?q={{ encodeURIComponent($json.query) }}&format=json&no_html=1&skip_disambig=1\",\n \"method\": \"GET\",\n \"authentication\": \"none\",\n \"sendBody\": false,\n \"sendHeaders\": false,\n \"sendQuery\": false\n }\n },\n {\n \"id\": \"extract-search\",\n \"name\": \"Extract Search Results\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1000, 300],\n \"parameters\": {\n \"jsCode\": \"const r = $input.first().json;\\nconst abstract = r.AbstractText || r.Abstract || '';\\nconst heading = r.Heading || '';\\nconst infobox = r.Infobox ? JSON.stringify(r.Infobox).substring(0,500) : '';\\nconst related = (r.RelatedTopics || []).slice(0,5).map(t => t.Text || t.FirstURL || '').filter(Boolean).join('\\\\n');\\nconst source = r.AbstractURL || r.Source || '';\\nreturn [{\\n query: $json.query,\\n heading: heading,\\n abstract: abstract,\\n infobox: infobox,\\n related: related,\\n source: source\\n}];\"\n }\n },\n {\n \"id\": \"deepseek-call\",\n \"name\": \"DeepSeek Analysis\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [1250, 300],\n \"parameters\": {\n \"url\": \"https://api.deepseek.com/v1/chat/completions\",\n \"method\": \"POST\",\n \"authentication\": \"genericCredentialType\",\n \"sendBody\": true,\n \"bodyContentType\": \"json\",\n \"jsonBody\": \"{\\\"model\\\":\\\"deepseek-chat\\\",\\\"messages\\\":[{\\\"role\\\":\\\"system\\\",\\\"content\\\":\\\"You are a research analyst. Analyze the search results and provide a clear, structured answer.\\\"},{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Query: {{$json.query}}\\\\n\\\\nSearch Results:\\\\nHeading: {{$json.heading}}\\\\nAbstract: {{$json.abstract}}\\\\nRelated: {{$json.related}}\\\\n\\\\nProvide a comprehensive answer based on these results.\\\"}],\\\"max_tokens\\\":1024}\",\n \"sendHeaders\": true,\n \"headerParameters\": {\n \"parameters\": [\n { \"name\": \"Authorization\", \"value\": \"Bearer {{ $env.DEEPSEEK_KEY }}\" },\n { \"name\": \"Content-Type\", \"value\": \"application/json\" }\n ]\n }\n }\n },\n {\n \"id\": \"extract-deepseek\",\n \"name\": \"Extract Answer\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1500, 300],\n \"parameters\": {\n \"jsCode\": \"const d = typeof $json.body === 'string' ? JSON.parse($json.body) : $json.body;\\nconst content = d.choices?.[0]?.message?.content || 'No response generated';\\nreturn [{\\n query: $json.query,\\n answer: content,\\n source: $json.source,\\n model: 'deepseek-chat'\\n}];\"\n }\n },\n {\n \"id\": \"respond-webhook\",\n \"name\": \"Send Response\",\n \"type\": \"n8n-nodes-base.respondToWebhook\",\n \"typeVersion\": 1,\n \"position\": [1750, 300],\n \"parameters\": {\n \"respondWith\": \"json\",\n \"options\": {\n \"responseData\": \"allEntries\",\n \"responseContentType\": \"application/json\"\n }\n }\n }\n ],\n \"connections\": {\n \"Receive Request\": {\n \"main\": [[{ \"node\": \"Parse Input\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Parse Input\": {\n \"main\": [[{ \"node\": \"Web Search\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Web Search\": {\n \"main\": [[{ \"node\": \"Extract Search Results\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Search Results\": {\n \"main\": [[{ \"node\": \"DeepSeek Analysis\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"DeepSeek Analysis\": {\n \"main\": [[{ \"node\": \"Extract Answer\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Answer\": {\n \"main\": [[{ \"node\": \"Send Response\", \"type\": \"main\", \"index\": 0 }]]\n }\n },\n \"settings\": {\n \"executionOrder\": \"v1\",\n \"timezone\": \"UTC\"\n },\n \"staticData\": null,\n \"tags\": [],\n \"active\": false\n}\n"}, "1c319602a44bf111dd55a1d57753691874fbd479": {"t": 1786067674.8331976, "n": 4696, "h": "6e1f7c4e75355889", "c": "{\n \"name\": \"DeepSeek Web Research\",\n \"nodes\": [\n {\n \"id\": \"webhook-receive\",\n \"name\": \"Receive Request\",\n \"type\": \"n8n-nodes-base.webhook\",\n \"typeVersion\": 1.1,\n \"position\": [250, 300],\n \"parameters\": {\n \"path\": \"deepseek-research\",\n \"options\": {}\n },\n \"webhookId\": \"deepseek-research\"\n },\n {\n \"id\": \"parse-input\",\n \"name\": \"Parse Input\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [500, 300],\n \"parameters\": {\n \"jsCode\": \"const data = $input.first().json;\\nconst query = data.body?.query || data.query || data.body?.message?.text || 'tell me something interesting';\\nreturn [{ query: query }];\"\n }\n },\n {\n \"id\": \"web-search\",\n \"name\": \"Web Search\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [750, 300],\n \"parameters\": {\n \"url\": \"https://api.duckduckgo.com/?q={{ encodeURIComponent($json.query) }}&format=json&no_html=1&skip_disambig=1\",\n \"method\": \"GET\",\n \"authentication\": \"none\",\n \"sendBody\": false,\n \"sendHeaders\": false,\n \"sendQuery\": false\n }\n },\n {\n \"id\": \"extract-search\",\n \"name\": \"Extract Search Results\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1000, 300],\n \"parameters\": {\n \"jsCode\": \"const r = $input.first().json;\\nconst abstract = r.AbstractText || r.Abstract || '';\\nconst heading = r.Heading || '';\\nconst infobox = r.Infobox ? JSON.stringify(r.Infobox).substring(0,500) : '';\\nconst related = (r.RelatedTopics || []).slice(0,5).map(t => t.Text || t.FirstURL || '').filter(Boolean).join('\\\\n');\\nconst source = r.AbstractURL || r.Source || '';\\nreturn [{\\n query: $json.query,\\n heading: heading,\\n abstract: abstract,\\n infobox: infobox,\\n related: related,\\n source: source\\n}];\"\n }\n },\n {\n \"id\": \"deepseek-call\",\n \"name\": \"DeepSeek Analysis\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"typeVersion\": 4.2,\n \"position\": [1250, 300],\n \"parameters\": {\n \"url\": \"https://api.deepseek.com/v1/chat/completions\",\n \"method\": \"POST\",\n \"authentication\": \"genericCredentialType\",\n \"sendBody\": true,\n \"bodyContentType\": \"json\",\n \"jsonBody\": \"{\\\"model\\\":\\\"deepseek-chat\\\",\\\"messages\\\":[{\\\"role\\\":\\\"system\\\",\\\"content\\\":\\\"You are a research analyst. Analyze the search results and provide a clear, structured answer.\\\"},{\\\"role\\\":\\\"user\\\",\\\"content\\\":\\\"Query: {{$json.query}}\\\\n\\\\nSearch Results:\\\\nHeading: {{$json.heading}}\\\\nAbstract: {{$json.abstract}}\\\\nRelated: {{$json.related}}\\\\n\\\\nProvide a comprehensive answer based on these results.\\\"}],\\\"max_tokens\\\":1024}\",\n \"sendHeaders\": true,\n \"headerParameters\": {\n \"parameters\": [\n { \"name\": \"Authorization\", \"value\": \"Bearer {{ $env.DEEPSEEK_KEY }}\" },\n { \"name\": \"Content-Type\", \"value\": \"application/json\" }\n ]\n }\n }\n },\n {\n \"id\": \"extract-deepseek\",\n \"name\": \"Extract Answer\",\n \"type\": \"n8n-nodes-base.code\",\n \"typeVersion\": 2,\n \"position\": [1500, 300],\n \"parameters\": {\n \"jsCode\": \"const d = typeof $json.body === 'string' ? JSON.parse($json.body) : $json.body;\\nconst content = d.choices?.[0]?.message?.content || 'No response generated';\\nreturn [{\\n query: $json.query,\\n answer: content,\\n source: $json.source,\\n model: 'deepseek-chat'\\n}];\"\n }\n },\n {\n \"id\": \"respond-webhook\",\n \"name\": \"Send Response\",\n \"type\": \"n8n-nodes-base.respondToWebhook\",\n \"typeVersion\": 1,\n \"position\": [1750, 300],\n \"parameters\": {\n \"respondWith\": \"json\",\n \"options\": {\n \"responseData\": \"allEntries\",\n \"responseContentType\": \"application/json\"\n }\n }\n }\n ],\n \"connections\": {\n \"Receive Request\": {\n \"main\": [[{ \"node\": \"Parse Input\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Parse Input\": {\n \"main\": [[{ \"node\": \"Web Search\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Web Search\": {\n \"main\": [[{ \"node\": \"Extract Search Results\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Search Results\": {\n \"main\": [[{ \"node\": \"DeepSeek Analysis\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"DeepSeek Analysis\": {\n \"main\": [[{ \"node\": \"Extract Answer\", \"type\": \"main\", \"index\": 0 }]]\n },\n \"Extract Answer\": {\n \"main\": [[{ \"node\": \"Send Response\", \"type\": \"main\", \"index\": 0 }]]\n }\n },\n \"settings\": {\n \"executionOrder\": \"v1\",\n \"timezone\": \"UTC\"\n },\n \"staticData\": null,\n \"tags\": [],\n \"active\": false\n}\n"}}}}