{
  "openruna_format": "flow-graph-v1",
  "title": "0265_Shopify_HubSpot_Create_Triggered",
  "slug": "0265-shopify-hubspot-create-triggered",
  "source_filename": "0265_Shopify_HubSpot_Create_Triggered.json",
  "nodes": [
    {
      "id": "On order updated",
      "name": "On order updated",
      "integration": "shopify",
      "kind": "trigger"
    },
    {
      "id": "Keep only userId",
      "name": "Keep only userId",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "New Order, deal not found",
      "name": "New Order, deal not found",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Do Nothing",
      "name": "Do Nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Create new deal",
      "name": "Create new deal",
      "integration": "hubspot",
      "kind": "action"
    },
    {
      "id": "Find if order already exists as deal",
      "name": "Find if order already exists as deal",
      "integration": "hubspot",
      "kind": "action"
    },
    {
      "id": "Add Hubspot userId to data",
      "name": "Add Hubspot userId to data",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Create or update contact",
      "name": "Create or update contact",
      "integration": "hubspot",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Keep only userId",
      "to": "Add Hubspot userId to data"
    },
    {
      "from": "On order updated",
      "to": "Add Hubspot userId to data"
    },
    {
      "from": "On order updated",
      "to": "Create or update contact"
    },
    {
      "from": "Create or update contact",
      "to": "Keep only userId"
    },
    {
      "from": "New Order, deal not found",
      "to": "Create new deal"
    },
    {
      "from": "New Order, deal not found",
      "to": "Do Nothing"
    },
    {
      "from": "Add Hubspot userId to data",
      "to": "Find if order already exists as deal"
    },
    {
      "from": "Find if order already exists as deal",
      "to": "New Order, deal not found"
    }
  ]
}