MCPOutils MCP/Applications connectées/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.

Paramètres
connectionIdstringobligatoire
The CRM connection to import from, from list_connected_apps (required).
locationIdstringfacultatif
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.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run_crm_import",
    "arguments": {
      "connectionId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.