Skip to content

[WIP] Connect frontend, backend, and Python AI engine for HIRA app - #3

Closed
joshiyaa-dev with Copilot wants to merge 1 commit into
mainfrom
copilot/connect-frontend-backend-ai-again
Closed

joshiyaa-dev with Copilot wants to merge 1 commit into
mainfrom
copilot/connect-frontend-backend-ai-again

Conversation

Copilot AI commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

PHASE 4 — CONNECT EVERYTHING (CRITICAL)

Right now:

UI exists
AI exists
BUT → ❌ Not fully connected

👉 This is your #1 priority

🔥 PROMPT FOR YOUR AGENT

Paste this:

Connect frontend, backend, and Python AI engine for HIRA app.

Requirements:

  1. Create API endpoints in Node.js:

    • POST /generate-plan
    • POST /meal-suggestion
    • POST /adjust-plan
  2. Connect Node.js backend to Python FastAPI service.

  3. From frontend:

    • Dashboard fetches daily plan
    • Workout screen loads exercises dynamically
    • Food screen loads meal suggestions
    • Daily Check-in updates intensity via API
  4. Use Axios for API calls.

  5. Ensure error handling:

    • fallback plan if API fails
    • loading states
    • retry mechanism
  6. Maintain clean architecture:
    frontend → backend → python AI

Output:

  • API routes
  • service integration
  • frontend API hooks
    🧠 PHASE 5 — REAL AI BEHAVIOR (MOST IMPORTANT)

Right now your AI is:
👉 basic / synthetic / rule-based

You need:
👉 REAL adaptive behavior

🔥 PROMPT FOR AGENT
Improve HIRA AI decision engine.

Enhancements:

  1. Combine rule-based + scoring system:

    • sleep, stress, soreness → readiness score
    • adjust workout intensity dynamically
  2. Add progressive overload logic:

    • increase sets/reps if user consistent
    • reduce if missed workouts
  3. Add protein deficiency detection:

    • suggest specific Indian foods
  4. Add workout variation:

    • avoid repeating same exercises daily
  5. Store user history:

    • past workouts
    • past meals
    • trends
  6. Output must include:

    • intensity
    • workout plan
    • explanation ("why this plan")

Make system deterministic and safe (no extreme suggestions).


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants