# Trade Fair Exhibitors: Exhibitor List to Find Buyers at Gulfood — API reference

The detail an integrator needs and a buyer does not: linked from the README's Integrations section.

## Tested combinations

| Call | What runs | Input |
|---|---|---|
| Daily test / first agent call | the free demo on the 5 sample exhibitors, nothing charged | `{}` |
| Demo, as the form opens | the same free demo | `storage-example/INPUT.json` |
| Live read, capped | Gulfood (2026, the 2027 list not open yet) + BIOFACH 2027, India × spices, 6 rows, AI off — 11.6 s locally on 2026-11-24 | `storage-example/INPUT.live.json` |
| Live read with a refused fair | Gulfood (2027 → 2026 fallback) + Anuga in `refused` — measured 13.7 s | `{"sourceMode": "live", "fairs": ["gulfood", "anuga"], "countries": ["IN"], "categories": ["pulses"], "maxRowsPerFair": 5}` |
| AI on | the same sample with the AI verdict | `storage-example/INPUT.ai.json` |
| AI with your own key | the AI through your provider key | `{"enableAi": true, "llmProvider": "byok", "llmApiKey": "…"}` + fairs or rows (default model `google:gemini-3.5-flash-lite`) |
| Your own list | your rows, no fair read | `{"sourceMode": "list", "itemsList": [ … ]}` (fields: README → List-mode rows) |
| A dataset you have | a dataset's items, no fair read | `{"sourceMode": "dataset", "datasetId": "<id>"}` |

## Which call runs what

The mode that runs is `sourceMode` as sent — except `{}` (the free demo) and, on the Console only, the untouched sample
next to other fairs (`autoSwitchToLive`, then `live`). A Console input saved as a task or schedule runs as sent: the
untouched sample stays the demo. `OUTPUT.mode` says which ran: `demo`, `live`, `list` or `dataset`.

## Every field a pasted row can carry (list mode)

`companyName` (aliases `company`, `name`, `title`) — required. Optional: `country` (`countryName`, `city`),
`categories` (`productsText`, `exhibitorType` → buyer type), `stand` (`hall`; aliases `booth`, `stall`), `website`,
`email`, `phone`, `coExhibitors`, `startup`, `exhibitorId` with `fair`, `fairName`, `edition` (the dedupe key),
`exhibitorUrl` (or `url`, the link). Carried as is: `role`, `alsoAt`, `companyKey`, `matchedCategories`,
`sourceEndpoint`, `fetchedAt`, `fromCache`, `rowId`.

## API-only inputs

| Field | Default | Effect on cost and time |
|---|---|---|
| `aiCandidateMultiplier` | 2 | AI shortlist = this × `maxQualified`: × 2 means up to twice the AI calls, time and tokens (only qualified rows are charged) |
| `autoSwitchToLive` | true | Console only: other fairs picked next to the sample start the live read; `false` keeps the free demo |
| `refreshCache` | false | `true` re-reads every fair instead of the year cache — minutes instead of seconds, no cost on your account |
| `mergeAcrossFairs` | true | `false` = one row per fair; the second stand of a company is delivered as `same-unit`, never charged twice |
| `fetchProfiles` | true | Gulfood profile pages for websites: ≈ 1 s per kept exhibitor, at most 2 × `maxQualified` |
| `maxToProcess` | 3 × `maxQualified` | how many exhibitors are scored per run (run time) |
| `dedupeTtlDays` | 0 | days before a delivered exhibitor can be delivered — and charged — again |
| `historyDatasetName` | "" | a named dataset every run appends its rows to — no cost effect |
| `llmModel` | — | the AI model; a larger model costs more tokens per exhibitor |
| `allowList` | — | names no free filter may drop; they still need `minScore` |
| `ownSource` | true | `false` runs the Store-Actor fallback (`discoveryActorId` + `discoveryInput`) on your account — that Actor bills you per row |
| `discoveryActorId` / `discoveryInput` | `skython/exhibitor-list-scraper` / {} | the fallback only; with `ownSource: true` and fairs set they are never used |
| `maxDiscoveryChargeUsd` | 0.5 | the fallback's spend cap on your account; the built-in read costs nothing |
| `discoveryTimeoutSecs` | 3600 | the fallback's timeout (cut to the run's own time left) |
| `dedupeStoreName` | `trade-fair-exhibitors-ai-seen` | one named memory per client; a new name re-delivers (and re-charges) rows delivered under another |
| `webhookBatchSize` | 1 | 1 = one POST per row; N = batched POSTs — no cost effect |
| `webhookHeaders` / `webhookSecret` | — | headers / HMAC signing of the webhook POST — no cost effect |
| `slackWebhookUrl` / `teamsWebhookUrl` / `googleChatWebhookUrl` / `discordWebhookUrl` / `telegramUrl` / `whatsappUrl` | — | per-service aliases of **Send alerts to**; an explicit one wins for its service (union, no duplicate post) |

## Webhook body

Signed with `webhookSecret`: header `X-Signature: sha256=<HMAC-SHA256 of the raw body>`.

