/api/agent endpoint takes a natural-language prompt and chooses a strategy (extract, crawl, or scrape) for you.
Key parameter
prompt: what you want to collect
Example
Pattern vs query crawl behavior
The agent can route crawl-like work in two ways:- Pattern-based crawl: URL wildcard matching (
pattern). - Query-based crawl: semantic page scanning (
query) from seed URLs.
prompt and let the agent choose.