MCPMCP-Tools/Verbundene Apps/run_crm_import

run_crm_import

Writereview-invite:write

Start importing contacts from a connected CRM into review-invite campaigns. Returns a run id IMMEDIATELY — a real CRM takes minutes to read, so this queues the work rather than waiting. Tell the user it's started and that the result appears in Recipients → Import history; do not claim a contact count, you won't have one. Contacts are routed to locations by the connection's mapping rule; pass locationId to send everything to one location instead. Contacts whose location can't be resolved are skipped, never filed under a default. You don't pass an agency — it comes from your credentials.

Parameter
connectionIdstringerforderlich
The CRM connection to import from, from list_connected_apps (required).
locationIdstringoptional
Send every imported contact to this one location, ignoring the connection's routing rule. Use when the user says "map them all to X". Omit to use the stored mapping.
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run_crm_import",
    "arguments": {
      "connectionId": "string"
    }
  }
}
Beispielantwort
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.