`webhookBatchSize: 1` — one POST per exhibitor (the row below is the item):

```json
{"event": "exhibitor.qualified", "runId": "a1B2c3D4e5F6g7H8i", "redelivery": false, "item": {"itemId": "…", "dedupeKey": "gulfood:2026:47087", "url": "https://…", "score": 85, "label": "hot"}, "exhibitor": {"…": "the same row"}}
```

`webhookBatchSize: N` — one POST per batch (the last one may be shorter):

```json
{"event": "exhibitors.qualified", "runId": "a1B2c3D4e5F6g7H8i", "redelivery": false, "items": [{"itemId": "…", "dedupeKey": "…"}], "exhibitors": ["… the same rows"]}
```

`item` / `items` are the generic keys every Actor of this developer sends — read those; `exhibitor` /
`exhibitors` carry the same rows and are removed in 0.2 (2027-03-01).

A 429 / 5xx / network error is retried once after 2 s (15 s timeout); a POST that still fails is re-sent first on the
next run with `"redelivery": true` — upsert on `dedupeKey`. Every URL is posted once per run: **Send alerts to** fills
each service you did not set yourself, `webhookUrl` gets the rows, chat services and `notifyEmail` the digest.

## Run time per mode

| Mode | Measured time | `timeoutSecs` |
|---|---|---|
| Demo / your own rows | seconds | 120 |
| Live read, 5 exhibitors | 24 s on Apify (BIOFACH, 2026-11-24) · 5.1 s (BIOFACH) · 13.7 s (Gulfood, 5 profiles) locally, 2026-11-23 | 300 |
| AI with your own key | measured ≈ 5.4–11.6 s per exhibitor with a free Gemini key `gemini-3.5-flash-lite` (5.4 s local 2026-11-23; 11.6 s and 6.6 s on Apify 2026-11-24) — size from the slowest: ≈ 17.4 s each with headroom, ≈ 760 s for 50 | 3600 |

Worst case with a slow own key: ≈ 3480 s per 100 — the AI stops at the time budget, every row is still pushed.

## Every output field

`companyName`, `country`, `countryName`, `city`, `website`, `hall`, `stand`, `categories`, `productsText`, `fair`,
`fairName`, `edition`, `editionStatus` (upcoming / past show — contacts still valid, from the show dates on the fair's site), `newThisEdition` (not on the cached previous edition; null when none is cached), `email` (role only), `phone`, `contactRoute`, `exhibitorType`, `coExhibitors`, `alsoAt` (the
same company's stands at your other fairs), `buyerType`, `productFit`, `role`, `matchedCategories`, `companyKey` (the
same company across fairs), `rowId`, `startup`, `sample`, `fetchedAt` (when the list was downloaded), `fromCache`,
`sourceEndpoint`, `flags`, `targetFlagsMatched`, `ruleScore`, `fitScore`, `score`, `label`, `assessedBy`,
`scoreReasons`, `summary` (visit note), `generatedText` (meeting request), `outreachLanguage` (its language code), `fitNote` (why a row has no meeting request), `recommendedNextStep`, `aiModel`, `url`,
`itemId`, `name`, `dedupeKey`, `chargedEvent`, `billedAs`, `source`, `scrapedAt`. `exhibitorUrl` is a deprecated alias
of `url` (removed in 0.2, 2027-03-01 — use `url` instead, same value). `summary`, `scoreReasons` and `fitScore` are
`null` on a row the AI did not assess (`assessedBy: rules`). `ruleScore` is the rule part of `score`, `fitScore` the AI's — trend on
`ruleScore`.

## One dataset item

A real AI-assessed row of the 2026-11-23 local AI run (`storage-example/INPUT.ai.json`, model `google:gemini-3.5-flash-lite`):

