Skip to main content

Dify

Official Firecrawl plugin for Dify workflows, plus knowledge base website sync
5 min read
Note

Official Dify Plugin: marketplace.dify.ai/plugins/langgenius/firecrawl

Official plugin by Dify team • 170,000+ installs • Chatflow & Agent apps • Free to use

Dify Integration Overview#

Dify is an open-source LLM app development platform. The official Firecrawl plugin enables web crawling and scraping directly in your AI workflows.

Chatflow & Workflow Apps

Build visual pipelines with Firecrawl nodes for data extraction

Agent Applications

Give AI agents the power to scrape live web data on demand

Firecrawl Tools in Dify#

The plugin ships seven actions.

Scrape

Convert any URL into clean, structured data. Transform raw HTML into actionable insights.

Use Cases: Extract product data, scrape article content, get structured data with JSON mode.

Crawl

Perform recursive crawls of websites and subdomains to gather extensive content.

Use Cases: Full site content extraction, documentation scraping, multi-page data collection.

Map

Generate a complete map of all URLs present on a website.

Use Cases: Site structure analysis, SEO auditing, URL discovery for batch scraping.

Crawl Job

Retrieve scraping results based on a Job ID or cancel ongoing tasks.

Use Cases: Monitor long-running crawls, manage async scraping workflows, cancel operations when needed.

Create Monitor

Create a scheduled monitor that re-checks a target on a recurring schedule.

Use Cases: Keeping ingested data fresh, changelog watching, competitor tracking.

Monitor Checks

Retrieve a monitor's details and its check results, so you can act only on the pages that changed.

Use Cases: Incremental knowledge base updates, change alerts, downstream triggers.

Getting Started#

Install Firecrawl Plugin

Access the Dify Plugin Marketplace and install the Firecrawl tool

Get Firecrawl API Key

Visit Firecrawl API Keys and create a new API key

Authorize in Dify

Navigate to Plugins > Firecrawl > To Authorize and input your API key

Add to Your Workflow

Drag Firecrawl tools into your Chatflow, Workflow, or Agent application

Configure & Test

Set up parameters and test your workflow

Usage Patterns#

Visual Pipeline Integration

  1. Add Firecrawl node to your pipeline
  2. Select action (Map, Crawl, Scrape)
  3. Define input variables
  4. Execute pipeline sequentially

Example Flow:

Common Use Cases#

AI Chatbot with Live Data

Build RAG-powered chatbots that scrape and reference live website content

Content Analysis Agent

Agents that research topics by scraping and analyzing multiple sources

Competitor Monitoring

Automated workflows that track competitor websites and alert on changes

Data Enrichment Pipeline

Extract and enrich data from websites into structured databases

Firecrawl Actions#

ToolDescriptionBest For
SearchWeb search with optional page contentGrounding answers in live sources
ScrapeSingle-page data extractionQuick content capture
CrawlMulti-page recursive crawlingFull site extraction
MapURL discovery and site mappingSEO analysis, URL lists
Crawl JobAsync job managementLong-running operations
Create MonitorScheduled re-checks of a targetKeeping ingested data fresh
Monitor ChecksMonitor details and check resultsActing only on changed pages

Best Practices#

Agent Apps
  • Let agents decide when to scrape
  • Use natural language instructions
  • Enable tool calling in LLM settings
  • Monitor token usage with large scrapes
Workflow Apps
  • Use Map before Crawl for large sites
  • Set appropriate crawl limits
  • Add error handling nodes
  • Test with small datasets first

Dify vs Other Platforms#

FeatureDifyMakeZapiern8n
TypeLLM app platformWorkflow automationWorkflow automationWorkflow automation
Best ForAI agents & chatbotsVisual workflowsQuick automationDeveloper control
PricingOpen-source + CloudOperations-basedPer-taskExecution-based
AI-NativeYesPartialPartialPartial
Self-HostedYesNoNoYes
Tip

Pro Tip: Dify excels at building AI-native applications where agents need dynamic web access. Perfect for chatbots, research assistants, and AI tools that need live data.

Sync websites into the Dify knowledge base#

Firecrawl can also scrape a web page into Markdown and import it into the Dify knowledge base from Dify Cloud.

Configuring Firecrawl#

Open your avatar menu, go to the DataSource page, and configure Firecrawl credentials.

Configure Firecrawl key

Log in to your Firecrawl account, get your API key, then enter and save it in Dify.

Save Firecrawl key

Scrape the target webpage#

On the knowledge base creation page, select Sync from website, choose Firecrawl as the provider, and enter the URL to scrape.

Scraping setup

Configuration options include: whether to crawl sub-pages, page crawling limit, page scraping max depth, excluded paths, include only paths, and content extraction scope. After configuring, click Run to preview the parsed pages.

Set Firecrawl configuration

Review import results#

Imported page text is stored in knowledge base documents. View the results and click Add URL to import more pages.

See results of the Firecrawl scrape