{
  "name": "SMS Vert Pro - SMS de confirmation depuis un formulaire",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "sms-confirmation",
        "options": {}
      },
      "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a200001",
      "name": "Formulaire reçu",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [0, 0],
      "webhookId": "5b0e4c1a-0002-4a6e-9c01-7f3d2a2000a1"
    },
    {
      "parameters": {
        "serverTransport": "httpStreamable",
        "endpointUrl": "https://www.smsvertpro.com/mcp/",
        "authentication": "bearerAuth",
        "tool": { "__rl": true, "mode": "id", "value": "send_sms" },
        "inputMode": "json",
        "jsonInput": "={{ JSON.stringify({ to: [$json.body.telephone], message: 'Bonjour ' + $json.body.prenom + ', votre demande est bien enregistrée. Nous revenons vers vous rapidement.', sender: 'MaSociete' }) }}",
        "options": {}
      },
      "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a200002",
      "name": "SMS de confirmation",
      "type": "@n8n/n8n-nodes-langchain.mcpClient",
      "typeVersion": 1,
      "position": [240, 0]
    },
    {
      "parameters": {
        "conditions": {
          "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 2 },
          "conditions": [
            {
              "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a2000c1",
              "leftValue": "={{ $json.structuredContent.ok }}",
              "rightValue": "",
              "operator": { "type": "boolean", "operation": "true", "singleValue": true }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a200003",
      "name": "SMS parti ?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [480, 0]
    },
    {
      "parameters": {},
      "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a200004",
      "name": "Envoi confirmé",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [720, -100]
    },
    {
      "parameters": {},
      "id": "5b0e4c1a-0002-4a6e-9c01-7f3d2a200005",
      "name": "Échec : prévenir l'équipe",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [720, 100]
    }
  ],
  "connections": {
    "Formulaire reçu": { "main": [[{ "node": "SMS de confirmation", "type": "main", "index": 0 }]] },
    "SMS de confirmation": { "main": [[{ "node": "SMS parti ?", "type": "main", "index": 0 }]] },
    "SMS parti ?": {
      "main": [
        [{ "node": "Envoi confirmé", "type": "main", "index": 0 }],
        [{ "node": "Échec : prévenir l'équipe", "type": "main", "index": 0 }]
      ]
    }
  },
  "settings": { "executionOrder": "v1" },
  "pinData": {}
}
