For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use the Crawler (Data Scraping) Feature

Enter a URL, set the crawl scope, and choose a one-time run or recurring schedule. MaiAgent will automatically crawl the website and import its pages into a knowledge base, where you can track the res

Purpose and Benefits

As a business user, you may often be asked by a manager to consult or compile regulations published on websites, or to keep an AI assistant up to date with the latest product information and FAQs on your company's website.

If you have a technical background or help from an engineer, you might automate data collection with a crawler. For nontechnical users, however, collecting pages by hand takes time and effort and can easily miss important information.

MaiAgent's No-Code web scraping feature lets you:

  • Crawl an entire website scope at once: Set the crawl depth, page limit, and URL rules to choose which pages to crawl.

  • Run once or on a recurring schedule: Crawl immediately, or recrawl automatically every day, week, or month.

  • Import automatically into a knowledge base: Import crawled pages directly into a selected knowledge base. For URLs that already exist, choose to skip, overwrite, or allow duplicates.

  • Track import results: See how many pages succeeded or failed in each import record.

Use Case

A customer service manager wants her AI support assistant's answers to stay consistent with the FAQs on the company website. She creates a knowledge base for those FAQs, then opens Crawler and creates a crawl request. She enters the website's FAQ URL and sets a low maximum crawl depth and page limit so she can first confirm that only FAQ pages will be crawled. She chooses Scheduled run for every Monday at 9 a.m., selects the new knowledge base as the automatic import destination, and chooses Skip when a URL already exists. The weekly synchronization task then appears on the Schedules tab. After each crawl, she can open Import history in the crawl request details to see which knowledge base received the pages and how many succeeded or failed. When the website's FAQs change, she no longer needs an engineer to compile the content again.

How Do I Crawl a Website?

If Crawler does not appear in the left menu, your account does not have access to it. Contact your organization administrator to confirm your permissions.

1. Open the Crawler Page

In the left menu, click AI Features → Crawler. The page has two tabs:

  • Page crawl requests: Lists every crawl, including one-time runs and crawls started automatically by schedules. Search by name or URL, and filter by type (one-time/scheduled) and crawl status (completed/in progress/failed).

  • Schedules: Lists all recurring crawl schedules.

The Page crawl requests tab on the Crawler page lists a completed one-time crawl with Details, Import, and View actions
Page crawl requests tab: each request shows its type, crawl status, and creation time

2. Enter a Task Name and URL

Click Create page crawl request in the upper right. The setup flow has three steps: URL, Crawl settings, and Execution method.

In the first step, enter:

  • Task name: A name that helps you identify this crawl, such as “Daily product page crawl.”

  • URL: The URL where crawling should start.

Then click Next.

First step of the Create page crawl request dialog, with fields for the task name and URL
Step 1: enter the task name and starting URL

3. Set the Crawl Depth and Scope

The second step, Crawl settings, controls how many pages to crawl. Basic settings has two fields:

Field
Description

Maximum crawl depth

Number of link levels to follow from the starting URL. Choose 1–10; the default is 2.

Maximum pages to crawl

Maximum number of pages in this crawl. Choose 10, 50, 100, 500, 1000, or 5000; the default is 100.

Basic crawl settings with maximum depth set to 1 and maximum pages set to 10
Basic settings: control the crawl scope with the maximum depth and page limit

For more precise control, expand Advanced settings:

Setting
Description

URL matching rules

