> For the complete documentation index, see [llms.txt](https://docs.greatwave.ai/great-wave-ai-harness/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.greatwave.ai/great-wave-ai-harness/great-wave-ai-harness/agent-features/agent-modules/agent-modes/global-web-scraper.md). Agents can also search and read this documentation through its [MCP server](https://docs.greatwave.ai/great-wave-ai-harness/~gitbook/mcp).

# Global Web Scraper

Configure an agent to search, extract, or crawl public web content.

Use **Global Web Scraper** to gather public web content. Choose **Search** for broad research, **Extract** for one page, or **Crawl** for a website.

### Set up Global Web Scraper

1. Open the agent's **Instructions** module.
2. Select **Global Web Scraper** from **Agent Mode**.
3. Choose **Search**, **Extract**, or **Crawl**.
4. Choose **Predefined** or **User Query** as the input source.
5. Enter a search query or URL when using predefined input.
6. Select **Refresh Agent** and test the configuration.

{% hint style="info" %}
Global Web Scraper accesses public web content only. It cannot sign in to websites or access private content.
{% endhint %}

### Choose a scraping mode

| Mode        | Use it for                                | Input          |
| ----------- | ----------------------------------------- | -------------- |
| **Search**  | Finding information across the web.       | A search query |
| **Extract** | Reading one known webpage.                | A full URL     |
| **Crawl**   | Exploring several pages from one website. | A starting URL |

Use **Predefined** when every request should use the same query or URL. Use **User Query** when users should supply the query or URL.

### Configure crawls

For **Crawl**, use **Limit**, **Breadth**, and **Depth** to control scope. Start with conservative values, then increase them only when results are incomplete.

Add **Crawler Instructions** to describe the pages and topics to prioritise. For example: “Find product features, pricing, and case studies.”

### Format the response

Use **Final Response Instructions** to specify how gathered content should be filtered, summarised, or presented. Enable post-response synthesis when the response needs further processing.

### Detailed configuration reference

#### The Instructions Page Layout <a href="#the-instructions-page-layout" id="the-instructions-page-layout"></a>

The Web Scraper Agent is configured within the broader Instructions page, which has a two-column layout:

**Left Column (Configuration)**

* **Agent Mode Selector** - Choose "Global Web Scraper"
* **Web Scraper Configuration Panel** - Main settings for scraping behaviour
* **Final Response Instructions** - How results are processed and presented
* **Refresh Agent Button** - Apply your configuration changes

**Right Column (Testing)**

* **Chat Interface** - Test your agent with sample queries
* **Response Display** - See how the agent responds to inputs

#### Configuration Panel Structure <a href="#configuration-panel-structure" id="configuration-panel-structure"></a>

When Web Scraper mode is selected, you'll see:

1. **Header** - "Global Web Scraper Configuration"
2. **Description** - Explains what the tool does
3. **Mode Section** - Search/Extract/Crawl options
4. **Input Source Section** - Predefined/User Query options
5. **Input Field** - Where you enter search terms or URLs
6. **Advanced Settings** - Appears only for Crawl mode

***

### Feature-by-Feature Instructions <a href="#feature-by-feature-instructions" id="feature-by-feature-instructions"></a>

#### 1. Selecting the Agent Mode <a href="#id-1-selecting-the-agent-mode" id="id-1-selecting-the-agent-mode"></a>

**What it does:** Changes your agent from another mode, such as Context Only or Model Only, to Web Scraper mode.

**Where to find it:** Top of the left column, labelled "Agent Mode:"

**How to use:**

1. Click the **Agent Mode** button (shows current mode)
2. A dropdown menu will appear
3. Scroll through options and click **"Global Web Scraper"**
4. The page will update to show Web Scraper configuration options

**Expected result:** The Web Scraper configuration panel appears, and other agent settings may be hidden or disabled.

***

#### 2. Choosing the Scraping Mode <a href="#id-2-choosing-the-scraping-mode" id="id-2-choosing-the-scraping-mode"></a>

**What it does:** Determines how the agent will gather information from the web.

**Where to find it:** In the Web Scraper configuration panel, under "Mode"

**Available Options:**

**Search Mode**

**What it does:** Searches across the entire web for pages matching your query.

**When to use:**

* You need broad information about a topic
* You're looking for current news, trends, or general knowledge
* You want the agent to find relevant content automatically

**How to use:**

1. In the Mode section, click the radio button next to **"Search"**
2. An input field labelled **"Search Web"** will appear
3. Enter your search query (e.g., "latest AI developments", "climate change solutions")

***

**Extract Mode**

**What it does:** Reads and extracts content from a single specific webpage.

**When to use:**

* You know exactly which webpage has the information you need
* You want to analyse or summarize a particular article
* You need content from a specific URL

**How to use:**

1. In the Mode section, click the radio button next to **"Extract"**
2. An input field labelled **"Enter URL"** will appear
3. Paste or type the complete web address (e.g., `https://example.com/article`)

***

**Crawl Mode**

**What it does:** Systematically explores a website starting from one URL, following links to gather comprehensive information.

**When to use:**

* You need information from multiple pages of a website
* You want to explore a company's website thoroughly
* You're building a knowledge base about a specific domain

**How to use:**

1. In the Mode section, click the radio button next to **"Crawl"**
2. An input field labelled **"Enter URL"** will appear
3. Enter the starting website URL (e.g., `https://company.com`)
4. **Advanced crawling settings will appear below**

***

#### 3. Setting the Input Source <a href="#id-3-setting-the-input-source" id="id-3-setting-the-input-source"></a>

**What it does:** Controls where the agent gets its search queries or URLs from.

**Where to find it:** Next to the Mode section, under "Input Source"

**Predefined Option**

**What it does:** You set a fixed search query or URL that the agent always uses.

**When to use:**

* You want consistent, repeatable results
* You're setting up an agent for a specific purpose
* You know exactly what information you need

**How to use:**

1. Click the radio button next to **"Predefined"**
2. The input field becomes active (not greyed out)
3. Type your search query or URL directly

***

**User Query Option**

**What it does:** The agent uses whatever the end user asks for, making it dynamic.

**When to use:**

* You want users to provide their own search terms
* You need flexibility for different user needs
* You're creating a general-purpose web research assistant

**How to use:**

1. Click the radio button next to **"User Query"**
2. The input field becomes disabled (greyed out)
3. You'll see text: "Dynamic input from user query enabled"

***

#### 4. Entering Search Terms or URLs <a href="#id-4-entering-search-terms-or-urls" id="id-4-entering-search-terms-or-urls"></a>

**What it does:** Provides the specific query or address for the agent to work with.

**Where to find it:** Below the Mode and Input Source sections

**For Search Mode:**

* **Field label:** "Search Web"
* **Placeholder:** "e.g. Latest tech news..."
* **What to enter:** Keywords, phrases, or questions
* **Examples:**
  * `artificial intelligence trends 2024`
  * `best restaurants in Paris`
  * `how to start a small business`

**For Extract or Crawl Mode:**

* **Field label:** "Enter URL"
* **Placeholder:** "[https://example.com](https://example.com/)"
* **What to enter:** Complete web addresses starting with `https://` or `http://`
* **Examples:**
  * `https://www.wikipedia.org/wiki/Machine_Learning`
  * `https://blog.company.com/products`
  * `https://news.site.com/latest-articles`

**Important Notes:**

* URLs must be complete and accessible
* If using "User Query" input source, this field will be disabled
* The agent will attempt to access whatever URL you provide

***

#### 5. Advanced Crawling Settings (Crawl Mode Only) <a href="#id-5-advanced-crawling-settings-crawl-mode-only" id="id-5-advanced-crawling-settings-crawl-mode-only"></a>

**What it does:** Controls how thoroughly and efficiently the agent explores websites.

**Where to find it:** Appears automatically when you select Crawl mode, in a gray box below the main input

**Limit Setting**

**What it does:** Sets the maximum number of pages the agent will visit.

**How to set:**

1. Find the **Limit** dropdown (labelled "LIMIT")
2. Click to see options from 1 to 50
3. Select your desired maximum
4. Example: Choose "20" to visit at most 20 pages

**Recommendations:**

* **Quick scan:** 5-10 pages
* **Standard exploration:** 15-25 pages
* **Comprehensive research:** 30-50 pages

***

**Breadth Setting**

**What it does:** Controls how many links per page the agent follows.

**How to set:**

1. Find the **Breadth** dropdown (labelled "BREADTH")
2. Click to see options from 1 to 20
3. Select how many links to follow per page
4. Example: Choose "5" to follow 5 links from each page

**Recommendations:**

* **Focused crawling:** 1-3 links per page
* **Balanced exploration:** 5-10 links per page
* **Broad discovery:** 10-20 links per page

***

**Depth Setting**

**What it does:** Controls how many "clicks" deep from the starting page the agent goes.

**How to set:**

1. Find the **Depth** dropdown (labelled "DEPTH")
2. Click to see options: 1, 2, or 3
3. Select your desired depth level

**Understanding Depth:**

* **Depth 1:** Only the starting page
* **Depth 2:** Starting page + pages directly linked from it
* **Depth 3:** Starting page + linked pages + pages linked from those

**Recommendations:**

* **Single page analysis:** Depth 1
* **Website section exploration:** Depth 2
* **Comprehensive site coverage:** Depth 3

***

**Crawler Instructions**

**What it does:** Provides specific guidance to the agent about what to look for while crawling.

**How to use:**

1. Find the **Crawler Instructions** text box at the bottom of the advanced settings
2. Click inside the text box
3. Write instructions in plain English
4. Example instructions:
   * "Find pages about product features and pricing"
   * "Look for blog posts and case studies"
   * "Gather information about company history and leadership team"

**Tips for effective instructions:**

* Be specific about what content you want
* Mention types of pages (blog posts, product pages, about pages)
* Include keywords or topics of interest
* Keep instructions clear and concise

***

#### 6. Final Response Instructions <a href="#id-6-final-response-instructions" id="id-6-final-response-instructions"></a>

**What it does:** Controls how the agent processes and presents the information it gathers.

**Where to find it:** Below the Web Scraper configuration, in the "Final Response Instructions" section

**Response Type Options**

**Available options:**

* **Auto Fusion** - Agent automatically combines results intelligently
* **Custom Fusion** - You provide specific instructions for combining results
* **Raw** - Results are presented without additional processing

**How to choose:**

1. Find the **Response Type** dropdown
2. Select your preferred option
3. If choosing Custom Fusion, additional options appear

**Custom Fusion Settings**

**Use Input toggle:** Determines if user queries are considered when combining results

**Fusion Instructions:** Specific guidance for how to combine multiple pieces of information

***

**Post-Response Synthesis**

**What it does:** Allows additional processing of results after initial gathering.

**How to enable:**

1. Find the **Post-Response Synthesis** toggle
2. Switch it to "On"
3. A text box for **Synthesis Instructions** appears
4. Write instructions for how to process or summarize the results

***

### Common Workflows <a href="#common-workflows" id="common-workflows"></a>

#### Workflow 1: Research Assistant Setup <a href="#workflow-1-research-assistant-setup" id="workflow-1-research-assistant-setup"></a>

**Goal:** Create an agent that helps users research any topic

**Steps:**

1. Select **Web Scraper** as Agent Mode
2. Choose **Search** mode
3. Set Input Source to **User Query**
4. Leave input field empty (it will be grayed out)
5. Set Response Type to **Auto Fusion**
6. Enable Post-Response Synthesis if you want summarized results
7. Click **Refresh Agent**

**Result:** Users can now ask questions like "What are the latest developments in renewable energy?" and the agent will search the web for current information.

***

#### Workflow 2: Content Extraction Tool <a href="#workflow-2-content-extraction-tool" id="workflow-2-content-extraction-tool"></a>

**Goal:** Extract and analyze content from specific webpages

**Steps:**

1. Select **Web Scraper** as Agent Mode
2. Choose **Extract** mode
3. Set Input Source to **User Query**
4. Set Response Type to **Raw** or **Auto Fusion**
5. Optionally enable Post-Response Synthesis for summaries
6. Click **Refresh Agent**

**Result:** Users can provide URLs and ask the agent to "summarize this article" or "extract the key points from this page."

***

#### Workflow 3: Website Analysis <a href="#workflow-3-website-analysis" id="workflow-3-website-analysis"></a>

**Goal:** Thoroughly explore and understand a company's website

**Steps:**

1. Select **Web Scraper** as Agent Mode
2. Choose **Crawl** mode
3. Set Input Source to **Predefined**
4. Enter the company website URL (e.g., `https://company.com`)
5. Set Limit to 25, Breadth to 8, Depth to 2
6. In Crawler Instructions, write: "Find information about products, services, and company background"
7. Set Response Type to **Custom Fusion**
8. Enable Post-Response Synthesis
9. Click **Refresh Agent**

**Result:** The agent will systematically explore the website and provide a comprehensive overview of the company's offerings and information.

***

#### Workflow 4: News Monitoring <a href="#workflow-4-news-monitoring" id="workflow-4-news-monitoring"></a>

**Goal:** Stay updated on specific topics

**Steps:**

1. Select **Web Scraper** as Agent Mode
2. Choose **Search** mode
3. Set Input Source to **Predefined**
4. Enter your topic: "artificial intelligence breakthroughs"
5. Set Response Type to **Auto Fusion**
6. Enable Post-Response Synthesis with instructions to "summarize the most important recent developments"
7. Click **Refresh Agent**

**Result:** The agent will search for current information about AI breakthroughs and provide organized summaries.

***

### Error Handling & Troubleshooting <a href="#error-handling--troubleshooting" id="error-handling--troubleshooting"></a>

#### Issue: "No results found" or empty responses <a href="#issue-no-results-found-or-empty-responses" id="issue-no-results-found-or-empty-responses"></a>

**Cause:** The search query might be too specific, or the website might be inaccessible.

**Solutions:**

1. **For Search mode:** Try broader or different keywords
2. **For Extract/Crawl mode:** Verify the URL is correct and accessible
3. **Check your input:** Make sure you've entered a valid query or URL
4. **Try a different mode:** If Extract isn't working, try Search mode

***

#### Issue: Agent takes too long to respond <a href="#issue-agent-takes-too-long-to-respond" id="issue-agent-takes-too-long-to-respond"></a>

**Cause:** Crawling settings might be too aggressive (high Limit, Breadth, or Depth).

**Solutions:**

1. **Reduce Limit:** Lower the maximum number of pages
2. **Reduce Breadth:** Follow fewer links per page
3. **Reduce Depth:** Limit how deep the crawler goes
4. **Add specific instructions:** Guide the agent to focus on relevant content

***

#### Issue: Irrelevant or low-quality results <a href="#issue-irrelevant-or-low-quality-results" id="issue-irrelevant-or-low-quality-results"></a>

**Cause:** Search query might be too vague, or crawler instructions aren't specific enough.

**Solutions:**

1. **Refine search terms:** Use more specific keywords
2. **Improve crawler instructions:** Be more specific about what content you want
3. **Try different modes:** Search mode might work better than Crawl for some topics
4. **Use Custom Fusion:** Provide instructions for how to filter and organize results

***

#### Issue: "Access denied" or "Page not found" errors <a href="#issue-access-denied-or-page-not-found-errors" id="issue-access-denied-or-page-not-found-errors"></a>

**Cause:** The website might block automated access, or the URL might be incorrect.

**Solutions:**

1. **Verify URL:** Double-check that the web address is correct
2. **Try different pages:** Some websites block the homepage but allow subpages
3. **Use Search mode instead:** If Extract/Crawl fails, try searching for the content
4. **Check website permissions:** Some sites require login or have anti-bot measures

***

#### Issue: Agent returns too much information <a href="#issue-agent-returns-too-much-information" id="issue-agent-returns-too-much-information"></a>

**Cause:** Settings are too broad, gathering excessive content.

**Solutions:**

1. **Reduce crawling parameters:** Lower Limit, Breadth, and Depth
2. **Use synthesis instructions:** Tell the agent to summarize or filter results
3. **Enable Post-Response Synthesis:** Provide instructions to condense information
4. **Switch to Extract mode:** If you only need one specific page

***

### Tips & Best Practices <a href="#tips--best-practices" id="tips--best-practices"></a>

#### ✓ Best Practice 1: Start with Simple Settings <a href="#best-practice-1-start-with-simple-settings" id="best-practice-1-start-with-simple-settings"></a>

When setting up a new Web Scraper agent:

* Begin with Search mode for broad topics
* Use moderate crawling settings (Limit: 15, Breadth: 5, Depth: 2)
* Test with sample queries before deploying
* Adjust based on results and performance

***

#### ✓ Best Practice 2: Write Clear Instructions <a href="#best-practice-2-write-clear-instructions" id="best-practice-2-write-clear-instructions"></a>

Whether for crawling or response synthesis:

* Be specific about what you want
* Use plain English, not technical jargon
* Include examples when helpful
* Focus on the end result you want

**Good example:** "Summarize the main features and pricing tiers from product pages" **Poor example:** "Get info"

***

#### ✓ Best Practice 3: Choose the Right Mode for Your Task <a href="#best-practice-3-choose-the-right-mode-for-your-task" id="best-practice-3-choose-the-right-mode-for-your-task"></a>

| Task Type                 | Recommended Mode | Why                           |
| ------------------------- | ---------------- | ----------------------------- |
| General research          | Search           | Broad coverage across the web |
| Specific webpage analysis | Extract          | Focused on one page           |
| Website exploration       | Crawl            | Comprehensive site coverage   |
| Current events/news       | Search           | Finds latest information      |
| Documentation gathering   | Crawl            | Systematic collection         |

***

#### ✓ Best Practice 4: Balance Speed and Completeness <a href="#best-practice-4-balance-speed-and-completeness" id="best-practice-4-balance-speed-and-completeness"></a>

**Quick responses (under 30 seconds):**

* Limit: 5-10 pages
* Breadth: 2-3 links
* Depth: 1-2 levels

**Comprehensive research (1-2 minutes):**

* Limit: 20-30 pages
* Breadth: 5-8 links
* Depth: 2-3 levels

***

#### ✓ Best Practice 5: Use Response Processing Effectively <a href="#best-practice-5-use-response-processing-effectively" id="best-practice-5-use-response-processing-effectively"></a>

* **Auto Fusion:** Best for straightforward queries where you want intelligent combination
* **Custom Fusion:** Use when you need specific formatting or filtering
* **Raw:** Best when you want unprocessed results or are handling processing elsewhere

***

#### ✓ Best Practice 6: Test URLs Before Using <a href="#best-practice-6-test-urls-before-using" id="best-practice-6-test-urls-before-using"></a>

Before setting up Extract or Crawl modes:

* Open the URL in your browser to ensure it works
* Check if the page loads completely
* Verify the content is what you expect
* Test with different pages from the same site

***

#### ✓ Best Practice 7: Combine with Other Agent Features <a href="#best-practice-7-combine-with-other-agent-features" id="best-practice-7-combine-with-other-agent-features"></a>

The Web Scraper works well with:

* **Context indexes:** Add domain knowledge to improve results
* **Model enhancement:** Use a model to better understand and summarize findings
* **Multi-agent setups:** Have different agents handle different aspects of research

***

### Understanding the Interface Elements <a href="#understanding-the-interface-elements" id="understanding-the-interface-elements"></a>

#### Information Icons (ℹ️) <a href="#information-icons" id="information-icons"></a>

* **What they are:** Small "i" icons throughout the configuration panels
* **How to use them:** Hover your mouse over them to see helpful explanations
* **Example locations:** Next to setting labels, in dropdown menus

#### Dropdown Menus <a href="#dropdown-menus" id="dropdown-menus"></a>

* **How they work:** Click to expand, then click your choice
* **Used for:** Mode selection, Limit/Breadth/Depth settings, Response Type
* **Current selection:** Shows your chosen option

#### Radio Buttons <a href="#radio-buttons" id="radio-buttons"></a>

* **How they work:** Click to select one option from a group
* **Used for:** Mode selection (Search/Extract/Crawl), Input Source (Predefined/User Query)
* **Visual feedback:** Selected option shows a filled circle

#### Text Input Fields <a href="#text-input-fields" id="text-input-fields"></a>

* **How they work:** Click and type to enter text
* **Used for:** Search queries, URLs, instructions
* **Validation:** Some fields may show errors for invalid input

#### Toggle Switches <a href="#toggle-switches" id="toggle-switches"></a>

* **How they work:** Click to switch between On/Off states
* **Used for:** Post-Response Synthesis, Use Input
* **Visual feedback:** Green = On, Gray = Off

#### Text Editor Boxes <a href="#text-editor-boxes" id="text-editor-boxes"></a>

* **How they work:** Click to open a larger text editing area
* **Used for:** Crawler Instructions, Synthesis Instructions, Fusion Instructions
* **Features:** Rich text editing, version history (in some cases)

***

### Quick Reference Guide <a href="#quick-reference-guide" id="quick-reference-guide"></a>

#### Mode Comparison <a href="#mode-comparison" id="mode-comparison"></a>

| Feature      | Search Mode      | Extract Mode     | Crawl Mode                     |
| ------------ | ---------------- | ---------------- | ------------------------------ |
| **Input**    | Keywords/phrases | Single URL       | Starting URL                   |
| **Scope**    | Entire web       | One page         | Multiple pages                 |
| **Speed**    | Fast             | Fast             | Variable (based on settings)   |
| **Best for** | Broad research   | Specific content | Comprehensive exploration      |
| **Settings** | Basic            | Basic            | Advanced (Limit/Breadth/Depth) |

#### Common Settings Combinations <a href="#common-settings-combinations" id="common-settings-combinations"></a>

**Quick Web Search:**

* Mode: Search
* Input Source: User Query
* Response Type: Auto Fusion

**Single Page Analysis:**

* Mode: Extract
* Input Source: User Query
* Response Type: Raw
* Synthesis: Enabled

**Website Overview:**

* Mode: Crawl
* Input Source: Predefined
* Limit: 20, Breadth: 5, Depth: 2
* Response Type: Custom Fusion

***

### Frequently Asked Questions <a href="#frequently-asked-questions" id="frequently-asked-questions"></a>

**Q: How is the Web Scraper different from regular AI assistants?** A: Regular AI assistants use pre-trained knowledge that may be outdated. The Web Scraper actively searches current web content to provide up-to-date information.

***

**Q: Can the agent access password-protected websites?** A: No, the agent can only access publicly available web content. It cannot log into accounts or access private areas.

***

**Q: How long does crawling take?** A: It depends on your settings. A quick crawl (5-10 pages) takes 10-30 seconds. Comprehensive crawling (30+ pages) can take 1-2 minutes or more.

***

**Q: Can I search in specific languages?** A: The agent searches in the language of your query. For best results, use queries in the language you want results in.

***

**Q: What happens if a website blocks the agent?** A: Some websites have anti-bot measures. If this happens, try Search mode instead, or use different websites with similar information.

***

**Q: Can I save and reuse scraper configurations?** A: Yes, your configuration is saved automatically. You can set up different agents for different purposes and switch between them.

***

**Q: Does the agent follow robots.txt rules?** A: The agent respects standard web crawling etiquette and avoids overwhelming websites, but it doesn't strictly follow robots.txt (as this is for research purposes).

***

**Q: Can I combine web scraping with other agent features?** A: Yes. Combine it with context indexes, model enhancement, and multi-agent setups for broader research workflows.

***

**Q: What if I need information from social media or private sites?** A: The agent can only access public web content. For social media or private sites, you'll need to provide public URLs or use different research methods.

***

**Q: How do I know if my settings are working well?** A: Test with sample queries and review the results. Adjust settings based on whether you're getting too much information, too little, or irrelevant content
