Then copy your API Key directly from the input and
set the BROWSERBASE_API_KEY and Project ID as BROWSERBASE_PROJECT_ID environment variables.
2
Install the Browserbase SDK
Copy
Ask AI
pip install browserbase 'crewai[tools]'
3
Import and configure BrowserbaseLoadTool
Copy
Ask AI
from crewai_tools import BrowserbaseLoadToolfrom crewai import Agent# See https://github.com/joaomdmoura/crewAI-examples/blob/main/instagram_post/tools/search_tools.pyfrom tools.search_tools import SearchToolsbrowserbase_tool = BrowserbaseLoadTool()# Extract the text from the sitetext = browserbase_tool.run()print(text)# Use the BrowserbaseLoadTool for travel planningagent = Agent( role='Local Expert at this city', goal='Provide the BEST insights about the selected city', backstory="""A knowledgeable local guide with extensive information about the city, it's attractions and customs""", tools=[ SearchTools.search_internet, browserbase_tool, ], verbose=True)
Assistant
Responses are generated using AI and may contain mistakes.