Skip to content

AI mapping

The Map step suggests which source key fills each field. Name matching always runs; an AI provider you configure can refine what name matching leaves unsure.

When the wizard reaches the Map step with nothing mapped yet, it asks for suggestions once. Each suggestion pairs a collection field with a source key, with a confidence. You review them, change what’s wrong and go on. Suggestions are never saved on their own: they only fill the Map step.

Name matching compares the collection’s field names and labels with the source’s column or path names, using common synonyms, and checks the sample values against each field’s type. It needs no key and no network, and it’s always available.

An AI provider refines the fields name matching didn’t settle exactly. It’s optional, it’s off by default, and when it fails for any reason, you get the name-matching suggestions with a note saying why.

On EmDash’s plugin settings page for Flux Importer, set Mapping suggestions:

Option What it uses
None (name matching only) Name matching alone. The default.
Anthropic (Claude) Anthropic’s API, with claude-opus-5-5 unless you name another model.
OpenAI-compatible endpoint Any endpoint with a Chat Completions API that supports JSON-schema response formats.

Then fill in:

Setting What to enter
Provider API key The provider’s key. It’s stored encrypted, so the site needs EMDASH_ENCRYPTION_KEY set. Clear the field to remove the key.
Model Leave empty to use claude-opus-5-5 with Anthropic. Required for an OpenAI-compatible endpoint, as that endpoint names it.
OpenAI-compatible base URL Only for an OpenAI-compatible endpoint: the URL before /chat/completions, such as https://api.example.com/v1. It must be https on a public host.

Setting Mapping suggestions back to None stops every provider call and keeps the stored key.

Each suggestion that uses the provider sends it:

  • the target collection’s name and label;
  • the names, labels, types, required flags and short option lists of the fields name matching didn’t settle;
  • the column or path names of the sample;
  • up to 5 sample records, each value cut to 200 characters, fewer when the data is large.

With Anthropic, the SDK also sends its client details (SDK version, OS, runtime).

It never sends IDs, source URLs, credentials or user details, or any entry already on the site. The provider’s own data policy applies.

If the sample is still too large after trimming, no call is made and you get name matching alone.

  • 30 suggestions an hour use the provider, per site, counted by UTC hour. Every attempt counts, failed ones included. After that, suggestions fall back to name matching until the next hour.
  • One call per suggestion, with no retries. A call waits between 20 and 90 seconds, longer for more fields, then gives up.
  • Name matching is never limited.

A line above the fields says where the suggestions came from:

  • Suggestions by AI (Anthropic) or Suggestions by AI (OpenAI-compatible);
  • Suggestions by name matching, when no provider is set, or when the provider call failed (a warning says why);
  • Suggestions by name matching · AI unavailable, when a provider is set but its settings can’t be used, such as a missing key or model.

Each suggested field shows a badge with its origin and confidence, such as AI · high or Name · medium. A field the wizard wants you to look at carries a check note, and the summary bar counts them (2 to check):

  • Check: the sample has no key … — the suggested key isn’t in the sample.
  • Check: the suggestion was not sure.
  • Check: the format of its values is unclear. — for example, a date that could be day-first or month-first.

About these suggestions lists warnings, such as required fields that still have no key, or why the provider wasn’t used. Each warning comes in plain words; the provider’s own text is never shown.

Ask again requests new suggestions. If you mapped fields yourself, the wizard asks Replace the fields you mapped yourself?: choose Keep my choices to fill only the other fields, or Replace them.

When you start from a saved template, its mapping fills the step and no suggestions are asked for. Choose Ask again to get them.

  • Reference fields. Map them yourself, as Taxonomies, references and bylines explains.
  • Taxonomies, bylines, translations, expressions and record rules.
  • Fields that can’t be imported into.

You still get name-matching suggestions, with one of these warnings:

You see Why
AI suggestions are not set up completely The key, the model or the base URL is missing or not valid.
The AI provider’s key cannot be read The key can no longer be decrypted, for example after EMDASH_ENCRYPTION_KEY changed. Enter it again.
The AI provider’s address is not allowed The base URL isn’t https on a public host.
The hourly limit of AI suggestions is reached 30 calls this hour already.
The AI provider did not answer in time The call timed out.
The AI provider refused the key Check the key.
The AI provider asks for payment or credit Top up the provider account.
The sample was too large to send Even trimmed, the sample was over the size cap.

Agents importing through the MCP tools don’t use suggestions: they import with saved templates only.