Skip to main content

Autonomous AI crawler

Workflow preview

Workflow preview
100%
Autonomous AI crawler preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow with AI agent is designed to navigate through the page to retrieve specific type of information (in this example: social media profile links). The agent is equipped with 2 tools: text...

Best for

  • Lead Generation automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.toolworkflow, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.set, n8n-nodes-base.manualtrigger, n8n-nodes-base.supabase, n8n-nodes-base.merge, n8n-nodes-base.markdown

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oskar.

Original n8n.io source

1.1 Workflow description

Title
Autonomous AI crawler
Workflow name
Autonomous AI crawler

This workflow with AI agent is designed to navigate through the page to retrieve specific type of information (in this example: social media profile links).

The agent is equipped with 2 tools:

  • text tool: to retrieve all the text from the page,
  • URLs tool: to extract all possible links from the page.

đź’ˇ You can edit prompt and JSON schema connected to the agent in order to return other data then social media profile links.

👉 This workflow uses Supabase as storage (input/output). Feel free to change it to any other database of your choice.

🎬 See this workflow in action in my YouTube video.

How it works?

The workflow uses the input URL (website) as a starting point to retrieve the data (e.g. example.com). Using the "URLs tool", the agent is able to retrieve all links from the page and navigate to them.

For example, if you want to retrieve contact information, agent will try to find a subpage that might contain this information (e.g. example.com/contact) and extract the information using the text tool.

Set up steps

  1. Connect database with input data (website addresses) or pin sample data to trigger node.
  2. Configure the crawling agent to retrieve the desired data (e.g. modify prompt and/or parsing schema).
  3. Set credentials for OpenAI.
  4. Optionally: split agent tools to separate workflows.

If you like this workflow, please subscribe to my YouTube channel and/or my newsletter.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Text

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 1.1

Block 2 - URLs

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 1.1

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 4 - JSON Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 5 - Map company name and website

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 6 - Execute workflow

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 7 - Get companies

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 8 - Select company name and website

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 9 - Set social media array

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 10 - Merge all data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 11 - Insert new row

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 12 - Convert HTML to Markdown

Type / Role
n8n-nodes-base.markdown - markdown
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Retrieve URLs

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 17 - Split out URLs

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 18 - Remove duplicated

Type / Role
n8n-nodes-base.removeDuplicates - removeDuplicates
Config choices
Version 1

Block 19 - Set domain to path

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 20 - Filter out invalid URLs

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 21 - Aggregate URLs

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 22 - Filter out empty hrefs

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 23 - Set domain (text)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 24 - Add protocool to domain (text)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Autonomous AI crawler
Complexity advanced
Nodes 38
Categories Lead Generation, AI Chatbot
Author Oskar
Published 05 Jul 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2315/2315.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Autonomous AI crawler do?

This workflow with AI agent is designed to navigate through the page to retrieve specific type of information (in this example: social media profile links). The agent is equipped with 2 tools: text...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Chatbot use case.