Tools
Apify
ApifyTools enable an Assistant to access the Apify API.
Example
The following assistant will use Apify to crawl the webpage: ”https://docs.phidata.com/introduction” and summarize it.
cookbook/tools/apify_tools.py
from phi.assistant import Assistant
from phi.tools.apify import ApifyTools
assistant = Assistant(tools=[ApifyTools()], show_tool_calls=True)
assistant.print_response("Tell me about https://docs.phidata.com/introduction", markdown=True)
Toolkit Params
api_key
str
API key for authentication purposes.
website_content_crawler
bool
default: "True"Enables the functionality to crawl a website using website-content-crawler actor.
web_scraper
bool
default: "False"Enables the functionality to crawl a website using web_scraper actor.
Toolkit Functions
website_content_crawler
Crawls a website using Apify’s website-content-crawler actor.
web_scrapper
Scrapes a website using Apify’s web-scraper actor.