{
  "openruna_format": "flow-graph-v1",
  "title": "Unique QRcode coupon assignment and validation for Lead Generation system",
  "slug": "unique-qrcode-coupon-assignment-and-validation-for-lead-generation-system",
  "source_filename": "1855_Webhook_Respondtowebhook_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "If",
      "name": "If",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Token SuiteCRM",
      "name": "Token SuiteCRM",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Create Lead SuiteCRM",
      "name": "Create Lead SuiteCRM",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "On form submission",
      "name": "On form submission",
      "integration": "form",
      "kind": "trigger"
    },
    {
      "id": "Duplicate Lead?",
      "name": "Duplicate Lead?",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Form Fields",
      "name": "Form Fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Coupon",
      "name": "Get Coupon",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Update Sheet",
      "name": "Update Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Is Duplicate?",
      "name": "Is Duplicate?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get QR",
      "name": "Get QR",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Send Email",
      "name": "Send Email",
      "integration": "emailSend",
      "kind": "action"
    },
    {
      "id": "Update Lead",
      "name": "Update Lead",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Not used?",
      "name": "Not used?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Coupon OK",
      "name": "Coupon OK",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "No coupon",
      "name": "No coupon",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Coupon KO",
      "name": "Coupon KO",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Token SuiteCRM 1",
      "name": "Token SuiteCRM 1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set coupon",
      "name": "Set coupon",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Get Lead",
      "name": "Get Lead",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Update coupon used",
      "name": "Update coupon used",
      "integration": "googleSheets",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "If",
      "to": "Get Lead"
    },
    {
      "from": "If",
      "to": "No coupon"
    },
    {
      "from": "Get QR",
      "to": "Send Email"
    },
    {
      "from": "Webhook",
      "to": "Set coupon"
    },
    {
      "from": "Get Lead",
      "to": "Not used?"
    },
    {
      "from": "Not used?",
      "to": "Token SuiteCRM 1"
    },
    {
      "from": "Not used?",
      "to": "Coupon KO"
    },
    {
      "from": "Get Coupon",
      "to": "Token SuiteCRM"
    },
    {
      "from": "Set coupon",
      "to": "If"
    },
    {
      "from": "Form Fields",
      "to": "Duplicate Lead?"
    },
    {
      "from": "Update Lead",
      "to": "Update coupon used"
    },
    {
      "from": "Update Sheet",
      "to": "Get QR"
    },
    {
      "from": "Is Duplicate?",
      "to": "Get Coupon"
    },
    {
      "from": "Token SuiteCRM",
      "to": "Create Lead SuiteCRM"
    },
    {
      "from": "Duplicate Lead?",
      "to": "Is Duplicate?"
    },
    {
      "from": "Token SuiteCRM 1",
      "to": "Update Lead"
    },
    {
      "from": "On form submission",
      "to": "Form Fields"
    },
    {
      "from": "Update coupon used",
      "to": "Coupon OK"
    },
    {
      "from": "Create Lead SuiteCRM",
      "to": "Update Sheet"
    }
  ]
}