Skip to content

Commit e77fbcb

Browse files
committed
Restructure examples docs: move to top-level with templates/apps sections
1 parent c7dcb66 commit e77fbcb

File tree

11 files changed

+100
-14
lines changed

11 files changed

+100
-14
lines changed
File renamed without changes.

docs/docs.json

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"pages": [
100100
"customize/agent/basics",
101101
"customize/agent/supported-models",
102+
"customize/agent/prompting-guide",
102103
"customize/agent/output-format",
103104
"customize/agent/all-parameters"
104105
]
@@ -126,20 +127,6 @@
126127
"customize/tools/response"
127128
]
128129
},
129-
{
130-
"group": "Examples",
131-
"icon": "folder-open",
132-
"pages": [
133-
"customize/examples/fast-agent",
134-
"customize/examples/follow-up-tasks",
135-
"customize/examples/parallel-browser",
136-
"customize/examples/playwright-integration",
137-
"customize/examples/sensitive-data",
138-
"customize/examples/secure",
139-
"customize/examples/more-examples",
140-
"customize/examples/prompting-guide"
141-
]
142-
},
143130
{
144131
"group": "Integration",
145132
"icon": "plug",
@@ -150,6 +137,32 @@
150137
}
151138
]
152139
},
140+
{
141+
"group": "Examples",
142+
"pages": [
143+
{
144+
"group": "Templates",
145+
"icon": "folder",
146+
"pages": [
147+
"examples/templates/fast-agent",
148+
"examples/templates/follow-up-tasks",
149+
"examples/templates/parallel-browser",
150+
"examples/templates/playwright-integration",
151+
"examples/templates/sensitive-data",
152+
"examples/templates/secure",
153+
"examples/templates/more-examples"
154+
]
155+
},
156+
{
157+
"group": "Apps",
158+
"icon": "box-open",
159+
"pages": [
160+
"examples/apps/ad-use",
161+
"examples/apps/vibetest-use"
162+
]
163+
}
164+
]
165+
},
153166
{
154167
"group": "Development",
155168
"pages": [

docs/examples/apps/ad-use.mdx

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: "Ad Generator (Ad-Use)"
3+
description: "Generate Instagram ads from landing pages using browser agents and Google's Nano Banana 🍌."
4+
icon: "image"
5+
mode: "wide"
6+
---
7+
8+
<Note>
9+
This demo requires browser-use v0.7.6+.
10+
</Note>
11+
12+
## Features
13+
14+
1. Agent visits your target website
15+
2. Captures brand name, tagline, and key selling points
16+
3. Takes a clean screenshot for design reference
17+
4. Creates a scroll-stopping Instagram ad with 🍌
18+
19+
## Setup
20+
21+
Make sure the newest version of browser-use is installed (with screenshot functionality):
22+
```bash
23+
pip install -U browser-use
24+
```
25+
26+
Export your Gemini API key, get it from: [Google AI Studio](https://makersuite.google.com/app/apikey)
27+
```
28+
export GOOGLE_API_KEY='your-google-api-key-here'
29+
```
30+
31+
## Normal Usage
32+
33+
```bash
34+
# Basic - Generate ad from any website
35+
python ad_generator.py https://www.apple.com/iphone-16-pro/
36+
37+
# Debug Mode - See the browser in action
38+
python ad_generator.py https://www.apple.com/iphone-16-pro/ --debug
39+
```
40+
41+
## Programmatic Usage
42+
```python
43+
import asyncio
44+
from ad_generator import create_ad_from_landing_page
45+
46+
async def main():
47+
results = await create_ad_from_landing_page(
48+
url="https://your-landing-page.com",
49+
debug=False
50+
)
51+
print(f"Generated ads: {results}")
52+
53+
asyncio.run(main())
54+
```
55+
56+
## Output
57+
58+
Generated ads are saved in the `output/` directory with:
59+
- **PNG image files** (ad_style_timestamp.png) - Actual generated ads from Gemini 2.5 Flash Image
60+
- **Prompt files** (ad_style_timestamp_prompt.txt) - The prompts used for generation
61+
- **Landing page screenshots** for reference
62+
63+
## Source Code
64+
65+
Full implementation: [https://github.com/browser-use/browser-use/tree/main/examples/apps/ad-use](https://github.com/browser-use/browser-use/tree/main/examples/apps/ad-use)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "QA-Testing (Vibetest-Use)"
3+
description: "WIP"
4+
icon: "vial"
5+
mode: "wide"
6+
---
7+
8+
WIP
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)