```json
{
 "itemId": "b98f3169719f",
 "name": "All About Brands - Exporting Top UK FMCG Brands — Gulfood 2026, South Hall 1 3-35",
 "url": "https://exhibitors.gulfood.com/gulfood-2026/Exhibitor/ExbDetails/NDcwODc=/0-all-about-brands-exporting-top-uk-fmcg-brands",
 "companyName": "All About Brands - Exporting Top UK FMCG Brands",
 "country": "GB",
 "countryName": "United Kingdom",
 "city": null,
 "website": null,
 "hall": "South Hall 1",
 "stand": "3-35",
 "categories": [
  "Pulses/ Grains / Cereals / Flours",
  "Snacks",
  "Halal and Kosher Food",
  "Bakery, Cakes & Desserts"
 ],
 "productsText": "All About Brands is a trusted UK exporter and global FMCG wholesaler with operations in the UK, UAE, and international markets.",
 "fair": "gulfood",
 "fairName": "Gulfood",
 "edition": 2026,
 "exhibitorUrl": "https://exhibitors.gulfood.com/gulfood-2026/Exhibitor/ExbDetails/NDcwODc=/0-all-about-brands-exporting-top-uk-fmcg-brands",
 "email": null,
 "phone": null,
 "role": "buyer",
 "exhibitorType": null,
 "coExhibitors": [],
 "sourceEndpoint": null,
 "alsoAt": [],
 "companyKey": "all about brands exporting top uk fmcg brands|gb",
 "rowId": "47087",
 "fetchedAt": null,
 "fromCache": null,
 "matchedCategories": [
  "rice"
 ],
 "startup": null,
 "sample": true,
 "contactRoute": "https://exhibitors.gulfood.com/gulfood-2026/Exhibitor/ExbDetails/NDcwODc=/0-all-about-brands-exporting-top-uk-fmcg-brands",
 "buyerType": "importer_distributor",
 "productFit": [
  "rice"
 ],
 "flags": [
  "likely_importer"
 ],
 "targetFlagsMatched": [],
 "ruleScore": 70,
 "score": 85,
 "label": "hot",
 "fitScore": 85,
 "scoreReasons": [
  "lists Pulses/ Grains / Cereals / Flours and acts as a UK/UAE wholesaler",
  "exhibits in the target Gulfood show from the UK"
 ],
 "summary": "UK/UAE FMCG wholesaler and exporter listing pulses and grains; discuss supplying Indian basmati rice and organic pulses for their distribution channels.",
 "generatedText": "Hello from All About Brands, we saw your stand in South Hall 1 (3-35) focusing on Pulses/ Grains / Cereals / Flours. As an Indian exporter of organic pulses and basmati rice, we would love to discuss supplying high-quality grains for your global FMCG wholesale operations. Let us know when we can meet at Gulfood 2026.",
 "recommendedNextStep": "Visit stand 3-35 in South Hall 1 to discuss supplying Indian basmati rice and organic pulses for their UK and UAE distribution networks.",
 "aiModel": "google:gemini-3.5-flash-lite",
 "assessedBy": "ai",
 "chargedEvent": "demo",
 "billedAs": "qualified-exhibitor-ai",
 "dedupeKey": "gulfood:2026:47087",
 "source": {
  "mode": "list",
  "query": "gulfood-2026"
 },
 "scrapedAt": "2026-11-23T20:23:25+00:00"
}
```

## `OUTPUT` record keys

- `ok` — bool: `false` only when every fair failed / the source failed and nothing loaded
- `outcome` — str, one of `ok` · `empty` · `source_refused` · `source_failed` · `error`
- `mode` — str: `demo` · `live` · `list` · `dataset`
- `rows`, `qualified` — int: delivered rows (the same number; `rows` is the contract name)
- `refused` — array: `{fair, edition, url, reason, kind, detail}` — `reason` one of `robots_disallowed` · `bot_challenge` · `not_published` · `token_required` · `endpoint_disallowed_pdf_used` · `fetch_failed` · `markup_changed`; `kind` `not_supported` | `failed` (alert on `failed`)
- `queries` — array: `{fair, fairName, edition, endpoint, filtersSent, filtersLocal, pages, totalListed, kept, profilesRead, fromCache, cachedAt, note, comparedWithEdition}`
- `costUsd` — number: what this run charged in our events
- `skippedAsDelivered` — int | null: matches an earlier run of this search already delivered (not charged again; `dedupeAcrossRuns: false` returns them)
- `pendingEditions` — array | null: `{fair, fairName, edition}` of a requested edition whose list is not open yet; the status links the saved task to schedule
- `byFair` — object | null: `{"Gulfood 2026": 3, "BIOFACH 2027": 1}`
- `stats` — object: the funnel, `discovered`, `skipped_<reason>` counts (`skipped_outside_categories`, `skipped_test_record` …), `ai_assessed`
- `chargedEvents` — object: `{"<event>": <count>}`; `chargeSplit` — object: `demo`, `free`, `basic`, `ai`, `freeKeptForAi`
- AI reserve — when you switched the AI on but it is unavailable on your plan, the last 5 of your free exhibitors are kept for the AI verdict: rule-only rows use the other free units, then the basic price. `freeAiReserve` and `chargeSplit.freeKeptForAi` show the number; the AI verdict uses them once it runs.
- `sourceStatus` — object | null: `reader`, `status`, `partial`
- `sourceError` — str | null
- `aiCoverage` — object | null: `aiAssessed`, `ruleScored`, `model`, `fallbackReasons`, `sampleVerdicts`; `aiError` — str | null
- `aiTokens` — object | null: `inputPerUnit`, `outputPerUnit`, `model` (1,356 / 183 on 2026-11-24, gemini-3.5-flash-lite own key)
- `webhook` — object | null: `sent`, `failed`, `failedKeys`, `redelivered`, `pendingNextRun`, `signed`
- `trend`, `history` — the second run on: deltas and one `{at, qualified, hot}` per run of this search
- `scheduledSizing`, `scanCapHit` — object | null: what a scheduled run resized, which fair hit `maxRowsPerFair`
- `digestEmailed` — bool | null; `scheduleTaskUrl`, `reportUrl` — str | null
- `timing` — object: `sourceSecs`, `aiSecs`, `aiSecsPerUnit`, `aiBackoffSecs`, `totalSecs`
- `nextSteps` — array | null: the status steps that did not fit the 200-character status
