<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj" -->

---
title: Building Multi-Agent AI Systems with LangGraph: A...
description: A walkthrough of building a router-based multi-agent AI system using LangGraph, illustrated through a fitness and nutrition coach example. The design splits...
canonical: https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Building Multi-Agent AI Systems with LangGraph: A Fitness & Nutrition Coach Example | daily.dev
og:description: A walkthrough of building a router-based multi-agent AI system using LangGraph, illustrated through a fitness and nutrition coach example. The design splits...
og:url: https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj
og:image: https://api.daily.dev/og/posts/eapbkvKlJ.png
og:image:alt: Building Multi-Agent AI Systems with LangGraph: A Fitness & Nutrition Coach Example
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building Multi-Agent AI Systems with LangGraph: A Fitness & Nutrition Coach Example

**[Medium](https://daily.dev/sources/medium_js)** · 12 min read · 1 upvotes · 0 comments

## Summary

A walkthrough of building a router-based multi-agent AI system using LangGraph, illustrated through a fitness and nutrition coach example. The design splits work between a Workout Advisor and Nutrition Advisor, coordinated by a deterministic keyword-based router and a human-in-the-loop checkpoint node that pauses after every agent turn. A shared state object (messages plus last_active_agent) preserves context across turns, letting a constraint like 'vegetarian' raised late in a conversation correctly influence a different specialist agent's response. The agents run on Groq's infrastructure using the open-source openai/gpt-oss-120b model with temperature=0 for deterministic outputs, using LangGraph's interrupt() and Command(resume=...) primitives for pausing and resuming execution. The pattern is presented as generalizable to any domain needing multiple specialists, shared context, and human oversight checkpoints.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://monowar-mukul.medium.com/building-a-multi-agent-fitness-nutrition-coach-with-langgraph-and-groq-49445e03608f>

## Questions this post answers

### How do you keep context like a dietary restriction persistent across different agents in a LangGraph multi-agent system?

Use a single shared state object with a messages field and a last_active_agent field rather than scoping memory to each agent separately. Every node reads and writes the same accumulated messages list, so a constraint like 'vegetarian' mentioned in one turn is still visible when a different specialist agent generates a later reply, without re-explaining it to the model.

_Developers wiring up multi-agent memory patterns compare state-sharing approaches like this one on daily.dev._

### How do you add human oversight to a LangGraph agent workflow so it doesn't run fully autonomously?

Insert a dedicated human node that calls interrupt() after every agent turn, pausing graph execution and returning control to whoever is running it; Command(resume=...) then injects the human's response back into the same node to continue. This lets a person approve, clarify, or inject safety-relevant constraints like an injury or allergy before the next answer generates.

_Engineers designing safer agent pipelines follow patterns like interrupt-based checkpoints on daily.dev._

### Should routing between specialist agents in a multi-agent system be handled by an LLM or by deterministic logic?

Deterministic keyword-based logic is preferable for routing between specialist agents because it makes behavior predictable and easy to test, since the same input always produces the same hop. In a fitness coach example, messages with words like 'gym' or 'cardio' route to a workout specialist while 'diet' or 'protein' route to a nutrition specialist, with ambiguous messages falling back to the last active agent.

_Teams weighing router design choices for agent orchestration track approaches like this on daily.dev._

## Similar posts on daily.dev

- [How to Develop AI Agents Using LangGraph: A Practical Guide](https://daily.dev/posts/how-to-develop-ai-agents-using-langgraph-a-practical-guide-gbublyg7z) · freeCodeCamp · 3 upvotes · 0 comments
- [How I Built an Agentic AI Research Assistant Using LangGraph and Large Language Models](https://daily.dev/posts/how-i-built-an-agentic-ai-research-assistant-using-langgraph-and-large-language-models-dg5wempfs) · Medium · 0 upvotes · 0 comments
- [Building a LangGraph Agent from Scratch](https://daily.dev/posts/building-a-langgraph-agent-from-scratch-iwouhkssg) · Towards Data Science · 1 upvotes · 0 comments
- [Building a Tool-Calling AI Agent with LangChain, LangGraph, Groq and LangSmith](https://daily.dev/posts/building-a-tool-calling-ai-agent-with-langchain-langgraph-groq-and-langsmith-ulgchhdc9) · Medium · 0 upvotes · 0 comments
- [Building a Durable Multi-Agent System with LangGraph and LangSmith](https://daily.dev/posts/building-a-durable-multi-agent-system-with-langgraph-and-langsmith-xnqib6ft0) · Daily Dose of Data Science \| Avi Chawla \| Substack · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#langgraph](https://daily.dev/tags/langgraph)

[View this post on daily.dev](https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Building Multi-Agent AI Systems with LangGraph: A Fitness \u0026 Nutrition Coach Example","url":"https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj"},"datePublished":"2026-09-08T13:59:19.466Z","dateModified":"2026-09-13T19:47:42.739Z","description":"A walkthrough of building a router-based multi-agent AI system using LangGraph, illustrated through a fitness and nutrition coach example. The design splits...","image":"https://media.daily.dev/image/fetch/s--s20oxU7_--/f_auto,pg_1,q_auto/https://miro.medium.com/v2/da:true/resize:fit:1200/1%2A1UcBigIliUJLfmqdKSP4zQ.gif?_a=BAMAMiZY0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--s20oxU7_--/f_auto,pg_1,q_auto/https://miro.medium.com/v2/da:true/resize:fit:1200/1%2A1UcBigIliUJLfmqdKSP4zQ.gif?_a=BAMAMiZY0","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,langgraph","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Building Multi-Agent AI Systems with LangGraph: A Fitness \u0026 Nutrition Coach Example"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/building-multi-agent-ai-systems-with-langgraph-a-fitness-nutrition-coach-example-eapbkvklj#faq","mainEntity":[{"@type":"Question","name":"How do you keep context like a dietary restriction persistent across different agents in a LangGraph multi-agent system?","acceptedAnswer":{"@type":"Answer","text":"Use a single shared state object with a messages field and a last_active_agent field rather than scoping memory to each agent separately. Every node reads and writes the same accumulated messages list, so a constraint like 'vegetarian' mentioned in one turn is still visible when a different specialist agent generates a later reply, without re-explaining it to the model. Developers wiring up multi-agent memory patterns compare state-sharing approaches like this one on daily.dev."}},{"@type":"Question","name":"How do you add human oversight to a LangGraph agent workflow so it doesn't run fully autonomously?","acceptedAnswer":{"@type":"Answer","text":"Insert a dedicated human node that calls interrupt() after every agent turn, pausing graph execution and returning control to whoever is running it; Command(resume=...) then injects the human's response back into the same node to continue. This lets a person approve, clarify, or inject safety-relevant constraints like an injury or allergy before the next answer generates. Engineers designing safer agent pipelines follow patterns like interrupt-based checkpoints on daily.dev."}},{"@type":"Question","name":"Should routing between specialist agents in a multi-agent system be handled by an LLM or by deterministic logic?","acceptedAnswer":{"@type":"Answer","text":"Deterministic keyword-based logic is preferable for routing between specialist agents because it makes behavior predictable and easy to test, since the same input always produces the same hop. In a fitness coach example, messages with words like 'gym' or 'cardio' route to a workout specialist while 'diet' or 'protein' route to a nutrition specialist, with ambiguous messages falling back to the last active agent. Teams weighing router design choices for agent orchestration track approaches like this on daily.dev."}}]}
```

