Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(scrape): suggest /interact endpoint when actions parameter is used (#3401)

firecrawl-spring[bot]6be7c10e2073
diff --git a/apps/api/src/services/worker/scrape-worker.ts b/apps/api/src/services/worker/scrape-worker.ts
index 6a8470c0e..5edfd8cc3 100644
--- a/apps/api/src/services/worker/scrape-worker.ts
+++ b/apps/api/src/services/worker/scrape-worker.ts
@@ -287,6 +287,15 @@ async function processJob(job: NuQJob<ScrapeJobSingleUrls>) {
(doc.warning ? " " + doc.warning : "");
}
+ if (
+ job.data.billing?.endpoint === "scrape" &&
+ (job.data.scrapeOptions.actions?.length ?? 0) > 0
+ ) {
+ doc.warning =
+ "You're using the actions parameter. For a more reliable and flexible experience, try the /interact endpoint instead." +
+ (doc.warning ? " " + doc.warning : "");
+ }
+
const data = {
success: true,
result: {