Automatically searches for the highest-rated supplement products on Amazon/iHerb and generates affiliate link suggestions whenever a new supplement is added to the database.
This skill automates the process of finding optimal product listings and generating affiliate links when supplements are added to the app database.
This skill should be activated whenever:
MockSupplementRepositoryFrom the supplement being added, identify:
Perform targeted searches using the search_web tool:
Query: "{supplement_name} {form} supplement ADHD {dosage}"
Example: "Omega-3 EPA DHA supplement ADHD 1000mg"
Look for:
Query: "{supplement_name} {form} highest rated iHerb"
Look for:
amazon.com/dp/{ASIN}B001U4OYGYiherb.com/{product-id}81332Use the AffiliateService class to generate tagged links:
// For Amazon
final affiliateService = AffiliateService();
// Single region
final usLink = affiliateService.getTaggedAffiliateLink(
supplementId: 'B001U4OYGY', // ASIN from Step 3
region: UserRegion.us,
);
// All regions
final allLinks = affiliateService.getAllRegionLinks('B001U4OYGY');
Result format:
US: https://www.amazon.com/dp/B001U4OYGY?tag=adhdsupplements-20
UK: https://www.amazon.co.uk/dp/B001U4OYGY?tag=adhdsupplements-21
EU: https://www.amazon.de/dp/B001U4OYGY?tag=adhdsupplements-22