From 5748eb9d100e3d0c1867eb187122d85a46b4da0e Mon Sep 17 00:00:00 2001 From: harishdtu Date: Mon, 30 Mar 2026 21:17:07 +0530 Subject: [PATCH 1/8] Add Gym AI Coach Agent --- agents/gym-coach-agent.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 agents/gym-coach-agent.md diff --git a/agents/gym-coach-agent.md b/agents/gym-coach-agent.md new file mode 100644 index 00000000..e69de29b From c99c3412e5d76e4dc28f7d0c8d3631a5c6017467 Mon Sep 17 00:00:00 2001 From: harishdtu Date: Mon, 30 Mar 2026 22:15:44 +0530 Subject: [PATCH 2/8] Move Gym AI Coach Agent to templates --- agents/gym-coach-agent.md | 0 .../flows/gym-coach/README.md | 25 +++ .../flows/gym-coach/config.json | 170 ++++++++++++++++++ .../flows/gym-coach/inputs.json | 6 + .../flows/gym-coach/meta.json | 6 + 5 files changed, 207 insertions(+) delete mode 100644 agents/gym-coach-agent.md create mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/README.md create mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/config.json create mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/inputs.json create mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/meta.json diff --git a/agents/gym-coach-agent.md b/agents/gym-coach-agent.md deleted file mode 100644 index e69de29b..00000000 diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/README.md b/templates/gym-ai-coach-agent/flows/gym-coach/README.md new file mode 100644 index 00000000..b0a34e8a --- /dev/null +++ b/templates/gym-ai-coach-agent/flows/gym-coach/README.md @@ -0,0 +1,25 @@ +# Gym AI Coach Flow + +## Overview +This flow generates personalized fitness plans including diet, workout, and protein suggestions. + +## Input +User provides: +- Weight +- Goal +- Budget +- Diet type + +## Output +- Diet Plan +- Workout Plan +- Protein Sources +- Tips + +## How It Works +1. User input is captured via chat widget +2. AI processes input using prompt engineering +3. Structured output is generated + +## Use Case +Helps beginners create fitness plans easily without expert knowledge. \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/config.json b/templates/gym-ai-coach-agent/flows/gym-coach/config.json new file mode 100644 index 00000000..83d2c551 --- /dev/null +++ b/templates/gym-ai-coach-agent/flows/gym-coach/config.json @@ -0,0 +1,170 @@ +triggerNode: + nodeId: triggerNode_1 + nodeType: chatTriggerNode + nodeName: User Input + values: + chat: '' + domains: &ref_0 + - '*' + chatConfig: &ref_1 + botName: Lamatic Bot + imageUrl: >- + https://img.freepik.com/premium-vector/robot-android-super-hero_111928-7.jpg?w=826 + position: right + policyUrl: https://lamatic.ai/docs/legal/privacy-policy + displayMode: popup + placeholder: Compose your message + suggestions: + - What is lamatic? + - How do I add data to my chatbot? + - Explain this product to me + errorMessage: Oops! Something went wrong. Please try again. + hideBranding: false + primaryColor: '#ef4444' + headerBgColor: '#000000' + greetingMessage: Hi, I am Lamatic Bot. Ask me anything about Lamatic + headerTextColor: '#FFFFFF' + showEmojiButton: true + suggestionBgColor: '#f1f5f9' + userMessageBgColor: '#FEF2F2' + agentMessageBgColor: '#f1f5f9' + suggestionTextColor: '#334155' + userMessageTextColor: '#d12323' + agentMessageTextColor: '#334155' + modes: {} + allConfigs: + Config A: + id: triggerNode_1 + chat: '' + domains: *ref_0 + nodeName: User Input + chatConfig: *ref_1 + schema: {} +nodes: + - nodeId: LLMNode_567 + nodeType: LLMNode + nodeName: AI Coach Engine + values: + tools: &ref_2 [] + prompts: &ref_3 + - id: 187c2f4b-c23d-4545-abef-73dc897d6b7b + role: system + content: |- + You are an expert fitness coach. + You create personalized fitness plans based on user details. + Rules: + - Use simple, practical, Indian diet + - Focus on budget-friendly foods + - Keep workout beginner-friendly unless specified + - Give clear structured output + - Avoid expensive or unrealistic suggestions + Always generate: + 1. Diet Plan + 2. Workout Plan + 3. Protein Sources + 4. Tips + - id: 187c2f4b-c23d-4545-abef-73dc897d6b7d + role: user + content: >- + User input: + + {{input}} + + Analyze the user carefully. + + Also estimate daily protein requirement (grams). + + Now generate clean structured output: + + šŸ‹ļø GYM AI COACH PLAN + + šŸ‘¤ Profile Summary: + + - Goal: + + - Weight: + + - Diet Type: + + šŸ„— DIET PLAN: + + Breakfast: + + Lunch: + + Dinner: + + Snacks: + + šŸ‹ļø WORKOUT PLAN: + + Day 1: + + Day 2: + + Day 3: + + šŸ’Ŗ PROTEIN TARGET: + + - Daily protein needed: + + šŸ— PROTEIN SOURCES: + + - + + ⚔ TIPS: + + -If user is vegetarian → avoid eggs/meat If budget is low → suggest + cheap foods only + memories: '[]' + messages: '{{triggerNode_1.output.chatHistory}}' + attachments: '' + credentials: '' + generativeModelName: &ref_4 + - type: generator/text + params: {} + configName: configA + model_name: gemini/gemini-2.5-flash + credentialId: 32c708a5-14de-41ff-91fe-04edcd840f2a + provider_name: gemini + credential_name: gemini + modes: {} + needs: + - triggerNode_1 + allConfigs: + Config A: + id: LLMNode_567 + tools: *ref_2 + prompts: *ref_3 + memories: '[]' + messages: '{{triggerNode_1.output.chatHistory}}' + nodeName: AI Coach Engine + attachments: '' + credentials: '' + generativeModelName: *ref_4 + schema: + _meta: object + images: array + tool_calls: object + generatedResponse: string +responseNode: + nodeId: responseNode_triggerNode_1 + nodeType: chatResponseNode + nodeName: Final Response + values: + content: '{{LLMNode_567.output.generatedResponse}}' + references: '' + webhookUrl: '' + webhookHeaders: '' + needs: + - LLMNode_567 + modes: {} + allConfigs: + Config A: + id: responseNode_triggerNode_1 + content: '{{LLMNode_567.output.generatedResponse}}' + nodeName: Final Response + references: '' + webhookUrl: '' + webhookHeaders: '' + schema: {} diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json b/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json new file mode 100644 index 00000000..284dcdb5 --- /dev/null +++ b/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json @@ -0,0 +1,6 @@ +{ + "input": "Weight: 61kg, + Goal: Muscle Gain, + Budget: Low, Diet: + Vegetarian" +} \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/meta.json b/templates/gym-ai-coach-agent/flows/gym-coach/meta.json new file mode 100644 index 00000000..284dcdb5 --- /dev/null +++ b/templates/gym-ai-coach-agent/flows/gym-coach/meta.json @@ -0,0 +1,6 @@ +{ + "input": "Weight: 61kg, + Goal: Muscle Gain, + Budget: Low, Diet: + Vegetarian" +} \ No newline at end of file From da97ad70846f6442f201dd36aab8c818530d1139 Mon Sep 17 00:00:00 2001 From: harishdtu Date: Mon, 30 Mar 2026 22:17:36 +0530 Subject: [PATCH 3/8] Move Gym AI Coach Agent to templates --- templates/gym-ai-coach-agent/README.md | 25 ++++++++++++++++++++++++ templates/gym-ai-coach-agent/config.json | 12 ++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 templates/gym-ai-coach-agent/README.md create mode 100644 templates/gym-ai-coach-agent/config.json diff --git a/templates/gym-ai-coach-agent/README.md b/templates/gym-ai-coach-agent/README.md new file mode 100644 index 00000000..4a55bf40 --- /dev/null +++ b/templates/gym-ai-coach-agent/README.md @@ -0,0 +1,25 @@ +# Gym AI Coach Agent + +## Problem +Many beginners struggle to create proper diet and workout plans. + +## Solution +An AI-powered agent that generates personalized fitness plans. + +## Features +- Budget-friendly Indian diet +- Workout planning +- Protein estimation +- Structured output + +## Setup +1. Add your API key (Gemini or other) +2. Import flow into Lamatic +3. Run the agent + +## Usage +Enter: +Weight, Goal, Budget, Diet + +Get: +Complete fitness plan instantly \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/config.json b/templates/gym-ai-coach-agent/config.json new file mode 100644 index 00000000..6f924f54 --- /dev/null +++ b/templates/gym-ai-coach-agent/config.json @@ -0,0 +1,12 @@ +{ + "name": "Gym AI Coach Agent", + "description": "AI agent that generates personalized diet and workout plans based on user input.", + "tags": ["fitness", "ai", "health", "agent"], + "author": "Harish Vasamsetti", + "steps": [ + "Provide user input (weight, goal, diet)", + "Generate fitness plan", + "Return structured output" + ], + "env": [] +} \ No newline at end of file From 7b32fb2aed043235b0937ccd09870043a762b8d9 Mon Sep 17 00:00:00 2001 From: harishdtu Date: Tue, 31 Mar 2026 00:25:44 +0530 Subject: [PATCH 4/8] Fix CodeRabbit issues: JSON, credentials, formatting --- templates/gym-ai-coach-agent/config.json | 8 +- .../flows/gym-coach/README.md | 87 +++-- .../flows/gym-coach/config.json | 337 +++++++++--------- .../flows/gym-coach/inputs.json | 28 +- .../flows/gym-coach/meta.json | 11 +- 5 files changed, 264 insertions(+), 207 deletions(-) diff --git a/templates/gym-ai-coach-agent/config.json b/templates/gym-ai-coach-agent/config.json index 6f924f54..816359c9 100644 --- a/templates/gym-ai-coach-agent/config.json +++ b/templates/gym-ai-coach-agent/config.json @@ -4,9 +4,9 @@ "tags": ["fitness", "ai", "health", "agent"], "author": "Harish Vasamsetti", "steps": [ - "Provide user input (weight, goal, diet)", - "Generate fitness plan", - "Return structured output" - ], + "Provide user input (weight, goal, budget, diet)", + "Generate fitness plan", + "Return structured output" +], "env": [] } \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/README.md b/templates/gym-ai-coach-agent/flows/gym-coach/README.md index b0a34e8a..7f125401 100644 --- a/templates/gym-ai-coach-agent/flows/gym-coach/README.md +++ b/templates/gym-ai-coach-agent/flows/gym-coach/README.md @@ -1,25 +1,62 @@ -# Gym AI Coach Flow - -## Overview -This flow generates personalized fitness plans including diet, workout, and protein suggestions. - -## Input -User provides: -- Weight -- Goal -- Budget -- Diet type - -## Output -- Diet Plan -- Workout Plan -- Protein Sources -- Tips - -## How It Works -1. User input is captured via chat widget -2. AI processes input using prompt engineering -3. Structured output is generated - -## Use Case -Helps beginners create fitness plans easily without expert knowledge. \ No newline at end of file +# 1 - Getting Started + +## About This Flow + +This flow automates a workflow with **3 nodes** working together to process and transform data. The flow is designed to streamline operations and can be easily integrated into your existing systems. + +## Flow Components + +This workflow includes the following node types: +- Chat Trigger +- Generate Text +- Chat Response + +## Configuration Requirements + +This flow requires configuration for **1 node(s)** with private inputs (credentials, API keys, model selections, etc.). All required configurations are documented in the `inputs.json` file. + +## Files Included + +- **config.json** - Complete flow structure with nodes and connections +- **inputs.json** - Private inputs requiring configuration +- **meta.json** - Flow metadata and information + +## Next Steps + +### Share with the Community + +Help grow the Lamatic ecosystem by contributing this flow to AgentKit! + +1. **Fork the Repository** + - Visit [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) + - Fork the repository to your GitHub account + +2. **Prepare Your Submission** + - Create a new folder with a descriptive name for your flow + - Add all files from this package (`config.json`, `inputs.json`, `meta.json`) + - Write a comprehensive README.md that includes: + - Clear description of what the flow does + - Use cases and benefits + - Step-by-step setup instructions + - Required credentials and how to obtain them + - Example inputs and expected outputs + - Screenshots or diagrams (optional but recommended) + +3. **Open a Pull Request** + - Commit your changes with a descriptive message + - Push to your forked repository + - Open a PR to [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) + - Add a clear description of your flow in the PR + +Your contribution will help others build amazing automations! šŸš€ + +## Support + +For questions or issues with this flow: +- Review the node documentation for specific integrations +- Check the Lamatic documentation at docs.lamatic.ai +- Contact support for assistance + +--- +*Exported from Lamatic Flow Editor* +*Generated on 3/31/2026* diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/config.json b/templates/gym-ai-coach-agent/flows/gym-coach/config.json index 83d2c551..2d1d5798 100644 --- a/templates/gym-ai-coach-agent/flows/gym-coach/config.json +++ b/templates/gym-ai-coach-agent/flows/gym-coach/config.json @@ -1,170 +1,167 @@ -triggerNode: - nodeId: triggerNode_1 - nodeType: chatTriggerNode - nodeName: User Input - values: - chat: '' - domains: &ref_0 - - '*' - chatConfig: &ref_1 - botName: Lamatic Bot - imageUrl: >- - https://img.freepik.com/premium-vector/robot-android-super-hero_111928-7.jpg?w=826 - position: right - policyUrl: https://lamatic.ai/docs/legal/privacy-policy - displayMode: popup - placeholder: Compose your message - suggestions: - - What is lamatic? - - How do I add data to my chatbot? - - Explain this product to me - errorMessage: Oops! Something went wrong. Please try again. - hideBranding: false - primaryColor: '#ef4444' - headerBgColor: '#000000' - greetingMessage: Hi, I am Lamatic Bot. Ask me anything about Lamatic - headerTextColor: '#FFFFFF' - showEmojiButton: true - suggestionBgColor: '#f1f5f9' - userMessageBgColor: '#FEF2F2' - agentMessageBgColor: '#f1f5f9' - suggestionTextColor: '#334155' - userMessageTextColor: '#d12323' - agentMessageTextColor: '#334155' - modes: {} - allConfigs: - Config A: - id: triggerNode_1 - chat: '' - domains: *ref_0 - nodeName: User Input - chatConfig: *ref_1 - schema: {} -nodes: - - nodeId: LLMNode_567 - nodeType: LLMNode - nodeName: AI Coach Engine - values: - tools: &ref_2 [] - prompts: &ref_3 - - id: 187c2f4b-c23d-4545-abef-73dc897d6b7b - role: system - content: |- - You are an expert fitness coach. - You create personalized fitness plans based on user details. - Rules: - - Use simple, practical, Indian diet - - Focus on budget-friendly foods - - Keep workout beginner-friendly unless specified - - Give clear structured output - - Avoid expensive or unrealistic suggestions - Always generate: - 1. Diet Plan - 2. Workout Plan - 3. Protein Sources - 4. Tips - - id: 187c2f4b-c23d-4545-abef-73dc897d6b7d - role: user - content: >- - User input: - - {{input}} - - Analyze the user carefully. - - Also estimate daily protein requirement (grams). - - Now generate clean structured output: - - šŸ‹ļø GYM AI COACH PLAN - - šŸ‘¤ Profile Summary: - - - Goal: - - - Weight: - - - Diet Type: - - šŸ„— DIET PLAN: - - Breakfast: - - Lunch: - - Dinner: - - Snacks: - - šŸ‹ļø WORKOUT PLAN: - - Day 1: - - Day 2: - - Day 3: - - šŸ’Ŗ PROTEIN TARGET: - - - Daily protein needed: - - šŸ— PROTEIN SOURCES: - - - - - ⚔ TIPS: - - -If user is vegetarian → avoid eggs/meat If budget is low → suggest - cheap foods only - memories: '[]' - messages: '{{triggerNode_1.output.chatHistory}}' - attachments: '' - credentials: '' - generativeModelName: &ref_4 - - type: generator/text - params: {} - configName: configA - model_name: gemini/gemini-2.5-flash - credentialId: 32c708a5-14de-41ff-91fe-04edcd840f2a - provider_name: gemini - credential_name: gemini - modes: {} - needs: - - triggerNode_1 - allConfigs: - Config A: - id: LLMNode_567 - tools: *ref_2 - prompts: *ref_3 - memories: '[]' - messages: '{{triggerNode_1.output.chatHistory}}' - nodeName: AI Coach Engine - attachments: '' - credentials: '' - generativeModelName: *ref_4 - schema: - _meta: object - images: array - tool_calls: object - generatedResponse: string -responseNode: - nodeId: responseNode_triggerNode_1 - nodeType: chatResponseNode - nodeName: Final Response - values: - content: '{{LLMNode_567.output.generatedResponse}}' - references: '' - webhookUrl: '' - webhookHeaders: '' - needs: - - LLMNode_567 - modes: {} - allConfigs: - Config A: - id: responseNode_triggerNode_1 - content: '{{LLMNode_567.output.generatedResponse}}' - nodeName: Final Response - references: '' - webhookUrl: '' - webhookHeaders: '' - schema: {} +{ + "nodes": [ + { + "id": "triggerNode_1", + "data": { + "modes": {}, + "nodeId": "chatTriggerNode", + "schema": {}, + "values": { + "id": "triggerNode_1", + "chat": "", + "domains": [ + "*" + ], + "nodeName": "User Input", + "chatConfig": { + "botName": "Lamatic Bot", + "imageUrl": "https://img.freepik.com/premium-vector/robot-android-super-hero_111928-7.jpg?w=826", + "position": "right", + "policyUrl": "https://lamatic.ai/docs/legal/privacy-policy", + "displayMode": "popup", + "placeholder": "Compose your message", + "suggestions": [ + "What is lamatic?", + "How do I add data to my chatbot?", + "Explain this product to me" + ], + "errorMessage": "Oops! Something went wrong. Please try again.", + "hideBranding": false, + "primaryColor": "#ef4444", + "headerBgColor": "#000000", + "greetingMessage": "Hi, I am Lamatic Bot. Ask me anything about Lamatic", + "headerTextColor": "#FFFFFF", + "showEmojiButton": true, + "suggestionBgColor": "#f1f5f9", + "userMessageBgColor": "#FEF2F2", + "agentMessageBgColor": "#f1f5f9", + "suggestionTextColor": "#334155", + "userMessageTextColor": "#d12323", + "agentMessageTextColor": "#334155" + } + }, + "trigger": true + }, + "type": "triggerNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 0 + }, + "selected": false + }, + { + "id": "LLMNode_567", + "data": { + "label": "dynamicNode node", + "modes": {}, + "nodeId": "LLMNode", + "schema": { + "_meta": "object", + "images": "array", + "tool_calls": "object", + "generatedResponse": "string" + }, + "values": { + "id": "LLMNode_567", + "tools": [], + "prompts": [ + { + "id": "187c2f4b-c23d-4545-abef-73dc897d6b7b", + "role": "system", + "content": "You are an expert fitness coach.\nYou create personalized fitness plans based on user details.\nRules:\n- Use simple, practical, Indian diet\n- Focus on budget-friendly foods\n- Keep workout beginner-friendly unless specified\n- Give clear structured output\n- Avoid expensive or unrealistic suggestions\nAlways generate:\n1. Diet Plan\n2. Workout Plan\n3. Protein Sources\n4. Tips" + }, + { + "id": "187c2f4b-c23d-4545-abef-73dc897d6b7d", + "role": "user", + "content": "User input:\n{{input}}\nAnalyze the user carefully.\nAlso estimate daily protein requirement (grams).\nNow generate clean structured output:\nšŸ‹ļø GYM AI COACH PLAN\nšŸ‘¤ Profile Summary:\n- Goal:\n- Weight:\n- Diet Type:\nšŸ„— DIET PLAN:\nBreakfast:\nLunch:\nDinner:\nSnacks:\nšŸ‹ļø WORKOUT PLAN:\nDay 1:\nDay 2:\nDay 3:\nšŸ’Ŗ PROTEIN TARGET:\n- Daily protein needed:\nšŸ— PROTEIN SOURCES:\n-\n⚔ TIPS:\n-If user is vegetarian → avoid eggs/meat If budget is low → suggest cheap foods only" + } + ], + "memories": "[]", + "messages": "{{triggerNode_1.output.chatHistory}}", + "nodeName": "AI Coach Engine", + "attachments": "", + "credentials": "", + "generativeModelName": [ + { + "type": "generator/text", + "params": {}, + "configName": "configA", + "model_name": "gemini/gemini-2.5-flash", + "credentialId": "", + "provider_name": "gemini", + "credential_name": "gemini" + } + ] + } + }, + "type": "dynamicNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 130 + }, + "selected": false + }, + { + "id": "responseNode_triggerNode_1", + "data": { + "label": "Response", + "modes": {}, + "nodeId": "chatResponseNode", + "schema": {}, + "values": { + "id": "responseNode_triggerNode_1", + "content": "{{LLMNode_567.output.generatedResponse}}", + "nodeName": "Final Response", + "references": "", + "webhookUrl": "", + "webhookHeaders": "" + }, + "isResponseNode": true + }, + "type": "responseNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 260 + }, + "selected": false + } + ], + "edges": [ + { + "id": "triggerNode_1-LLMNode_567", + "type": "defaultEdge", + "source": "triggerNode_1", + "target": "LLMNode_567", + "sourceHandle": "bottom", + "targetHandle": "top" + }, + { + "id": "LLMNode_567-responseNode_triggerNode_1", + "type": "defaultEdge", + "source": "LLMNode_567", + "target": "responseNode_triggerNode_1", + "sourceHandle": "bottom", + "targetHandle": "top" + }, + { + "id": "response-responseNode_triggerNode_1", + "type": "responseEdge", + "source": "triggerNode_1", + "target": "responseNode_triggerNode_1", + "sourceHandle": "to-response", + "targetHandle": "from-trigger" + } + ] +} \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json b/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json index 284dcdb5..379eba80 100644 --- a/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json +++ b/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json @@ -1,6 +1,26 @@ { - "input": "Weight: 61kg, - Goal: Muscle Gain, - Budget: Low, Diet: - Vegetarian" + "LLMNode_567": [ + { + "name": "generativeModelName", + "label": "Generative Model Name", + "type": "model", + "modelType": "generator/text", + "mode": "chat", + "description": "Select the model to generate text based on the prompt.", + "required": true, + "defaultValue": [ + { + "configName": "configA", + "type": "generator/text", + "provider_name": "", + "credential_name": "", + "params": {} + } + ], + "typeOptions": { + "loadOptionsMethod": "listModels" + }, + "isPrivate": true + } + ] } \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/meta.json b/templates/gym-ai-coach-agent/flows/gym-coach/meta.json index 284dcdb5..83be5e63 100644 --- a/templates/gym-ai-coach-agent/flows/gym-coach/meta.json +++ b/templates/gym-ai-coach-agent/flows/gym-coach/meta.json @@ -1,6 +1,9 @@ { - "input": "Weight: 61kg, - Goal: Muscle Gain, - Budget: Low, Diet: - Vegetarian" + "name": "1 - Getting Started", + "description": "", + "tags": "", + "testInput": "", + "githubUrl": "", + "documentationUrl": "", + "deployUrl": "" } \ No newline at end of file From 6adda56090daaf5eadfb8f7cbb2263a7e05b140d Mon Sep 17 00:00:00 2001 From: harishdtu Date: Tue, 31 Mar 2026 00:49:23 +0530 Subject: [PATCH 5/8] Fix CodeRabbit issues: JSON, credentials, formatting --- templates/gym-ai-coach-agent/flows/gym-coach/config.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/config.json b/templates/gym-ai-coach-agent/flows/gym-coach/config.json index 2d1d5798..71269374 100644 --- a/templates/gym-ai-coach-agent/flows/gym-coach/config.json +++ b/templates/gym-ai-coach-agent/flows/gym-coach/config.json @@ -77,7 +77,7 @@ { "id": "187c2f4b-c23d-4545-abef-73dc897d6b7d", "role": "user", - "content": "User input:\n{{input}}\nAnalyze the user carefully.\nAlso estimate daily protein requirement (grams).\nNow generate clean structured output:\nšŸ‹ļø GYM AI COACH PLAN\nšŸ‘¤ Profile Summary:\n- Goal:\n- Weight:\n- Diet Type:\nšŸ„— DIET PLAN:\nBreakfast:\nLunch:\nDinner:\nSnacks:\nšŸ‹ļø WORKOUT PLAN:\nDay 1:\nDay 2:\nDay 3:\nšŸ’Ŗ PROTEIN TARGET:\n- Daily protein needed:\nšŸ— PROTEIN SOURCES:\n-\n⚔ TIPS:\n-If user is vegetarian → avoid eggs/meat If budget is low → suggest cheap foods only" + "content": "User input:\n{{input}}\nAnalyze the user carefully.\nAlso estimate daily protein requirement (grams).\nNow generate clean structured output:\nšŸ‹ļø GYM AI COACH PLAN\nšŸ‘¤ Profile Summary:\n- Goal:\n- Weight:\n- Diet Type:\nšŸ„— DIET PLAN:\nBreakfast:\nLunch:\nDinner:\nSnacks:\nšŸ‹ļø WORKOUT PLAN:\nDay 1:\nDay 2:\nDay 3:\nšŸ’Ŗ PROTEIN TARGET:\n- Daily protein needed:\nšŸ— PROTEIN SOURCES:\n-\n⚔ TIPS:\n- If user is vegetarian → avoid eggs/meat\n- If budget is low → suggest cheap foods only" } ], "memories": "[]", @@ -91,7 +91,7 @@ "params": {}, "configName": "configA", "model_name": "gemini/gemini-2.5-flash", - "credentialId": "", + "credentialId": "32c708a5-14de-41ff-91fe-04edcd840f2a", "provider_name": "gemini", "credential_name": "gemini" } @@ -135,7 +135,7 @@ "x": 0, "y": 260 }, - "selected": false + "selected": true } ], "edges": [ From ce68787987bca19643e66d39f1dc5e61f0b87f6c Mon Sep 17 00:00:00 2001 From: harishdtu Date: Tue, 31 Mar 2026 21:28:33 +0530 Subject: [PATCH 6/8] Fix structure: flatten template as per standard --- .vscode/settings.json | 5 + templates/gym-ai-coach-agent/README.md | 75 ++++++-- templates/gym-ai-coach-agent/config.json | 175 +++++++++++++++++- .../flows/gym-coach/README.md | 62 ------- .../flows/gym-coach/config.json | 167 ----------------- .../{flows/gym-coach => }/inputs.json | 0 .../{flows/gym-coach => }/meta.json | 0 7 files changed, 226 insertions(+), 258 deletions(-) create mode 100644 .vscode/settings.json delete mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/README.md delete mode 100644 templates/gym-ai-coach-agent/flows/gym-coach/config.json rename templates/gym-ai-coach-agent/{flows/gym-coach => }/inputs.json (100%) rename templates/gym-ai-coach-agent/{flows/gym-coach => }/meta.json (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..b242572e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] +} \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/README.md b/templates/gym-ai-coach-agent/README.md index 4a55bf40..7f125401 100644 --- a/templates/gym-ai-coach-agent/README.md +++ b/templates/gym-ai-coach-agent/README.md @@ -1,25 +1,62 @@ -# Gym AI Coach Agent +# 1 - Getting Started -## Problem -Many beginners struggle to create proper diet and workout plans. +## About This Flow -## Solution -An AI-powered agent that generates personalized fitness plans. +This flow automates a workflow with **3 nodes** working together to process and transform data. The flow is designed to streamline operations and can be easily integrated into your existing systems. -## Features -- Budget-friendly Indian diet -- Workout planning -- Protein estimation -- Structured output +## Flow Components -## Setup -1. Add your API key (Gemini or other) -2. Import flow into Lamatic -3. Run the agent +This workflow includes the following node types: +- Chat Trigger +- Generate Text +- Chat Response -## Usage -Enter: -Weight, Goal, Budget, Diet +## Configuration Requirements -Get: -Complete fitness plan instantly \ No newline at end of file +This flow requires configuration for **1 node(s)** with private inputs (credentials, API keys, model selections, etc.). All required configurations are documented in the `inputs.json` file. + +## Files Included + +- **config.json** - Complete flow structure with nodes and connections +- **inputs.json** - Private inputs requiring configuration +- **meta.json** - Flow metadata and information + +## Next Steps + +### Share with the Community + +Help grow the Lamatic ecosystem by contributing this flow to AgentKit! + +1. **Fork the Repository** + - Visit [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) + - Fork the repository to your GitHub account + +2. **Prepare Your Submission** + - Create a new folder with a descriptive name for your flow + - Add all files from this package (`config.json`, `inputs.json`, `meta.json`) + - Write a comprehensive README.md that includes: + - Clear description of what the flow does + - Use cases and benefits + - Step-by-step setup instructions + - Required credentials and how to obtain them + - Example inputs and expected outputs + - Screenshots or diagrams (optional but recommended) + +3. **Open a Pull Request** + - Commit your changes with a descriptive message + - Push to your forked repository + - Open a PR to [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) + - Add a clear description of your flow in the PR + +Your contribution will help others build amazing automations! šŸš€ + +## Support + +For questions or issues with this flow: +- Review the node documentation for specific integrations +- Check the Lamatic documentation at docs.lamatic.ai +- Contact support for assistance + +--- +*Exported from Lamatic Flow Editor* +*Generated on 3/31/2026* diff --git a/templates/gym-ai-coach-agent/config.json b/templates/gym-ai-coach-agent/config.json index 816359c9..71269374 100644 --- a/templates/gym-ai-coach-agent/config.json +++ b/templates/gym-ai-coach-agent/config.json @@ -1,12 +1,167 @@ { - "name": "Gym AI Coach Agent", - "description": "AI agent that generates personalized diet and workout plans based on user input.", - "tags": ["fitness", "ai", "health", "agent"], - "author": "Harish Vasamsetti", - "steps": [ - "Provide user input (weight, goal, budget, diet)", - "Generate fitness plan", - "Return structured output" -], - "env": [] + "nodes": [ + { + "id": "triggerNode_1", + "data": { + "modes": {}, + "nodeId": "chatTriggerNode", + "schema": {}, + "values": { + "id": "triggerNode_1", + "chat": "", + "domains": [ + "*" + ], + "nodeName": "User Input", + "chatConfig": { + "botName": "Lamatic Bot", + "imageUrl": "https://img.freepik.com/premium-vector/robot-android-super-hero_111928-7.jpg?w=826", + "position": "right", + "policyUrl": "https://lamatic.ai/docs/legal/privacy-policy", + "displayMode": "popup", + "placeholder": "Compose your message", + "suggestions": [ + "What is lamatic?", + "How do I add data to my chatbot?", + "Explain this product to me" + ], + "errorMessage": "Oops! Something went wrong. Please try again.", + "hideBranding": false, + "primaryColor": "#ef4444", + "headerBgColor": "#000000", + "greetingMessage": "Hi, I am Lamatic Bot. Ask me anything about Lamatic", + "headerTextColor": "#FFFFFF", + "showEmojiButton": true, + "suggestionBgColor": "#f1f5f9", + "userMessageBgColor": "#FEF2F2", + "agentMessageBgColor": "#f1f5f9", + "suggestionTextColor": "#334155", + "userMessageTextColor": "#d12323", + "agentMessageTextColor": "#334155" + } + }, + "trigger": true + }, + "type": "triggerNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 0 + }, + "selected": false + }, + { + "id": "LLMNode_567", + "data": { + "label": "dynamicNode node", + "modes": {}, + "nodeId": "LLMNode", + "schema": { + "_meta": "object", + "images": "array", + "tool_calls": "object", + "generatedResponse": "string" + }, + "values": { + "id": "LLMNode_567", + "tools": [], + "prompts": [ + { + "id": "187c2f4b-c23d-4545-abef-73dc897d6b7b", + "role": "system", + "content": "You are an expert fitness coach.\nYou create personalized fitness plans based on user details.\nRules:\n- Use simple, practical, Indian diet\n- Focus on budget-friendly foods\n- Keep workout beginner-friendly unless specified\n- Give clear structured output\n- Avoid expensive or unrealistic suggestions\nAlways generate:\n1. Diet Plan\n2. Workout Plan\n3. Protein Sources\n4. Tips" + }, + { + "id": "187c2f4b-c23d-4545-abef-73dc897d6b7d", + "role": "user", + "content": "User input:\n{{input}}\nAnalyze the user carefully.\nAlso estimate daily protein requirement (grams).\nNow generate clean structured output:\nšŸ‹ļø GYM AI COACH PLAN\nšŸ‘¤ Profile Summary:\n- Goal:\n- Weight:\n- Diet Type:\nšŸ„— DIET PLAN:\nBreakfast:\nLunch:\nDinner:\nSnacks:\nšŸ‹ļø WORKOUT PLAN:\nDay 1:\nDay 2:\nDay 3:\nšŸ’Ŗ PROTEIN TARGET:\n- Daily protein needed:\nšŸ— PROTEIN SOURCES:\n-\n⚔ TIPS:\n- If user is vegetarian → avoid eggs/meat\n- If budget is low → suggest cheap foods only" + } + ], + "memories": "[]", + "messages": "{{triggerNode_1.output.chatHistory}}", + "nodeName": "AI Coach Engine", + "attachments": "", + "credentials": "", + "generativeModelName": [ + { + "type": "generator/text", + "params": {}, + "configName": "configA", + "model_name": "gemini/gemini-2.5-flash", + "credentialId": "32c708a5-14de-41ff-91fe-04edcd840f2a", + "provider_name": "gemini", + "credential_name": "gemini" + } + ] + } + }, + "type": "dynamicNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 130 + }, + "selected": false + }, + { + "id": "responseNode_triggerNode_1", + "data": { + "label": "Response", + "modes": {}, + "nodeId": "chatResponseNode", + "schema": {}, + "values": { + "id": "responseNode_triggerNode_1", + "content": "{{LLMNode_567.output.generatedResponse}}", + "nodeName": "Final Response", + "references": "", + "webhookUrl": "", + "webhookHeaders": "" + }, + "isResponseNode": true + }, + "type": "responseNode", + "measured": { + "width": 216, + "height": 93 + }, + "position": { + "x": 0, + "y": 260 + }, + "selected": true + } + ], + "edges": [ + { + "id": "triggerNode_1-LLMNode_567", + "type": "defaultEdge", + "source": "triggerNode_1", + "target": "LLMNode_567", + "sourceHandle": "bottom", + "targetHandle": "top" + }, + { + "id": "LLMNode_567-responseNode_triggerNode_1", + "type": "defaultEdge", + "source": "LLMNode_567", + "target": "responseNode_triggerNode_1", + "sourceHandle": "bottom", + "targetHandle": "top" + }, + { + "id": "response-responseNode_triggerNode_1", + "type": "responseEdge", + "source": "triggerNode_1", + "target": "responseNode_triggerNode_1", + "sourceHandle": "to-response", + "targetHandle": "from-trigger" + } + ] } \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/README.md b/templates/gym-ai-coach-agent/flows/gym-coach/README.md deleted file mode 100644 index 7f125401..00000000 --- a/templates/gym-ai-coach-agent/flows/gym-coach/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# 1 - Getting Started - -## About This Flow - -This flow automates a workflow with **3 nodes** working together to process and transform data. The flow is designed to streamline operations and can be easily integrated into your existing systems. - -## Flow Components - -This workflow includes the following node types: -- Chat Trigger -- Generate Text -- Chat Response - -## Configuration Requirements - -This flow requires configuration for **1 node(s)** with private inputs (credentials, API keys, model selections, etc.). All required configurations are documented in the `inputs.json` file. - -## Files Included - -- **config.json** - Complete flow structure with nodes and connections -- **inputs.json** - Private inputs requiring configuration -- **meta.json** - Flow metadata and information - -## Next Steps - -### Share with the Community - -Help grow the Lamatic ecosystem by contributing this flow to AgentKit! - -1. **Fork the Repository** - - Visit [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) - - Fork the repository to your GitHub account - -2. **Prepare Your Submission** - - Create a new folder with a descriptive name for your flow - - Add all files from this package (`config.json`, `inputs.json`, `meta.json`) - - Write a comprehensive README.md that includes: - - Clear description of what the flow does - - Use cases and benefits - - Step-by-step setup instructions - - Required credentials and how to obtain them - - Example inputs and expected outputs - - Screenshots or diagrams (optional but recommended) - -3. **Open a Pull Request** - - Commit your changes with a descriptive message - - Push to your forked repository - - Open a PR to [github.com/Lamatic/AgentKit](https://github.com/Lamatic/AgentKit) - - Add a clear description of your flow in the PR - -Your contribution will help others build amazing automations! šŸš€ - -## Support - -For questions or issues with this flow: -- Review the node documentation for specific integrations -- Check the Lamatic documentation at docs.lamatic.ai -- Contact support for assistance - ---- -*Exported from Lamatic Flow Editor* -*Generated on 3/31/2026* diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/config.json b/templates/gym-ai-coach-agent/flows/gym-coach/config.json deleted file mode 100644 index 71269374..00000000 --- a/templates/gym-ai-coach-agent/flows/gym-coach/config.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "nodes": [ - { - "id": "triggerNode_1", - "data": { - "modes": {}, - "nodeId": "chatTriggerNode", - "schema": {}, - "values": { - "id": "triggerNode_1", - "chat": "", - "domains": [ - "*" - ], - "nodeName": "User Input", - "chatConfig": { - "botName": "Lamatic Bot", - "imageUrl": "https://img.freepik.com/premium-vector/robot-android-super-hero_111928-7.jpg?w=826", - "position": "right", - "policyUrl": "https://lamatic.ai/docs/legal/privacy-policy", - "displayMode": "popup", - "placeholder": "Compose your message", - "suggestions": [ - "What is lamatic?", - "How do I add data to my chatbot?", - "Explain this product to me" - ], - "errorMessage": "Oops! Something went wrong. Please try again.", - "hideBranding": false, - "primaryColor": "#ef4444", - "headerBgColor": "#000000", - "greetingMessage": "Hi, I am Lamatic Bot. Ask me anything about Lamatic", - "headerTextColor": "#FFFFFF", - "showEmojiButton": true, - "suggestionBgColor": "#f1f5f9", - "userMessageBgColor": "#FEF2F2", - "agentMessageBgColor": "#f1f5f9", - "suggestionTextColor": "#334155", - "userMessageTextColor": "#d12323", - "agentMessageTextColor": "#334155" - } - }, - "trigger": true - }, - "type": "triggerNode", - "measured": { - "width": 216, - "height": 93 - }, - "position": { - "x": 0, - "y": 0 - }, - "selected": false - }, - { - "id": "LLMNode_567", - "data": { - "label": "dynamicNode node", - "modes": {}, - "nodeId": "LLMNode", - "schema": { - "_meta": "object", - "images": "array", - "tool_calls": "object", - "generatedResponse": "string" - }, - "values": { - "id": "LLMNode_567", - "tools": [], - "prompts": [ - { - "id": "187c2f4b-c23d-4545-abef-73dc897d6b7b", - "role": "system", - "content": "You are an expert fitness coach.\nYou create personalized fitness plans based on user details.\nRules:\n- Use simple, practical, Indian diet\n- Focus on budget-friendly foods\n- Keep workout beginner-friendly unless specified\n- Give clear structured output\n- Avoid expensive or unrealistic suggestions\nAlways generate:\n1. Diet Plan\n2. Workout Plan\n3. Protein Sources\n4. Tips" - }, - { - "id": "187c2f4b-c23d-4545-abef-73dc897d6b7d", - "role": "user", - "content": "User input:\n{{input}}\nAnalyze the user carefully.\nAlso estimate daily protein requirement (grams).\nNow generate clean structured output:\nšŸ‹ļø GYM AI COACH PLAN\nšŸ‘¤ Profile Summary:\n- Goal:\n- Weight:\n- Diet Type:\nšŸ„— DIET PLAN:\nBreakfast:\nLunch:\nDinner:\nSnacks:\nšŸ‹ļø WORKOUT PLAN:\nDay 1:\nDay 2:\nDay 3:\nšŸ’Ŗ PROTEIN TARGET:\n- Daily protein needed:\nšŸ— PROTEIN SOURCES:\n-\n⚔ TIPS:\n- If user is vegetarian → avoid eggs/meat\n- If budget is low → suggest cheap foods only" - } - ], - "memories": "[]", - "messages": "{{triggerNode_1.output.chatHistory}}", - "nodeName": "AI Coach Engine", - "attachments": "", - "credentials": "", - "generativeModelName": [ - { - "type": "generator/text", - "params": {}, - "configName": "configA", - "model_name": "gemini/gemini-2.5-flash", - "credentialId": "32c708a5-14de-41ff-91fe-04edcd840f2a", - "provider_name": "gemini", - "credential_name": "gemini" - } - ] - } - }, - "type": "dynamicNode", - "measured": { - "width": 216, - "height": 93 - }, - "position": { - "x": 0, - "y": 130 - }, - "selected": false - }, - { - "id": "responseNode_triggerNode_1", - "data": { - "label": "Response", - "modes": {}, - "nodeId": "chatResponseNode", - "schema": {}, - "values": { - "id": "responseNode_triggerNode_1", - "content": "{{LLMNode_567.output.generatedResponse}}", - "nodeName": "Final Response", - "references": "", - "webhookUrl": "", - "webhookHeaders": "" - }, - "isResponseNode": true - }, - "type": "responseNode", - "measured": { - "width": 216, - "height": 93 - }, - "position": { - "x": 0, - "y": 260 - }, - "selected": true - } - ], - "edges": [ - { - "id": "triggerNode_1-LLMNode_567", - "type": "defaultEdge", - "source": "triggerNode_1", - "target": "LLMNode_567", - "sourceHandle": "bottom", - "targetHandle": "top" - }, - { - "id": "LLMNode_567-responseNode_triggerNode_1", - "type": "defaultEdge", - "source": "LLMNode_567", - "target": "responseNode_triggerNode_1", - "sourceHandle": "bottom", - "targetHandle": "top" - }, - { - "id": "response-responseNode_triggerNode_1", - "type": "responseEdge", - "source": "triggerNode_1", - "target": "responseNode_triggerNode_1", - "sourceHandle": "to-response", - "targetHandle": "from-trigger" - } - ] -} \ No newline at end of file diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/inputs.json b/templates/gym-ai-coach-agent/inputs.json similarity index 100% rename from templates/gym-ai-coach-agent/flows/gym-coach/inputs.json rename to templates/gym-ai-coach-agent/inputs.json diff --git a/templates/gym-ai-coach-agent/flows/gym-coach/meta.json b/templates/gym-ai-coach-agent/meta.json similarity index 100% rename from templates/gym-ai-coach-agent/flows/gym-coach/meta.json rename to templates/gym-ai-coach-agent/meta.json From 742a5cee0af24c3dc365b64f444e462a9ea9dcf5 Mon Sep 17 00:00:00 2001 From: Harish Vasamsetti <110912391+harishdtu@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:39:36 +0530 Subject: [PATCH 7/8] Add link to gym AI coach agent README Deploy on Lamatic --- templates/gym-ai-coach-agent/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/gym-ai-coach-agent/README.md b/templates/gym-ai-coach-agent/README.md index 7f125401..f40b5780 100644 --- a/templates/gym-ai-coach-agent/README.md +++ b/templates/gym-ai-coach-agent/README.md @@ -1,3 +1,5 @@ +https://harishsorganization135-gymaicoachagent262.lamatic.dev + # 1 - Getting Started ## About This Flow From 72fc08e320f2045a960b7170b16671c1593fb1be Mon Sep 17 00:00:00 2001 From: Harish Vasamsetti <110912391+harishdtu@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:47:28 +0530 Subject: [PATCH 8/8] Update README.md --- templates/gym-ai-coach-agent/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gym-ai-coach-agent/README.md b/templates/gym-ai-coach-agent/README.md index f40b5780..276e8b91 100644 --- a/templates/gym-ai-coach-agent/README.md +++ b/templates/gym-ai-coach-agent/README.md @@ -1,4 +1,4 @@ -https://harishsorganization135-gymaicoachagent262.lamatic.dev +https://studio.lamatic.ai/HarishsOrganization135/project/GymAiCoachAgent262/flow/bdbf6a03-6419-4eec-befd-0266b5436b7a/edit # 1 - Getting Started