🔅1 Line of Code
You thought we were joking? No really just 1* line of code
<OnairosButton
className=""
AppName="YourAppName"
onResolved={handleComplete}
requestData={{
personality_traits: {
name: "Personality Analysis",
description: "Deep analysis of your Personality for fashion recommendations",
reward: "10% discount from next basket"
},
sentiment_analysis: {
name: "Interest Analysis",
description: "Understanding your interests and preferences for fashion recommendations",
reward: "1 free recommended item"
}
}}
debug={true} // Enable for development
testMode={true} // Enable for testing
auto={true} // 🚀 MAGIC: Auto-fetch data without managing API call manually
/>Request Data Object
Setup the Onairos Connection Object
That is all for the setup and users you can now recieve user data in the OnComplete function
Last updated
