Reddit Search Agent
Enable your AI Agents to search Reddit with Browserbase’s managed headless browsers.
1. Install AgentKit
Within an existing project, install AgentKit, Browserbase, and Playwright core:
Don’t have an existing project? Create a new one with your preferred package manager before continuing.
2. Setup an AgentKit Network with an Agent
Create an Agent and its associated Network, for example a Reddit Search Agent:
3. Create a Browserbase Tool
Configure the Browserbase SDK and create a tool that can search Reddit:
Configure your BROWSERBASE_API_KEY
and BROWSERBASE_PROJECT_ID
in the .env
file. You can find your API key and project ID from the Browserbase dashboard.
We recommend building tools using Browserbase with Inngest’s step.run()
function. This ensures that the tool will only run once across multiple runs.
More information about using step.run()
can be found in the Multi steps tools page.
4. Put it all together
Complete example of a Reddit search agent using Browserbase:
For a complete working example, check out the Reddit Search Agent using Browserbase example.
Next Steps
With this foundation, you can build more advanced web browsing agents:
- Create agents that can perform complex workflows across multiple websites
- Build data collection agents that gather information from various sources
- Develop automation agents that interact with web applications
- Create testing agents that validate web application functionality
For more examples and documentation, visit:
Was this page helpful?