Learn about the custom tools used by the Newsletter AI Agent
BaseTool
class and Apify’s actor system. Each tool is designed to interact with a specific Apify actor to gather information from a particular source, such as Google Search, Reddit, Twitter, YouTube, or Google News.
src/tools/base.py
that handles the interaction with Apify actors:
apify/google-search-scraper
actor to search the web for relevant informationapidojo/twitter-scraper-lite
actor to collect tweets related to the topicaymorato/super-fast-google-news-scraper-pay-per-result
actor to gather the latest news articlesBaseTool
_run
method to call the appropriate Apify actor.env
file: