Skip to content

Conversation

@jay-sahnan
Copy link
Contributor

No description provided.

## QUICKSTART
1) python -m venv venv
2) source venv/bin/activate # On Windows: venv\Scripts\activate
3) pip install stagehand python-dotenv pydantic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we pushing uv?

## HELPFUL RESOURCES
📚 Stagehand Docs: https://docs.stagehand.dev/stagehand
🎮 Browserbase: https://www.browserbase.com
💡 Templates: https://github.com/browserbase/stagehand/tree/main/examples
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this links to nothing, check other templates too

## COMMON PITFALLS
- "ModuleNotFoundError": ensure all dependencies are installed via pip
- Missing credentials: verify .env contains BROWSERBASE_PROJECT_ID, BROWSERBASE_API_KEY, and GOOGLE_API_KEY
- Google API access: ensure you have access to Google's gemini-2.5-computer-use-preview-10-2025 model
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link to their dashboard here.


# Business search variables
business_name = "Jalebi Street"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra \n, we should use prettier or something for standardized templates


try:
# Use async context manager for automatic resource management
async with Stagehand(config) as stagehand:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code is a little weird, maybe just me but can have some others check this out

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm ignore this

@@ -0,0 +1,52 @@
# Stagehand + Browserbase: Business Lookup with Agent

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comments as the one in the python one,

also just realized the python readme links to the TS repo which is not ideal either

verbose: 1,
model: "openai/gpt-4.1",
browserbaseSessionCreateParams: {
projectId: process.env.BROWSERBASE_PROJECT_ID!,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to specify projectid if it's in our env vars already.

we can have this here but we should be consistent and also pass in the api key


console.log("Business Information:");
console.log(JSON.stringify(businessInfo, null, 2));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants