Passiolife / Passio-Nutrition-AI-RN-UI-Module-Distribution

RN Nutrition AI UI/UX
MIT License
2 stars 0 forks source link

Question about configuring Passio Nutrition AI for personalized user contexts #32

Open wrsanchezz opened 12 hours ago

wrsanchezz commented 12 hours ago

Hello, I have a question about using Passio Nutrition AI. Is there any way to configure the app to take into account specific user contexts, such as dietary preferences or health conditions?

For instance, is it possible to set up the app so that it tailors its recommendations and information for someone with diabetes or someone following a vegan lifestyle? This would help the app deliver more personalized guidance and information based on the unique needs of each user.

Thank you for your time and assistance!

drstarson commented 12 hours ago

@ipsita0709 please address this one

ipsita0709 commented 2 hours ago

Hello @wrsanchezz! Thank you for reaching out with your question.

Passio's Nutrition AI has begun incorporating a feature to personalize guidance based on specific user contexts, such as dietary preferences or health conditions. Currently, we offer an experimental API for configuring a user profile, which allows some tailoring of recommendations, especially through our Nutrition Advisor feature.

Here’s how it works: You can input details about the user (like dietary preferences or health conditions) in various formats (JSON or free text) and send this data to our API. This generates an encoded profile that can be used to customize responses. Once initialized, this user profile information is automatically applied to requests made through our SDK. If you're using our REST API, you simply need to add this encoded value as a header in your requests, and any compatible endpoints will adjust their responses based on the user’s profile.

We are continually expanding this capability, and over time, the user profile feature will integrate with more tools across our platform for a broader range of personalized recommendations.

For more details, please refer to our REST API documentation here: https://api.passiolife.com/v2/products/docs#tag/N-API-Tools/paths/~1v2~1products~1napi~1tools~1generateIntelligenceProfileHeader/post

wrsanchezz commented 1 hour ago

Thanks @ipsita0709! for example, after initializing my PassioSDK.configure in react native app, in NutritionAdvisor is where I should configure this JSON conditions header?

import { NutritionAdvisor } from '@passiolife/nutritionai-react-native-sdk-v3' const conversation = await NutritionAdvisor.initConversation()

ipsita0709 commented 1 hour ago

@basukiatpassio @chiragramimi Could you please take a look at @wrsanchezz's question when you get a chance?

basukiatpassio commented 29 minutes ago

Hi @wrsanchezz , the user profile is not exposed in the RN sdk yet. This feature is currently under development. We will notify once the RN sdk fully supports the feature.