Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wrsanchezz opened this issue Nov 14, 2024 · 5 comments

Comments

@wrsanchezz
Copy link

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
Copy link

@ipsita0709 please address this one

@ipsita0709
Copy link

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
Copy link
Author

wrsanchezz commented Nov 14, 2024

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
Copy link

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

@basukiatpassio
Copy link

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.

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

No branches or pull requests

4 participants