This workflow follows the Chat Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.
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": "Meal Recipe Generator Bot",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.4,
"position": [
-240,
0
],
"id": "d5fb8c7a-7589-404c-8b85-61c2b53dd9d7",
"name": "When chat message received"
},
{
"parameters": {
"url": "=https://www.themealdb.com/api/json/v1/1/search.php?s={{ $json.chatInput }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
-32,
0
],
"id": "c36bf2d4-a699-432f-8328-04498421c16f",
"name": "HTTP Request"
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "models/gemini-2.5-flash",
"mode": "list",
"cachedResultName": "models/gemini-2.5-flash"
},
"messages": {
"values": [
{
"content": "=You are a professional food writer and recipe editor.\n\nInput (json from api): {{ $json.meals }}\n\nYour job:\n\nUnderstand the raw JSON fields.\n\nReformat them into a readable recipe for a Google Doc, with clear sections, step\u2011by\u2011step instructions, and friendly, engaging language.\n\nUse emojis tastefully to make it fun but still professional and easy to scan.\n\nOutput only formatted text (no JSON, no code fences).\n\nThe JSON will include fields like:\n\nstrMeal (recipe name)\n\nstrCategory (e.g., Vegetarian, Dessert)\n\nstrArea or strCountry (cuisine/region)\n\nstrInstructions (full instructions as one big text)\n\nstrMealThumb (image URL)\n\nstrTags (comma\u2011separated tags)\n\nstrYoutube (YouTube link)\n\nstrIngredient1..20 and strMeasure1..20 (ingredients and quantities)\n\nstrSource (original source URL)\n\nYour tasks\n\nTitle section\n\nFirst line: \ud83c\udf7d\ufe0f <Recipe Name>\n\nSecond line: short one\u2011sentence teaser (max ~25 words) describing the dish and when to serve it.\n\nThird line (meta info line): Category: <Category> \u2022 Cuisine: <Area/Country> \u2022 Difficulty: <your guess: Easy/Medium/Hard>\n\nQuick overview\n\nA short \u201cAt a glance\u201d paragraph (2\u20133 sentences) about flavor profile and context (e.g., \u201cNorth Indian classic with peas and paneer\u2026\u201d).\n\nIf strTags exist, show them as: Tags: #tag1 #tag2 #tag3 (convert commas to hashtags, lowercase).\n\nIngredients section\n\nHeading: \ud83d\udcdd Ingredients\n\nList each non\u2011empty ingredient/measure pair as a bullet: - <measure> <ingredient>\n\nSkip any empty strIngredientX or strMeasureX.\n\nStep\u2011by\u2011step instructions\n\nHeading: \ud83d\udc69\u200d\ud83c\udf73 Step\u2011by\u2011step instructions\n\nTake strInstructions, split into logical steps (around 1\u20133 sentences each).\n\nOutput as numbered list:\n1. ...\n2. ...\netc.\n\nClean up spacing, remove stray \\r\\n, and improve phrasing slightly for clarity, but keep the original cooking logic.\n\nServing & tips\n\nHeading: \ud83c\udf5b Serving suggestions & tips\n\n2\u20134 bullets including:\n\nTraditional accompaniments (e.g., naan, rice, roti) inferred from instructions or ingredients.\n\nSpice level guidance.\n\nOptional variations (e.g., \u201cSwap peas with mixed veggies\u2026\u201d).\n\nMedia & source\n\nIf strMealThumb exists, add: \ud83d\udcf7 Image: <URL>\n\nIf strYoutube exists, add: \u25b6\ufe0f Video tutorial: <URL>\n\nIf strSource exists, add: \ud83d\udd17 Original source: <URL>\n\nStyle guidelines\n\nUse clear headings and spacing so it looks good when pasted into Google Docs.\n\nUse emojis sparingly but consistently at section headings and in 1\u20132 bullets where it adds personality (e.g., \ud83c\udf36\ufe0f for spicy, \ud83e\uddc0 for cheesy).\n\nKeep language friendly, concise, and actionable.\n\nDo not invent ingredients; only use those present in the JSON.\n\nYou may infer simple tips and difficulty level logically from the instructions.\n\nOutput must be only the finished formatted recipe text (no explanations about what you did). "
}
]
},
"builtInTools": {},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"typeVersion": 1.2,
"position": [
176,
0
],
"id": "e11c4efc-b0ca-4bc4-919f-7643684513bf",
"name": "Message a model",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "update",
"documentURL": "YOUR_GOOGLE_SHEET_ID",
"actionsUi": {
"actionFields": [
{
"action": "insert",
"text": "={{ $json.content.parts[0].text }}"
}
]
}
},
"type": "n8n-nodes-base.googleDocs",
"typeVersion": 2,
"position": [
528,
0
],
"id": "3c1583f5-e2cb-45be-963a-9eda731fb3b8",
"name": "Update a document",
"credentials": {
"googleDocsOAuth2Api": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"content": "Free Meal API: \n\nhttps://www.themealdb.com/api.php\n\nAccess meal recipes, meal categories, find meals, and more.\n\nExample: Try Matter Paneer as input in Chat. ",
"height": 176,
"width": 560,
"color": 7
},
"type": "n8n-nodes-base.stickyNote",
"position": [
-256,
208
],
"typeVersion": 1,
"id": "b7493a5e-dacd-4e6a-b556-587078fe8656",
"name": "Sticky Note"
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Message a model",
"type": "main",
"index": 0
}
]
]
},
"Message a model": {
"main": [
[
{
"node": "Update a document",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"binaryMode": "separate",
"availableInMCP": false
},
"staticData": null,
"triggerCount": 0,
"meta": {
"templateCredsSetupCompleted": true
}
}
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.
googleDocsOAuth2ApigooglePalmApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Meal Recipe Generator Bot. Uses chatTrigger, httpRequest, googleGemini, googleDocs. Chat trigger; 5 nodes.
Source: https://github.com/DuttPanchal04/n8n-ai-automation-portfolio/blob/main/meal-recipe-generator-bot/meal-recipe-generator-bot-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 workflow allows users to ask portfolio-related questions in a simple format (). It validates the input, fetches client data and holdings from Google Sheets, retrieves live market prices via API,
This workflow is for: People who want to quickly launch simple landing pages without paying monthly fees to landing page creators. It’s ideal for rapid prototyping, generation of large amounts of land
Movie Recommendation Bot. Uses httpRequest, chatTrigger, googleGemini, openAi. Chat trigger; 8 nodes.
My workflow 2. Uses chatTrigger, httpRequest, googleGemini. Chat trigger; 6 nodes.
Transform your creative pipeline by letting n8n call OpenAI ImageGen1’s _edit image_ endpoint, automatically replacing or augmenting parts of any image you supply and returning a brand-new version in