Firecrawl Agent Node seems to be Using the Sample Prompt

Describe the problem/error/question

I am using the Firecrawl Agent tool. No matter what I put in the Prompt field, the Firecrawl agent performs the default sample prompt (“e.g. find the founders of firecrawl and their roles”).

What is the error message (if any)?

no error message.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)


{
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.4,
      "position": [
        -80,
        112
      ],
      "id": "b596b233-b98c-434f-be23-2551156d9187",
      "name": "When chat message received",
      "webhookId": "f11ba60b-4edf-4988-ac71-87eac5daf29b"

{
  "nodes": [
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "value": "vejZTbVt2wItzCn4",
          "mode": "list",
          "cachedResultName": "CA MDs and DOs",
          "cachedResultUrl": "/projects/02UNqpWjbk3vZXgL/datatables/vejZTbVt2wItzCn4"
        },
        "filters": {
          "conditions": [
            {
              "condition": "isNotEmpty"
            }
          ]
        },
        "returnAll": true
      },
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        112,
        112
      ],
      "id": "d6c62d1b-e08b-4620-be0d-034279e686d5",
      "name": "Get row(s)",
      "alwaysOutputData": true
    }
  ],
  "connections": {
    "Get row(s)": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "5a646395c15d5e79f5c78a66eb88706b556d695faff058a1f7adf9169fb292f0"
  }
}

{
  "nodes": [
    {
      "parameters": {
        "resource": "Agent",
        "operation": "agent",
        "prompt": "1. Go to medifind.com.\n2. Do not go to any other websites.\n3. Look up provider using\nName\nLocation\nState.\n4. Output \nName\nLocation\nState\nPhone\n",
        "specifyUrls": true,
        "urls": "https://medifind.com",
        "useCustomBody": "={{ false }}",
        "customBody": "{\n  \"prompt\": \"Find the founders of Firecrawl\",\n  \"urls\": [\"https://firecrawl.dev\"],\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"founders\": {\n        \"type\": \"array\",\n        \"items\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"name\": { \"type\": \"string\" },\n            \"role\": { \"type\": \"string\" }\n          }\n        }\n      }\n    }\n  }\n}",
        "requestOptions": {}
      },
      "type": "@mendable/n8n-nodes-firecrawl.firecrawl",
      "typeVersion": 1,
      "position": [
        304,
        112
      ],
      "id": "6f3f80c2-4827-4a75-a808-a0fcfec67284",
      "name": "Agent - AI-powered web data extraction (waits for completion)",
      "alwaysOutputData": true,
      "credentials": {
        "firecrawlApi": {
          "id": "YJA8vaQj43MFVE0L",
          "name": "Firecrawl account"
        }
      }
    }
  ],
  "connections": {
    "Agent - AI-powered web data extraction (waits for completion)": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "5a646395c15d5e79f5c78a66eb88706b556d695faff058a1f7adf9169fb292f0"
  }
}
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "5a646395c15d5e79f5c78a66eb88706b556d695faff058a1f7adf9169fb292f0"
  }
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @timsthomasson Welcome to the n8n community!
Your Firecrawl Agent node in n8n always runs the default/sample prompt because the community Firecrawl node does not fully support the /agent API and often ignores the prompt you type unless the custom request body is formatted exactly as the Firecrawl Agent API expects. If the node cannot parse or apply your input, it falls back to a sample prompt. The official Firecrawl Agent API requires a prompt parameter and an optional schema to work correctly. To fix it you should either send your request via an HTTP Request node using the official Firecrawl /agent API format, or ensure your custom body matches the API specification. Let me know if this helps

Hi @timsthomasson, welcome!

It works on my end without any issues:


You’re probably missing something,
If you attach the workflow correctly, we might be able to figure out what the issue is..

1 Like

UPDATE. I discovered that the code for the sample prompt (“Find the founders of Firecrawl”) was in the Custom Body field of the N8N Firecrawl Agent tool. The tool was running the prompt even with the “Use Custom Body” switch turn off.

When I opened the Custom Body field and deleted the Find the founders of Firecrawl code, it worked as expected.