Skip to content

Commit 6280ce0

Browse files
Tom GotsmanTom Gotsman
authored andcommitted
urls
1 parent b7f01f9 commit 6280ce0

File tree

2 files changed

+37
-0
lines changed
  • docs/ai_builder
  • pcweb/components/docpage/sidebar/sidebar_items

2 files changed

+37
-0
lines changed

docs/ai_builder/urls.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# URLs
2+
3+
When you **paste a URL directly into the AI Builder chat**, the AI will automatically decide how to handle it depending on your prompt.
4+
5+
You can use URLs to **copy a page’s design** or **extract its content**, without needing to set up any integration.
6+
7+
## How It Works
8+
9+
* If you say something like **“copy the design”** or **“use this layout”**, the AI will:
10+
11+
* Take a **screenshot** of the page.
12+
* Use it as a **visual reference** to recreate the UI in your app.
13+
* Allow you to **customize** the generated design afterward.
14+
15+
* 🪄 If you say something like **“get the content”**, **“scrape this page”**, or just paste the URL without mentioning design, the AI will:
16+
17+
* **Scrape the content** of the page (text, links, images, metadata).
18+
* Return it as structured data that can be used in components, workflows, or AI actions.
19+
20+
## Example Prompts
21+
22+
* “Copy the design of this page.”
23+
* “Scrape the content from this blog post.”
24+
* “Get all the product details from this URL.”
25+
* (Paste the URL alone) → AI will assume content scraping by default.
26+
27+
## Notes
28+
29+
* **Public pages only:** The AI can only process URLs that are publicly accessible.
30+
* **Editable:** Both the generated design and scraped content can be modified after processing.
31+

pcweb/components/docpage/sidebar/sidebar_items/ai.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ def get_ai_builder_integrations():
113113
ai_builder.webhooks,
114114
]
115115
),
116+
create_item(
117+
"URLs",
118+
children=[
119+
ai_builder.urls,
120+
]
121+
),
116122
create_item(
117123
"Databases",
118124
children=[

0 commit comments

Comments
 (0)