capabilities.work

Enrich Webset and Poll

A 4-step recipe with Exa. We can help you get access.

Recipe · 4 steps

Enrich Webset and Poll

with Exa

Create a Webset, enrich its items, and poll the enrichment to completion.

  1. Create a Webset with an embedded search query. It begins processing immediately; capture its id and status.
  2. Poll the Webset until it returns to idle, looping while it is still running or pending.
  3. Attach an enrichment to the Webset that asks an agent to extract the described data point onto each item; capture the enrichment id and status.
  4. Poll the enrichment by id until it reaches completed, looping back while it is still pending.
What you'll need to have ready
  • apiKey: Your Exa API key, sent in the x-api-key header.
  • query: Natural-language search query describing the entities to collect.
  • count: Number of items the Webset will attempt to find.
  • enrichmentDescription: Description of the enrichment task to run on each item (e.g. "Company revenue").
  • format: Format of the enrichment response (text, date, number, options, email, phone, url).
For your developer

Arazzo workflow exa-ai:enrich-webset-and-poll, 4 operations: websets-create → websets-get → websets-enrichments-create → websets-enrichments-get. Specs on APIs.io.