Firecrawl is a tool that allows you to search the web using Firecrawl.

Create a file firecrawl_agent.py with the following code:

firecrawl_agent.py
from phi.agent import Agent
from phi.tools.firecrawl import FirecrawlTools

agent = Agent(tools=[FirecrawlTools(scrape=False, crawl=True)], show_tool_calls=True, markdown=True)
agent.print_response("Summarize this https://finance.yahoo.com/")

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.

2

Install libraries

pip install firecrawl-py
3

Set environment variables

export FIRECRAWL_API_KEY=****
4

Run the agent

python firecrawl_agent.py