feat: support extractionGoal from portal in browser executor

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-03-19 08:48:11 +02:00
parent ea0df8c223
commit d86401fe93

View File

@@ -82,7 +82,10 @@ async def execute_browser_scrape(job: dict, send_text, **_kwargs) -> dict:
target_room = job["targetRoom"]
config = job.get("config", {})
url = config.get("url", "")
extraction_goal = config.get("extractionGoal", "")
goal = config.get("goal", config.get("query", f"Scrape content from {url}"))
if extraction_goal:
goal += f"\n\nExtract the following: {extraction_goal}"
extraction_schema = config.get("extractionSchema")
browser_profile = job.get("browserProfile")