Chef IA
Ceci est unMiscellaneous, AI Chatbot, Multimodal AIworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme Set, Telegram, HttpRequest, ConvertToFile, Agent. Générer des recettes personnalisées et des images de nourriture de restaurant via le bot Telegram
- •Token Bot Telegram
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
Nœuds utilisés (12)
Catégorie
{
"id": "Qhd5ZE0WdsOiFQqj",
"meta": {
"instanceId": "a419abc01bb0423bd41f1b0c0b1dc4e0a3c69d0074efa38bd450d30bc82d13ad",
"templateCredsSetupCompleted": true
},
"name": "AI Chef",
"tags": [],
"nodes": [
{
"id": "525c226c-d024-4e37-8052-a2b3a0996bf1",
"name": "Modèle de chat OpenRouter",
"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": "Mémoire tampon de fenêtre",
"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": "Déclencheur Telegram",
"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": "Envoyer un message texte",
"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": "Modifier les champs",
"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": "Convertir en fichier",
"type": "n8n-nodes-base.convertToFile",
"position": [
1152,
240
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "base"
},
"typeVersion": 1.1
},
{
"id": "0b449fab-316d-4379-88cc-5ff4136149e0",
"name": "Modèle de chat OpenRouter1",
"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": "Envoyer un message photo",
"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": "Recette IA",
"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": "Invite de présentation style restaurant",
"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": "Note adhésive",
"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
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Divers, Chatbot IA, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Md Sabirul Islam
@shishirislam80Partager ce workflow