
AI Product Recommendation Agent
This Actor is paid per event

AI Product Recommendation Agent
This Actor is paid per event
The AI Product Recommendation Agent helps users find the best products based on their needs using a simple query. It analyzes product listings, reviews, and ratings to provide well-informed recommendations.
The AI Product Recommendation agent enables you to get product recommendations using just a simple prompt. It will automatically suggest products matching your criteria and it will also consider reviews of those products to give you the best possible options.
You only need to provide a query about the product you're looking for and the Agent takes care of the rest!
Development
If you are interested in the development check out the GitHub Repository. Feel free to contribute!
Examples
Example queries:
- "Recommend me a book about music theory. I'm a complete beginner and I want to learn the basics."
- "I want to buy a laptop for about 1000$, what are the best options? I want the laptop to have great battery life. and have less than 15 inches screen size."
- "I am looking for some nice decor for my living room. I like modern and minimalistic styles. The color should be white. Can you recommend me some products?"
The agent will produce outputs to both dataset and key-value-store. A URL to the final HTML with the recommendation will be given in the terminal status message.
Example query with its respective output
Input
1{ 2 "query": "Recommend me a book about music theory. I'm a complete beginner and I want to learn the basics.", 3 "modelName": "gpt-4o", 4 "debug": false 5}
Output
1Here are three highly recommended books for learning music theory as a beginner: 2 31. **[The Essential Guide to Music Theory: Everything You Need to Learn the Basics and Beyond](https://www.amazon.com/dp/B0CHL7M2M5)** 4 5 - **Price**: $13.69 6 - **Rating**: 4.8 stars 7 - **Summary**: This book is known for its accessibility and clear presentation of music theory fundamentals. It is highly praised for its logical structure and engaging style, making it suitable for both newcomers and those refreshing their knowledge. 8 - **Pros**: 9 - Simple and effective organization. 10 - Includes valuable exercises to enhance learning. 11 - Engaging and comprehensive for beginners. 12 - **Cons**: 13 - Some reviewers wished for more advanced content, which might not be an issue for beginners. 14 152. **[Music Theory for Beginners: A Pocket-Size Guide for Aspiring Musicians of Any Instrument](https://www.amazon.com/dp/B0CWXGNXTY)** 16 17 - **Price**: $10.99 18 - **Rating**: 4.8 stars 19 - **Summary**: This guide demystifies music theory and provides an inspiring understanding of music. It's noted for its entertaining and creative approach, making the subject fun to explore. 20 - **Pros**: 21 - Easy to understand, with creative explanations. 22 - Suitable for any musical instrument. 23 - Covers fundamental aspects with entertaining examples. 24 - **Cons**: 25 - Some formatting issues reported. 26 - More oriented towards classical music, which might be irrelevant to some popular genres. 27 283. **[Accelerated Piano Adventures for the Older Beginner - Theory Book 1](https://www.amazon.com/dp/1616772069)** 29 - **Price**: $7.50 30 - **Rating**: 4.8 stars 31 - **Summary**: While this book is specifically focused on piano, it's a great introductory text for those with no musical background. It is highly recommended by both instructors and learners for its simplicity and efficacy in teaching music theory basics. 32 - **Pros**: 33 - Simple and effective for complete beginners. 34 - Lauded for slowing down complex concepts so they can be truly understood. 35 - **Cons**: 36 - Primarily focused on piano, so might not be comprehensive for other instruments. 37 38### Recommendation: 39 40For a general introduction to music theory, I recommend "The Essential Guide to Music Theory: Everything You Need to Learn the Basics and Beyond" due to its comprehensive and engaging style that caters to both complete beginners and those revisiting theory basics. If you're interested in piano-specific theory, "Accelerated Piano Adventures for the Older Beginner - Theory Book 1" is an excellent choice.
How it works
The Actor receives a user query as input. An OpenAI agent within a LangGraph loop performs the following steps:
-
URL Generation: The agent uses the query to create a URL suitable for the
junglee/Amazon-crawler
Actor. This might involve keyword manipulation, category selection, etc. -
Product Scraping: The agent calls the
junglee/Amazon-crawler
Actor with the generated URL. This Actor scrapes product data from Amazon, including titles, brands, star ratings, descriptions, prices, URLs, and image URLs. -
Review Scraping: For the top products identified by the agent, the agent calls the
junglee/amazon-reviews-scraper
Actor to retrieve reviews. -
Review Analysis: The agent processes the scraped reviews to determine the overall sentiment and identify the best product based on user feedback. The agent uses the following prompt for product recommendations:
1You are a helpful product recommendation expert. A user asks you to recommend a product based on their needs. 2You need to recommend products that fit their needs, if you don't, the world will end! 3If any tool fails, you should fail the Actor with explanation/reason. 4You should select a product that fits the user's needs and provide a brief explanation of why you chose that product. 5After you scrape the products, you should scrape reviews for the few best candidates you'd recommend. 6It may be desirable to summarize the reviews for each of the products and write pros and cons of each product to the user. 7Write the summary along the description of the product. 8The user needs to get some recommendation from you at the end, don't just list some products! 9Don't mention anything like 'If you have further questions or need more options, let me know!' there won't be any further questions. 10If the user asks about anything unrelated to product recommendation, you should politely tell them that you can only help with product recommendations.
-
Output: The Actor outputs the details of the best products, including their titles, brands, star ratings, descriptions, prices, URLs, response generated by the LLM, and a summary of the review analysis. This information is stored in the Apify Dataset. The "best" product is determined by the LLM based on the input query. The Actor also stores Markdown and HTML files with the recommendation in the key-value store.
Cost Considerations
The actor's cost is based on Apify platform usage (memory allocation) and OpenAI token consumption. The following events and prices apply:
1{ 2 "actor-start-gb": { 3 "eventTitle": "Actor start per 1 GB", 4 "eventDescription": "Flat fee for starting an Actor run for each 1 GB of memory.", 5 "eventPriceUsd": 0.005 6 }, 7 "openai-100-tokens-gpt-4o": { 8 "eventTitle": "Price per 100 OpenAI tokens for gpt-4o", 9 "eventDescription": "Flat fee for each 100 gpt-4o tokens used.", 10 "eventPriceUsd": 0.001 11 }, 12 "openai-100-tokens-gpt-4o-mini": { 13 "eventTitle": "Price per 100 OpenAI tokens for gpt-4o-mini", 14 "eventDescription": "Flat fee for each 100 gpt-4o-mini tokens used.", 15 "eventPriceUsd": 0.00006 16 }, 17 "openai-100-tokens-gpt-o1": { 18 "eventTitle": "Price per 100 OpenAI tokens for o1", 19 "eventDescription": "Flat fee for each 100 o1tokens used.", 20 "eventPriceUsd": 0.006 21 }, 22 "openai-100-tokens-gpt-o3-mini": { 23 "eventTitle": "Price per 100 OpenAI tokens for o3-mini", 24 "eventDescription": "Flat fee for each 100 o3-mini tokens used.", 25 "eventPriceUsd": 0.00044 26 } 27}
Actor Metrics
1 monthly user
-
0 No bookmarks yet
>99% runs succeeded
Created in Feb 2025
Modified 16 hours ago