Skip to content

AI017-Personalize chatbot with user profile context#270

Merged
TienNguyen3711 merged 1 commit into
masterfrom
chatbot-profile-context-api
May 13, 2026
Merged

AI017-Personalize chatbot with user profile context#270
TienNguyen3711 merged 1 commit into
masterfrom
chatbot-profile-context-api

Conversation

@Liam301020
Copy link
Copy Markdown
Collaborator

Summary

  • Routes chatbot requests through the app API so logged-in user profile and preference data can be used before calling the AI backend.
  • Adds a chatbot greeting endpoint that can greet the user by saved profile name.
  • Injects dietary requirements, allergies/intolerances, preferred cuisines, disliked ingredients, health conditions, spice level, and cooking methods into nutrition-related chatbot prompts.
  • Keeps non-nutrition prompts on the existing domain guard/fallback path.
  • Adds safety-note prompting for allergy, medical condition, and health-risk related responses.
  • Expands the AI chatbot request limit so profile-enriched prompts are accepted.

Testing

  • node --check services/chatbotService.js
  • node --check controller/chatbotController.js
  • node --check services/index.js
  • python -m py_compile nutrihelp_ai/routers/chatbot_api.py
  • Manual chatbot checks for nutrition, allergy/gluten, meal recommendation, and non-nutrition fallback prompts.

@Liam301020 Liam301020 force-pushed the chatbot-profile-context-api branch from f0f6ae0 to c85e413 Compare May 12, 2026 15:35
Copy link
Copy Markdown
Collaborator

@TienNguyen3711 TienNguyen3711 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked on my device. It works well. Approved

@TienNguyen3711 TienNguyen3711 merged commit d6e6b07 into master May 13, 2026
9 checks passed
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