Skip to content

AgentWorkforce/relay-poc-health-dashboard

Repository files navigation

Health Dashboard — Multi-Framework Relay PoC

A personal health dashboard built 5 ways, all sharing the same communication backbone: the Relay Communicate SDK. Three tracker agents (fitness, nutrition, sleep) post simulated daily data to a shared channel. An InsightAgent reads the channel, correlates metrics, and produces a weekly health report.

Architecture

┌──────────┐  ┌──────────────┐  ┌────────────┐
│ Fitness  │  │  Nutrition   │  │   Sleep    │
│ Tracker  │  │   Tracker    │  │  Tracker   │
└────┬─────┘  └──────┬───────┘  └─────┬──────┘
     │               │                │
     └───────┬───────┴────────┬───────┘
             ▼                ▼
       ┌──────────────────────────┐
       │   #health-data channel   │
       └────────────┬─────────────┘
                    ▼
            ┌───────────────┐
            │ Insight Agent │──▶ Weekly Report
            └───────────────┘

Implementations

Directory Framework Lines
crewai/ CrewAI ~250
openai_agents/ OpenAI Agents SDK ~250
langgraph/ LangGraph ~260
google_adk/ Google ADK ~250
vanilla/ Pure Python ~230

Prerequisites

pip install agent-relay-sdk[communicate]

Each framework has its own dependencies:

# CrewAI
pip install crewai crewai-tools

# OpenAI Agents SDK
pip install openai-agents

# LangGraph
pip install langgraph langchain-core

# Google ADK
pip install google-adk

# Vanilla — no extra deps

Running

Set environment variables (or use built-in defaults for demo mode):

export RELAY_WORKSPACE=health-dashboard
export RELAY_API_KEY=demo-key

Run any implementation:

python crewai/main.py
python openai_agents/main.py
python langgraph/main.py
python google_adk/main.py
python vanilla/main.py

Each script simulates 7 days of health tracking and prints a weekly insight report at the end.

How It Works

  1. Day simulation — Each tracker agent generates realistic daily metrics (steps, calories, sleep hours, etc.) and posts them as JSON to the #health-data channel via Relay.
  2. Channel as shared memory — All agents read from the same channel, making the architecture framework-agnostic.
  3. Weekly correlation — The InsightAgent reads all 7 days of data, cross-references fitness/nutrition/sleep patterns, and generates actionable health insights.
  4. Relay as the backbone — Every message flows through Relaycast, demonstrating real multi-agent communication regardless of which orchestration framework wraps the logic.

About

Relay Communicate SDK proof-of-concept: health-dashboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors