VOOZH about

URL: https://apify.com/sasi_gandikota/smart-product-scout

⇱ Smart Product Scout Β· Apify


πŸ‘ Smart Product Scout avatar

Smart Product Scout

Under maintenance

Pricing

Pay per event

Go to Apify Store

Smart Product Scout

Under maintenance

Tell this Actor all your requirements, and we’ll find the perfect product for you from thousands of options across the market quickly and effortlessly

Pricing

Pay per event

Rating

0.0

(0)

Developer

πŸ‘ Sasi Gandikota

Sasi Gandikota

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

3

Monthly active users

9 months ago

Last modified

Share

Python LangGraph template

A template for LangGraph projects in Python for building AI agents with Apify Actors. The template provides a basic structure and an example LangGraph ReAct agent that calls Actors as tools in a workflow.

How it works

A ReAct agent is created and given a set of tools to accomplish a task. The agent receives a query from the user and decides which tools to use and in what order to complete the task. In this case, the agent is provided with an Instagram Scraper Actor to scrape Instagram profile posts and a calculator tool to sum a list of numbers to calculate the total number of likes and comments. The agent is configured to also output structured data, which is pushed to the dataset, while textual output is stored in the key-value store as a response.txt file.

How to use

Add or modify the agent tools in the src/tools.py file, and make sure to include new tools in the agent tools list in src/main.py. Additionally, you can update the agent system prompt in src/main.py. For more information, refer to the LangGraph ReAct agent documentation and the LangChain tools documentation.

For a more advanced multi-agent example, see the Finance Monitoring Agent actor or visit the LangGraph documentation.

Pay Per Event

This template uses the Pay Per Event (PPE) monetization model, which provides flexible pricing based on defined events.

To charge users, define events in JSON format and save them on the Apify platform. Here is an example schema with the task-completed event:

[
{
"task-completed":{
"eventTitle":"Task completed",
"eventDescription":"Cost per query answered.",
"eventPriceUsd":0.1
}
}
]

In the Actor, trigger the event with:

await Actor.charge(event_name='task-completed')

This approach allows you to programmatically charge users directly from your Actor, covering the costs of execution and related services, such as LLM input/output tokens.

To set up the PPE model for this Actor:

  • Configure the OpenAI API key environment variable: provide your OpenAI API key to the OPENAI_API_KEY in the Actor's Environment variables.
  • Configure Pay Per Event: establish the Pay Per Event pricing schema in the Actor's Monetization settings. First, set the Pricing model to Pay per event and add the schema. An example schema can be found in .actor/pay_per_event.json.

Included features

  • Apify SDK for Python - a toolkit for building Apify Actors and scrapers in Python
  • Input schema - define and easily validate a schema for your Actor's input
  • Dataset - store structured data where each object stored has the same attributes
  • Key-value store - store any kind of data, such as JSON documents, images, or text files

Resources

Getting started

For complete information see this article. In short, you will:

  1. Build the Actor
  2. Run the Actor

Pull the Actor for local development

If you would like to develop locally, you can pull the existing Actor from Apify console using Apify CLI:

  1. Install apify-cli

    Using Homebrew

    $brew install apify-cli

    Using NPM

    $npm-ginstall apify-cli
  2. Pull the Actor by its unique <ActorId>, which is one of the following:

    • unique name of the Actor to pull (e.g. "apify/hello-world")
    • or ID of the Actor to pull (e.g. "E2jjCZBezvAZnX8Rb")

    You can find both by clicking on the Actor title at the top of the page, which will open a modal containing both Actor unique name and Actor ID.

    This command will copy the Actor into the current directory on your local machine.

    $apify pull <ActorId>

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Amazon Product Reviews Actor

getdataforme/amazon-product-reviews-actor

Every product owner need to know, how are the product reviewed by the customer. If you have a products listed on Amazon and want to fetch all the reviews on your product then this is the right tool for you to scrape all the reviews on your listed product.

18

Target Product Reviews Scraper

eunit/target-reviews-scraper

Easily scrape product reviews and details from Target.com with our reliable scraper. Perfect for market research and analysis. Need custom features? Raise a support ticket, and we’ll tailor it to your needs. Streamline your data collection today!

πŸ‘ User avatar

Emmanuel Uchenna

16

B2B Signal Scout

amcllc/b2b-signal-scout

AI Powered Business Leads Scout

DineFilter

ohlava/dinefilter

Say what you want to eat and where, we'll find it

πŸ‘ User avatar

OndΕ™ej Hlava

66

Instagram Video Scraper & Downloader

alpha-scraper/instagram-video-scraper-downloader

All in one πŸš€ β€” Instagram Video Scraper & Downloader -- you’ll get all the data from Instagram videos Works as both a downloader ⬇️ and a scraper Just run it and check the output to see what it delivers Hopefully, you’ll find something useful, powerful, and valuable

9

AI Travel Agent

danrizea/ai-travel-agent

This Apify actor helps you quickly find accommodation listings from top travel websites like Booking.com and Airbnb. Get the best options that match your preferencesβ€”without the hassle of manually searching multiple sites.

Advanced Amazon Product Scraper

scrapeai/advanced-amazon-product-scraper

The scraper collects detailed product information including product title, price, rating, number of reviews, product URL, image URL, brand, availability status, and other key details from the product page, and exports the data in structured JSON format.

Shopify Product Search

pintostudio/shopify-product-search

This actor retrieves targeted product data based on your input, including details such as product titles, descriptions, and metadata, making it a perfect tool for focused product research and analysis.

42

Jungle Scout Scraper

radeance/junglescout-scraper

Extract key Amazon product data from Jungle Scout, including price, ratings, reviews, sellers, images, categories, and variants. Supports ASINs and product URLs from over 10+ Amazon marketplaces. Export results in JSON, CSV, Excel, and more.

Related articles

How to build an e-commerce scraper
Read more
How to scrape Best Buy product data
Read more
How to scrape Amazon product data using Python (+ no-code)
Read more