{
  "name": "MFA multi-factor authentication (Voice call and Email) with ClickSend and SMTP",
  "nodes": [
    {
      "id": "56842e20-266b-4770-b4cd-3106418caefa",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -740
      ],
      "parameters": {
        "width": 440,
        "height": 180,
        "content": "## STEP 1\n[Register here to ClickSend](https://clicksend.com/?u=586989) and obtain your API Key and 2 € of free credits\n\nIn the node \"Send Voice\" create a \"Basic Auth\" with the username you registered"
      }
    },
    {
      "id": "9dfff5ae-fc04-4957-a7b6-6866e8ab0854",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -320
      ],
      "parameters": {
        "width": 440,
        "height": null,
        "content": "## STEP 3\n\nSubmit the form and you will receive a call to the phone number you entered where the selected voice will tell you the content of the text you wrote."
      }
    },
    {
      "id": "914666e8-1dc3-4d71-abf7-408b66a4508c",
      "name": "Send Voice",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        0
      ]
    },
    {
      "id": "838266ee-33aa-4380-9335-5290cad30504",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -440,
        0
      ]
    },
    {
      "id": "aab0e353-0af0-4867-9178-4195c6ed045b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -1020
      ],
      "parameters": {
        "width": 440,
        "height": 240,
        "content": "## Send and Check TTS (Text-to-Speech) Voice Calls with Email Verification\n\nThis workflow automates the process of sending voice calls for verification purposes and combines it with email verification"
      }
    },
    {
      "id": "f4c3e305-be7e-43e7-a874-2767a0411624",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1180,
        -100
      ]
    },
    {
      "id": "5a3ff941-6d25-4479-bedc-c3cfa7c75e36",
      "name": "Code for voice",
      "type": "n8n-nodes-base.code",
      "position": [
        40,
        0
      ]
    },
    {
      "id": "14ccfe99-8fbd-4cde-9ca3-c73e541086b3",
      "name": "Set voice code",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        0
      ]
    },
    {
      "id": "b01e3604-5ca9-45cb-8a59-4f86f33d169b",
      "name": "Verify voice code",
      "type": "n8n-nodes-base.form",
      "position": [
        480,
        0
      ]
    },
    {
      "id": "9c013995-ce9d-4c65-9c19-2f1a410ada38",
      "name": "Fail voice code",
      "type": "n8n-nodes-base.form",
      "position": [
        940,
        100
      ]
    },
    {
      "id": "3abbb31d-2ad0-4c2e-8891-e65e484e2ae4",
      "name": "Set email code",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        -100
      ]
    },
    {
      "id": "3e453956-0056-4532-a096-a0a6de9702ae",
      "name": "Verify email code",
      "type": "n8n-nodes-base.form",
      "position": [
        1440,
        -100
      ]
    },
    {
      "id": "964528b3-f25f-4591-b5fe-6b405aaed0d2",
      "name": "Is email code correct?",
      "type": "n8n-nodes-base.if",
      "position": [
        1680,
        -100
      ]
    },
    {
      "id": "df8f62cc-8f45-462e-84bf-0121cbf650c7",
      "name": "Is voice code correct?",
      "type": "n8n-nodes-base.if",
      "position": [
        700,
        0
      ]
    },
    {
      "id": "1f7ff94c-9b29-481b-99cf-cef63714995c",
      "name": "Success",
      "type": "n8n-nodes-base.form",
      "position": [
        1920,
        -200
      ]
    },
    {
      "id": "2c6fbd06-30f9-47b8-afa0-042439ff92c6",
      "name": "Fail email code",
      "type": "n8n-nodes-base.form",
      "position": [
        1920,
        0
      ]
    },
    {
      "id": "632e4253-f4d1-4255-93d8-b7c3b8571e36",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        -80
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "Set the code that will be spoken in the verification phone call"
      }
    },
    {
      "id": "37f3d155-cbb8-4c03-b8ae-43df4eec06d1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        -180
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "Set the code that will be sent in the verification email"
      }
    },
    {
      "id": "4c3a01a0-927f-499f-8bf2-e402b77050c4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -520
      ],
      "parameters": {
        "width": 440,
        "height": null,
        "content": "## STEP 2\n\nSet the verification code for this explanatory flow that will be set in the voice call and verification email.\n\nIn the node \"Send Email\" set the sender."
      }
    }
  ],
  "connections": {
    "Send Email": {
      "main": [
        [
          {
            "node": "Verify email code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Voice": {
      "main": [
        [
          {
            "node": "Verify voice code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code for voice": {
      "main": [
        [
          {
            "node": "Send Voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set email code": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set voice code": {
      "main": [
        [
          {
            "node": "Code for voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify email code": {
      "main": [
        [
          {
            "node": "Is email code correct?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify voice code": {
      "main": [
        [
          {
            "node": "Is voice code correct?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Set voice code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is email code correct?": {
      "main": [
        [
          {
            "node": "Success",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fail email code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is voice code correct?": {
      "main": [
        [
          {
            "node": "Set email code",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fail voice code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}