AI シェフ
中級
これはMiscellaneous, AI Chatbot, Multimodal AI分野の自動化ワークフローで、12個のノードを含みます。主にSet, Telegram, HttpRequest, ConvertToFile, Agentなどのノードを使用。 Telegram ボットを使ってカスタムレシピとレストランスタイルのグルメ画像を生成する
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
使用ノード (12)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "Qhd5ZE0WdsOiFQqj",
"meta": {
"instanceId": "a419abc01bb0423bd41f1b0c0b1dc4e0a3c69d0074efa38bd450d30bc82d13ad",
"templateCredsSetupCompleted": true
},
"name": "AI Chef",
"tags": [],
"nodes": [
{
"id": "525c226c-d024-4e37-8052-a2b3a0996bf1",
"name": "OpenRouter Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
48,
240
],
"parameters": {
"model": "openai/gpt-4o-mini",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "9hdN4saNpFu3PPCh",
"name": "Ai chef"
}
},
"typeVersion": 1
},
{
"id": "1bd83992-eb8c-4aea-8888-878cd67f8a50",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
208,
240
],
"parameters": {
"sessionKey": "={{ $json.message.chat.id }}",
"sessionIdType": "customKey",
"contextWindowLength": 200
},
"typeVersion": 1.3
},
{
"id": "77562a10-731c-4c6a-a938-5f61c8e74266",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
0,
0
],
"webhookId": "e7c9b1ad-f1ce-4ce5-a23e-63e9fd24b9e1",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "OxDi4W0V8EvRRA2F",
"name": "AI Chef Assistant"
}
},
"typeVersion": 1.2
},
{
"id": "dfc79eec-88ac-4c6f-b189-4c07f782c0fa",
"name": "テキストメッセージ送信",
"type": "n8n-nodes-base.telegram",
"position": [
512,
0
],
"webhookId": "e8c60f4d-74e3-4875-934a-043cf5e5815e",
"parameters": {
"text": "={{ $json.output }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "OxDi4W0V8EvRRA2F",
"name": "AI Chef Assistant"
}
},
"typeVersion": 1.2
},
{
"id": "a09f687d-3943-4787-a19e-5163be6bdf75",
"name": "Nano 🍌",
"type": "n8n-nodes-base.httpRequest",
"position": [
1056,
0
],
"parameters": {
"url": "https://openrouter.ai/api/v1/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"google/gemini-2.5-flash-image-preview:free\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"Generate a photorealistic image of {{ $json.output }}\"\n }\n ]\n }\n ]\n}\n",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer $OPENROUTER_API_KEY"
}
]
},
"nodeCredentialType": "openRouterApi"
},
"credentials": {
"openRouterApi": {
"id": "7pnW2IfzgeEN8qVd",
"name": "OpenRouter account"
}
},
"typeVersion": 4.2
},
{
"id": "a51cdb6b-d997-4f6a-a75a-12f6e249a680",
"name": "フィールド編集",
"type": "n8n-nodes-base.set",
"position": [
1248,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "6355ac9e-1f4c-42a3-8167-8bb8298cd369",
"name": "data",
"type": "string",
"value": "={{ $json.choices[0].message.images[0].image_url.url }}"
},
{
"id": "dc98bc1c-4048-4fcb-80c5-73dc99b78ddd",
"name": "base",
"type": "string",
"value": "={{ $json.choices[0].message.images[0].image_url.url.split(',')[1] }}"
},
{
"id": "8033a47e-f50c-43ae-b404-99d0fb5cf4eb",
"name": "mime",
"type": "string",
"value": "={{ $json.choices[0].message.images[0].image_url.url.split(';')[0].split(':')[1] }}"
},
{
"id": "0e516163-02cc-4242-ba70-ac2bce94d2dd",
"name": "fileName",
"type": "string",
"value": ".png"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "bf15ba16-f228-4df1-a5f2-48dd3eceb2af",
"name": "ファイル変換",
"type": "n8n-nodes-base.convertToFile",
"position": [
1152,
240
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "base"
},
"typeVersion": 1.1
},
{
"id": "0b449fab-316d-4379-88cc-5ff4136149e0",
"name": "OpenRouter Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
592,
272
],
"parameters": {
"model": "openai/gpt-4o-mini",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "9hdN4saNpFu3PPCh",
"name": "Ai chef"
}
},
"typeVersion": 1
},
{
"id": "d02178f2-962f-4dcd-978a-fffa8564ae1c",
"name": "写真メッセージ送信",
"type": "n8n-nodes-base.telegram",
"position": [
1360,
240
],
"webhookId": "358204d7-18d1-4486-bbc7-b75abdd0bd97",
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"operation": "sendPhoto",
"binaryData": true,
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "OxDi4W0V8EvRRA2F",
"name": "AI Chef Assistant"
}
},
"typeVersion": 1.2
},
{
"id": "24ceeec0-77af-441b-b479-62a3608effd8",
"name": "AIレシピ",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
208,
0
],
"parameters": {
"text": "={{ $json.message.text }}",
"options": {
"systemMessage": "You are a friendly and professional Virtual Chef Assistant. \nYour role is to help users with cooking, recipes, meal planning, food substitutions, nutrition tips, and step-by-step cooking guidance. \n\nGuidelines:\n- Always reply in a clear, simple, and conversational tone. \n- Suggest recipes based on available ingredients, dietary preferences, or cuisine styles. \n- Provide step-by-step cooking instructions when asked. \n- Offer ingredient substitutions if something is missing. \n- Give nutrition advice when relevant, but do not provide medical advice. \n- Be creative, encouraging, and make cooking feel fun and easy. \n- If the user asks for meal plans, suggest balanced options (breakfast, lunch, dinner, snacks). \n- If the user asks general questions about food or cooking techniques, explain in an easy-to-understand way. \n- Do not provide unsafe cooking practices or harmful instructions. \n\nYour personality:\n- Warm, supportive, and encouraging like a personal chef. \n- Use a mix of professional cooking knowledge and friendly conversation. \n- Adapt tone depending on user: beginner = simple steps, experienced = more advanced techniques."
},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "9d5b6784-261d-41a7-8f51-87298625ec2e",
"name": "レストラン風盛り付けプロンプト",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
688,
0
],
"parameters": {
"text": "={{ $('AI Recipe').item.json.output }}",
"options": {
"systemMessage": "You are an expert AI prompt generator for text-to-image models. \nYour task is to read the recipe text provided and generate a single, clear, and detailed prompt suitable for a photorealistic image generation AI. \nDo not explain the recipe, do not add extra commentary, and do not output anything else except the image prompt. \n\nFocus only on visual details:\n- How the dish looks on a plate\n- Plating style and arrangement\n- Colors, textures, garnishes\n- Lighting and perspective\n- Use only plates and dishware typically found in professional restaurants (white ceramic, slate, glass, or elegant serving dishes)\n- Make it look like a high-end restaurant presentation\n\nThe output should be concise, a single paragraph of text, fully descriptive, ready to feed directly into an image generation model and output should be in English."
},
"promptType": "define"
},
"typeVersion": 2.2
},
{
"id": "3a28861d-d7cb-490a-b8a5-aa48c0846a43",
"name": "付箋メモ",
"type": "n8n-nodes-base.stickyNote",
"position": [
-592,
-272
],
"parameters": {
"width": 496,
"height": 464,
"content": "## AI Chef Bot – Recipe + Food Image Generator \nImport this workflow into your n8n instance.\n\nConfigure your Telegram Bot Token (from BotFather).\n\nConfigure your OpenRouter API Key for AI text + image generation.\n\nSave and activate the workflow.\n\nGo to Telegram and send any dish name (e.g., Polpette di pesce).\n\nThe bot replies with:\n\n📖 A full recipe.\n\n📸 A restaurant-plated realistic food image."
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "4c3ecc19-e40d-4dfd-ba47-4c66aaade24e",
"connections": {
"24ceeec0-77af-441b-b479-62a3608effd8": {
"main": [
[
{
"node": "dfc79eec-88ac-4c6f-b189-4c07f782c0fa",
"type": "main",
"index": 0
}
]
]
},
"a09f687d-3943-4787-a19e-5163be6bdf75": {
"main": [
[
{
"node": "a51cdb6b-d997-4f6a-a75a-12f6e249a680",
"type": "main",
"index": 0
}
]
]
},
"a51cdb6b-d997-4f6a-a75a-12f6e249a680": {
"main": [
[
{
"node": "bf15ba16-f228-4df1-a5f2-48dd3eceb2af",
"type": "main",
"index": 0
}
]
]
},
"bf15ba16-f228-4df1-a5f2-48dd3eceb2af": {
"main": [
[
{
"node": "d02178f2-962f-4dcd-978a-fffa8564ae1c",
"type": "main",
"index": 0
}
]
]
},
"77562a10-731c-4c6a-a938-5f61c8e74266": {
"main": [
[
{
"node": "24ceeec0-77af-441b-b479-62a3608effd8",
"type": "main",
"index": 0
}
]
]
},
"dfc79eec-88ac-4c6f-b189-4c07f782c0fa": {
"main": [
[
{
"node": "9d5b6784-261d-41a7-8f51-87298625ec2e",
"type": "main",
"index": 0
}
]
]
},
"1bd83992-eb8c-4aea-8888-878cd67f8a50": {
"ai_memory": [
[
{
"node": "24ceeec0-77af-441b-b479-62a3608effd8",
"type": "ai_memory",
"index": 0
}
]
]
},
"525c226c-d024-4e37-8052-a2b3a0996bf1": {
"ai_languageModel": [
[
{
"node": "24ceeec0-77af-441b-b479-62a3608effd8",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"0b449fab-316d-4379-88cc-5ff4136149e0": {
"ai_languageModel": [
[
{
"node": "9d5b6784-261d-41a7-8f51-87298625ec2e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"9d5b6784-261d-41a7-8f51-87298625ec2e": {
"main": [
[
{
"node": "a09f687d-3943-4787-a19e-5163be6bdf75",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - その他, AIチャットボット, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
🚀 Shopifyブランドを対象としたAI駆動型WhatsAppカスタマーサポート
Shopify向けのAI駆動WhatsAppカスタマーサポート(LLMエージェント)
Set
Slack
Switch
+
Set
Slack
Switch
30 ノードRuthwik
その他
HTX AIエージェントv1.02
HTX API、GPT-4o、Telegramを使って暗号通貨市場データを分析
Set
Code
Telegram
+
Set
Code
Telegram
35 ノードDon Jayamaha Jr
その他
不動産検索クローラーアシスタント
PropertyFinder.ae、OpenRouter、SerpAPIを使ってAIで不動産に関する質問に回答する
If
Set
Code
+
If
Set
Code
18 ノードGeorge Zargaryan
その他
Telegramフォーラムペルス:コミュニティモニタリングのためのGeminiとGroq AIモデル
Telegramフォーラムペルス:GeminiとGroq AIモデルを使ったコミュニティ監視
If
Set
Code
+
If
Set
Code
59 ノードNguyen Thieu Toan
その他
メモリ、Google Suite、複数のAIリサーチ画像を備えたWhatsAppアシスタントの構築
メモリ、Google Suite、そして複数のAIによる研究イメージングを備えたWhatsAppアシスタントを構築
If
Set
Code
+
If
Set
Code
71 ノードIniyavan JC
AIチャットボット
Telegramサポート取り扱いの自動化
GPT-4とメール通知を使用して、TelegramサポートからAIから人間への段階の移行を自動化
If
Set
Switch
+
If
Set
Switch
40 ノードMeelioo
サポートチャットボット