Agent Skill · Landbase

contacts-import

Import contacts into the Execution platform via landbase-cli contacts-import — covers building and validating an AI-driven header mapping, tracking an import to completion, and repairing failures using the server's authoritative header list.

Provider: Landbase Path in repo: tools/contacts-import/SKILL.md

Skill body

Contacts Import (Execution platform) with AI header mapping

Import a dataset’s contacts into the current account on the Execution platform (where campaigns run). NEVER run a bare contacts-import start — default header resolution drops every column it can’t match. The drop is reported in the final status, not silent, but the user’s data is still not imported. Build a mapping first. Violating the letter of these rules is violating their spirit.

Prereqs: landbase-cli auth login, then landbase-cli account set (or --account=<id>). You need a dataset id from a prior search/agent run or upload — those commands print dataset_id; pass that same value as datasetId (camelCase) in the start body.

Mechanics (command list, body/response shapes, phases, polling) live in landbase-cli contacts-import --help. This skill is the authority on when to stop, what to repair, and what to report to the user.

Red Flags — STOP

The mapping flow

  1. Headers come from the DATASET, not your local file: landbase-cli datasets fields <datasetId> is the authoritative column list. For ambiguous header names, check sample values: landbase-cli datasets peek <datasetId> --sql "SELECT * FROM input_dataset LIMIT 3".
  2. landbase-cli contacts-import schema — match each column to a catalog field by its description and by comparing sample values to examples/format. rowRules in the response is the authoritative list of required fields and atLeastOneOf groups (server-owned; never hardcode the rules).
  3. Preflight: landbase-cli contacts-import resolve --json - on { "headers": [...], "mapping": { "company": {...}, "contact": {...} } }. Stop conditions — fix, re-resolve, only then start:
    • invalidMappingEntries: unknown_field → use its didYouMean; header_not_in_file → use its suggestion. resolve tolerates unknown field names; start rejects them outright.
    • missingRequired / violatedRowRules non-empty → the import WILL fail.
    • unmappedHeaders non-empty → those columns will NOT be imported — remap them or confirm the loss with the user.
  4. Start with the same mapping and watch to terminal: echo '{"datasetId":"<id>","tagName":"<tag>","mapping":{...}}' | landbase-cli contacts-import start --json - --watch (or poll status <importId> / block with wait <importId>).

Reading the terminal status — what to report

Dataset imports: the server sees the dataset’s columns plus LB_* system columns — those are excluded from mapping checks automatically; never map to them.

Failure modes

Integration

Called by: landbase-email-campaigns, landbase-linkedin-campaigns, dataset-pipeline — each hands off here before importing contacts. Return to the calling skill only after the import reaches a terminal phase and the outcome (counts + any dropped columns) has been reported to the user.

Skill frontmatter

when_to_use: when importing contacts into the Execution platform via contacts-import, building or repairing a header mapping, or reporting dropped columns / mapping failures after an import version: 1.0.0

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/contacts-import"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.