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": "Agent Query Workflow (Prototype)",
"nodes": [
{
"parameters": {
"path": "query",
"httpMethod": "POST",
"responseMode": "onReceived",
"options": {}
},
"id": "WebhookTrigger",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
240,
280
]
},
{
"parameters": {
"method": "POST",
"url": "http://127.0.0.1:8000/query",
"sendBody": true,
"jsonParameters": true,
"bodyParametersJson": "={\n \"text\": $json.body?.text || $json.text || \"\",\n \"top_k\": 4,\n \"allow_generation\": false\n}",
"options": {}
},
"id": "CallLocalAPI",
"name": "Call Local API (/query)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
520,
280
]
},
{
"parameters": {
"respondWith": "allIncomingItems",
"responseBody": "={{$json}}",
"options": {}
},
"id": "Respond",
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
780,
280
]
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Call Local API (/query)",
"type": "main",
"index": 0
}
]
]
},
"Call Local API (/query)": {
"main": [
[
{
"node": "Respond",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Agent Query Workflow (Prototype). Uses httpRequest. Webhook trigger; 3 nodes.
Source: https://github.com/salah1892/26_MR2-Ing-nierie_des_protocoles_r-seaux_Complement_Part_B_Phase_I_-_II/blob/3615ec6faf56623ab0975a1594d4f7c3283ce5c8/n8n/query_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.
YouTube Newsletter Generator. Uses httpRequest. Webhook trigger; 5 nodes.
Instagram - Fluxo de mensagens. Uses rabbitmq, rabbitmqTrigger, googleSheets, httpRequest. Webhook trigger; 74 nodes.
Automated n8n workflow: Receives videos via form, dubs/translates them to the selected languages, and—upon completion—uploads them to multiple social media channels and cloud drives, including Box, Dr
Automate your post-event Instagram carousel using a fan-out and merge pattern. One Code node splits the photos array into individual n8n items. Every photo then flows through HTTP Fetch, Upload to URL
My workflow 3. Uses httpRequest, youTube. Webhook trigger; 17 nodes.