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": "BTS Menu Creator Simple",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "create-menu",
"responseMode": "responseNode",
"options": {}
},
"id": "webhook",
"name": "Menu Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
250,
300
]
},
{
"parameters": {
"jsCode": "const body = $input.first().json.body || $input.first().json;\nconst restaurantId = body.restaurantId || 'unknown';\nconst items = body.menuItems || [];\nconst imageUrl = body.url;\nconst fileBase64 = body.file?.base64 || body.file?.data;\n\nreturn {\n restaurantId,\n items,\n imageUrl,\n hasImage: !!imageUrl || !!fileBase64,\n fileBase64,\n receivedAt: new Date().toISOString()\n};"
},
"id": "parse-input",
"name": "Parse Input",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
500,
300
]
},
{
"parameters": {
"conditions": {
"boolean": [
{
"value1": "={{ $json.hasImage }}",
"value2": true
}
]
}
},
"id": "check-image",
"name": "Has Image?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
750,
300
]
},
{
"parameters": {
"method": "POST",
"url": "https://openrouter.ai/api/v1/chat/completions",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "=Bearer {{ $env.OPENROUTER_API_KEY }}"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"google/gemini-2.5-flash-preview\",\n \"messages\": [{\n \"role\": \"user\",\n \"content\": [\n {\"type\": \"image_url\", \"image_url\": {\"url\": \"{{ $json.imageUrl || 'data:image/jpeg;base64,' + $json.fileBase64 }}\"}},\n {\"type\": \"text\", \"text\": \"Extract ALL menu items from this image. Return JSON array: [{\\\"name\\\":\\\"\\\",\\\"price\\\":0,\\\"category\\\":\\\"\\\",\\\"description\\\":\\\"\\\"}]\"}\n ]\n }],\n \"max_tokens\": 4000\n}",
"options": {
"timeout": 60000
}
},
"id": "vision-ai",
"name": "Extract Menu (Vision)",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1000,
200
]
},
{
"parameters": {
"jsCode": "const input = $input.first().json;\nlet items = input.items || [];\n\nif (input.choices?.[0]?.message?.content) {\n try {\n let c = input.choices[0].message.content;\n c = c.replace(/```json?/g,'').replace(/```/g,'').trim();\n const match = c.match(/\\[.*\\]/s);\n if (match) items = JSON.parse(match[0]);\n } catch(e) {}\n}\n\nreturn {\n restaurantId: $('Parse Input').first().json.restaurantId,\n items: items.map((i,idx) => ({\n name: i.name || 'Item '+(idx+1),\n price: parseFloat(i.price) || 0,\n category: i.category || 'General',\n description: i.description || ''\n })),\n count: items.length\n};"
},
"id": "normalize",
"name": "Normalize Items",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
1250,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={\n \"success\": true,\n \"restaurantId\": \"{{ $json.restaurantId }}\",\n \"itemCount\": {{ $json.count }},\n \"items\": {{ JSON.stringify($json.items) }}\n}"
},
"id": "respond",
"name": "Return Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
1500,
300
]
}
],
"connections": {
"Menu Webhook": {
"main": [
[
{
"node": "Parse Input",
"type": "main",
"index": 0
}
]
]
},
"Parse Input": {
"main": [
[
{
"node": "Has Image?",
"type": "main",
"index": 0
}
]
]
},
"Has Image?": {
"main": [
[
{
"node": "Extract Menu (Vision)",
"type": "main",
"index": 0
}
],
[
{
"node": "Normalize Items",
"type": "main",
"index": 0
}
]
]
},
"Extract Menu (Vision)": {
"main": [
[
{
"node": "Normalize Items",
"type": "main",
"index": 0
}
]
]
},
"Normalize Items": {
"main": [
[
{
"node": "Return Response",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
BTS Menu Creator Simple. Uses httpRequest. Webhook trigger; 6 nodes.
Source: https://github.com/innovatehubph/bts-delivery/blob/26bb958764e52fab467da38333b0c259c7a84fd8/n8n-workflows/ai-menu-simple.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 n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
eek-Go v2 (Batch-Then-Review). Uses httpRequest. Webhook trigger; 75 nodes.
This workflow receives webhook requests from a content calendar and uses the X API v2 to publish text posts, threads, image/video posts, and polls, as well as delete existing posts and run a credentia
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c