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": "AI Search n8n",
"nodes": [
{
"parameters": {
"requestMethod": "POST",
"url": "DISCORD WEBHOOK URL",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "content",
"value": "={{ $json.content }}"
}
]
}
},
"name": "Send to Discord",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1232,
-64
],
"id": "6c76fe9e-8881-4bd6-96fa-11f3687efe75"
},
{
"parameters": {
"modelId": "gpt-oss:120b",
"messages": {
"values": [
{
"content": "=Summarize this clearly for Discord:\\n\\n{{$json.text}}"
}
]
},
"options": {}
},
"name": "Summarize",
"type": "@n8n/n8n-nodes-langchain.ollama",
"typeVersion": 1,
"position": [
928,
-64
],
"id": "6e013038-cb17-4335-9a94-70ceac3964b5",
"credentials": {
"ollamaApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"functionCode": "const results = items[0].json.organic || [];\n\nif (results.length === 0) {\n return [{ json: { text: \"No results found.\" } }];\n}\n\nlet text = \"\ud83d\udd0e Top Results:\\n\\n\";\n\nfor (const r of results.slice(0,5)) {\n text += `**${r.title}**\\n${r.snippet}\\n${r.link}\\n\\n`;\n}\n\nreturn [{ json: { text } }];"
},
"name": "Format Results",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
768,
-64
],
"id": "2863c020-4fea-46d1-a32f-0b7b7bffebc4"
},
{
"parameters": {
"requestMethod": "POST",
"url": "https://google.serper.dev/search",
"jsonParameters": true,
"options": {},
"bodyParametersJson": "={\n \"q\": \"={{$json.body.query}}\"\n}",
"headerParametersJson": "{\n \"X-API-KEY\": \"YOUR SERPER API KEY\",\n \"Content-Type\": \"application/json\"\n}"
},
"name": "Search Web",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
576,
-64
],
"id": "4080ef3d-7c9b-42d2-a8c7-c803e8fe09a0",
"alwaysOutputData": false
},
{
"parameters": {
"httpMethod": "POST",
"path": "discord-search",
"responseMode": "lastNode",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
352,
-64
],
"id": "f3d76e23-0859-4a62-a8d2-d4558eb65df6"
}
],
"connections": {
"Summarize": {
"main": [
[
{
"node": "Send to Discord",
"type": "main",
"index": 0
}
]
]
},
"Format Results": {
"main": [
[
{
"node": "Summarize",
"type": "main",
"index": 0
}
]
]
},
"Search Web": {
"main": [
[
{
"node": "Format Results",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Search Web",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": false
},
"versionId": "c7d59c17-c504-4487-9da8-1cc7bf383184",
"id": "V1a3OSKPRSlMeum4",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
ollamaApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI Search n8n. Uses httpRequest, ollama. Webhook trigger; 5 nodes.
Source: https://github.com/JageTheProgrammer/discord-search-ai-bot/blob/2d689423da5e458cd2ce022a963b1813799d5ec7/workflows/n8n-search-workflow.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 powerful n8n automation workflow is designed to execute advanced B2B lead enrichment and hyper-personalization for cold email outreach. By orchestrating a complex chain of data scraping, AI analy
Propulsar — Content Engine v3. Uses openAi, httpRequest, googleSheets. Webhook trigger; 73 nodes.
Eu Clara – Funil Kiwify Completo. Uses postgres, openAi, httpRequest, gmail. Webhook trigger; 70 nodes.
This workflow bridges the gap between raw product data and revenue sales tools. It automates the entire Product Qualified Lead (PQL) lifecycle—from real-time intent routing to churn prevention—reducin
Lua Nova - Sistema Completo. Uses postgres, httpRequest, openAi. Webhook trigger; 55 nodes.