Crawl only URLs that match a rule, such as /products/*. Without rules, all pages within the crawl scope are included.

URL exclusion rules

Do not crawl URLs that match a rule, such as /admin/* or \.pdf$.

Boundary settings

Choose whether to allow crawling same-level or parent paths, include subdomains, or allow external links. All are off by default.

Sitemap strategy

Prefer sitemap (default), Ignore sitemap, or Use sitemap only.

Content extraction settings

Extract main content only and Ignore URL parameters are on by default. You can also set the JS rendering wait time to 0, 500, 1000, or 2000 ms.

Expanded advanced settings with URL matching and exclusion rules, boundary settings, sitemap strategy, and content extraction settings
Advanced settings: narrow the crawl scope with URL rules, boundaries, and a sitemap strategy

When you finish, click Next.

4. Choose an Execution Method and Knowledge Base

The third step, Execution method, determines when to crawl and where to import the results.

Execution method

  • One-time run: Start one crawl immediately after creating the request.

  • Scheduled run: Crawl according to a recurring schedule (see Set Up a Recurring Schedule in the next section).

Knowledge base settings

  • Import into an existing knowledge base: Under Automatic import destination (optional), select one or more knowledge bases. Pages are imported automatically after crawling. Leave this empty to crawl without importing; you can import manually later.

  • Automatically create a new knowledge base: Create a new knowledge base named after the task on each run and import the crawled content into it.

After selecting an import destination, you can choose How to handle existing URLs for URLs already imported into that knowledge base:

Option
Description

Skip (default)

Skip URLs already imported into this knowledge base.

Overwrite

Replace the existing file with newly crawled content.

Allow duplicates

Create a new file even if the URL already exists.

Execution method step with One-time run, Import into an existing knowledge base, and Skip selected for existing URLs
Execution method: choose a one-time run, an automatic import destination, and how to handle duplicate URLs

When synchronizing the same website regularly, choose Skip or Overwrite to avoid accumulating duplicate files that could cause the AI assistant to cite outdated content.

5. Preview and Create

Before creating the request, click Preview to check which pages will be crawled. The preview explores website URLs and incurs a charge. A confirmation dialog appears first; click Confirm to proceed.

The preview shows the number of URLs found, URLs to crawl and exclude, estimated pages and time, and a list of pages to crawl.

Preview dialog showing the target URL, counts of discovered, included, and excluded URLs, estimated pages and time, and a list of pages to crawl
Preview: check the number and list of pages before creating the request

The preview is an estimate. Actual crawling may vary because of depth limits, dynamic JavaScript pages, and robots.txt.

If everything looks correct, click Create. A one-time request appears on the Page crawl requests tab and starts crawling.

If the URL was crawled before, a This URL has been crawled before confirmation dialog shows the previous crawl time, page count, and imported knowledge bases. To crawl it again, click Crawl again; otherwise, click Cancel.

Confirmation dialog for a previously crawled URL, showing the previous crawl time, child page count, and imported knowledge bases
Repeat crawl reminder: review the previous result before deciding whether to crawl again

Set Up a Recurring Schedule

When website content changes regularly, choose Scheduled run in step 3 to recrawl and import into a knowledge base automatically.

Field
Description

Frequency

Once, Daily, Weekly, or Monthly.

Time zone

Time zone used for the schedule.

Start date / End date

Period when the schedule is active. End date is optional; a one-time frequency only requires a start date.

Execution time

Time of each run.

Days of the week

For weekly schedules, select the days to run (multiple selections allowed).

Day of the month

For monthly schedules, enter a day from 1–31.

Scheduled run set to Weekly, Asia/Taipei, 09:00 on Monday, importing into an existing knowledge base
Scheduled run: crawl every Monday at 9 a.m. and import into a knowledge base automatically

After creation, the schedule appears on the Schedules tab with its settings and status (Active / Paused). The action icons let you:

  • Edit: Open Edit schedule to change the task name, crawl settings, schedule time, and knowledge base settings. The starting URL cannot be changed after creation.

  • Execution history: View the time and crawl status of each run and open its details.

  • Pause / Enable: Temporarily pause or re-enable the schedule.

  • Delete: Delete the schedule.

Schedules tab listing a schedule for Mondays at 9:00, with Active status and Edit, Execution history, Pause, and Delete actions
Schedules tab: view settings, edit a schedule, check its execution history, pause it, or delete it

View Crawl Results and Import History

On the Page crawl requests tab, click Details for a request to open the Crawl request details page:

  • Crawl progress: Number of pages processed and total pages.

  • Crawl task settings: Expand to review the URL, crawl settings, and execution method chosen at creation.

  • Crawled pages: Titles, URLs, crawl statuses, and completion times of the pages crawled.

Crawl request details page with crawl progress, task settings, and a list of crawled pages
Crawl request details: view progress and crawled pages

Switch to the Import history tab to see each import's time, knowledge base, Import method (automatically imported pages show Automatic), and counts of successful and failed pages.

Import history tab showing one automatic import into an example knowledge base, with 1 success and 0 failures
Import history: see the knowledge base, import method, and success/failure counts for each import

Click the action icon to open the Imported pages list and review each page's import status and corresponding knowledge base file.

Imported pages list dialog with page titles, URLs, successful import statuses, and corresponding knowledge base files
Imported pages list: find the knowledge base file created for each page

On the Page crawl requests list, you can also click View on a completed request to open Failed import records. Select a knowledge base to see which pages failed to import and why.

Imported content appears as .md files in the knowledge base's document list. You can set tags and metadata just as you can for other files. The Source column shows a Crawler tag; click it to return to the corresponding crawl request details.

Manually Import Crawled Pages

If you did not set up automatic import or want to import pages into another knowledge base, import them manually:

  1. On the crawl request details page, click Import into knowledge base (or click Import for the request in the list).

  2. Select the target Knowledge base and How to handle existing URLs.

  3. Select the pages to import, then click Import.

Page list dialog for selecting a knowledge base, how to handle existing URLs, and pages to import
Manual import: choose a knowledge base, duplicate URL handling, and pages to import

If you choose Skip and some URLs have already been imported, the system reports how many import tasks were created and how many duplicate URLs were skipped.

Web Scraping Considerations

  • Make sure you have permission to crawl the target website's content.

  • Crawling, previewing, and manually importing all consume Credits. Start with a small maximum crawl depth and page limit to verify the scope before increasing them.

  • After crawling, use Search Test to check data quality.

  • If website content changes often, use a recurring schedule to keep the information current, and choose Skip or Overwrite to avoid duplicate files.

Last updated

Was this helpful?