Skip to content

Commit 41b9466

Browse files
committed
docs: openclaw docs fix
1 parent 78dc1b4 commit 41b9466

1 file changed

Lines changed: 10 additions & 91 deletions

File tree

sources/platform/integrations/ai/openclaw.md

Lines changed: 10 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ The `apify` tool must be listed in `tools.alsoAllow` in your config, or you can
9595

9696
### Verify the setup
9797

98-
Check your configuration and test the connection:
98+
Check your configuration:
9999

100100
```bash
101101
openclaw apify status
102-
openclaw apify test
103102
```
104103

105104
## How the Apify tool works
@@ -124,99 +123,19 @@ discover (search) -> discover (schema) -> start -> collect
124123

125124
Most Actors accept arrays in their input (for example, `startUrls`, `queries`, `usernames`). Always batch multiple targets into a single run - one run with 5 URLs is cheaper and faster than 5 separate runs.
126125

127-
## Examples
126+
## What you can do
128127

129-
### Search Google and collect results
128+
Once the plugin is set up, your OpenClaw agents can:
130129

131-
This example walks through the full discover, start, and collect workflow to scrape Google Search results.
132-
133-
First, search for a suitable Actor:
134-
135-
```javascript
136-
const search = await apify({
137-
action: "discover",
138-
query: "google search scraper",
139-
});
140-
```
141-
142-
Get the Actor's input schema to understand what parameters it accepts:
143-
144-
```javascript
145-
const schema = await apify({
146-
action: "discover",
147-
actorId: "apify~google-search-scraper",
148-
});
149-
```
150-
151-
Start the Actor with your search queries:
152-
153-
```javascript
154-
const started = await apify({
155-
action: "start",
156-
actorId: "apify~google-search-scraper",
157-
input: { queries: ["web scraping tools", "data extraction API"], maxPagesPerQuery: 1 },
158-
label: "google-search",
159-
});
160-
```
161-
162-
Collect the results when the run completes:
163-
164-
```javascript
165-
const results = await apify({
166-
action: "collect",
167-
runs: started.runs,
168-
});
169-
// results.completed contains the scraped data
170-
```
171-
172-
### Analyze Instagram profiles
173-
174-
Use batching to scrape multiple profiles in a single run:
175-
176-
```javascript
177-
const started = await apify({
178-
action: "start",
179-
actorId: "apify~instagram-profile-scraper",
180-
input: { usernames: ["natgeo", "nasa", "spacex"] },
181-
label: "instagram-profiles",
182-
});
183-
184-
const results = await apify({
185-
action: "collect",
186-
runs: started.runs,
187-
});
188-
```
189-
190-
### Multi-source research
191-
192-
Start multiple Actors in parallel for broader research, then collect all results together:
193-
194-
```javascript
195-
// Start Google Search and TikTok scrapers
196-
const googleRun = await apify({
197-
action: "start",
198-
actorId: "apify~google-search-scraper",
199-
input: { queries: ["AI trends 2026"], maxPagesPerQuery: 1 },
200-
label: "google",
201-
});
202-
203-
const tiktokRun = await apify({
204-
action: "start",
205-
actorId: "clockworks~tiktok-scraper",
206-
input: { searchQueries: ["AI trends"], resultsPerPage: 20 },
207-
label: "tiktok",
208-
});
209-
210-
// Collect results from both runs
211-
const results = await apify({
212-
action: "collect",
213-
runs: [...googleRun.runs, ...tiktokRun.runs],
214-
});
215-
```
130+
- **Search for scrapers** - Ask your agent to find an Actor for any platform (for example, "find me an Instagram scraper") and it discovers the right one from the [Apify Store](https://apify.com/store).
131+
- **Scrape any website** - Your agent can extract data from Google Search, Instagram, TikTok, YouTube, Google Maps, e-commerce sites, and more.
132+
- **Batch multiple targets** - Scrape several URLs, profiles, or search queries in a single Actor run. One run with 5 targets is cheaper and faster than 5 separate runs.
133+
- **Run multiple Actors in parallel** - Start scrapers for different platforms at the same time and collect all results together.
134+
- **Delegate to sub-agents** - For complex research tasks, your agent can delegate scraping work to a sub-agent, keeping the parent agent's context focused on higher-level reasoning.
216135

217136
:::note Actor runs may take some time
218137

219-
Actor execution time varies depending on the task complexity. The `collect` action polls for completion and returns results when the runs finish. Check Actor run status in [Apify Console](https://console.apify.com/) if a run takes longer than expected.
138+
Actor execution time varies depending on the task complexity. Check Actor run status in [Apify Console](https://console.apify.com/) if a run takes longer than expected.
220139

221140
:::
222141

@@ -233,7 +152,7 @@ Actor execution time varies depending on the task complexity. The `collect` acti
233152

234153
### Authentication errors
235154

236-
- _Check your API token_ - Verify your Apify API token is correct by running `openclaw apify test`. You can find your token in the **API & Integrations** section of [Apify Console](https://console.apify.com/settings/integrations).
155+
- _Check your API token_ - Verify your Apify API token is correct by running `openclaw apify status`. You can find your token in the **API & Integrations** section of [Apify Console](https://console.apify.com/settings/integrations).
237156
- _Environment variable_ - If you prefer not to store the key in config, set the `APIFY_API_KEY` environment variable instead.
238157

239158
### Tool not available to agents

0 commit comments

Comments
 (0)