{
  "openruna_format": "flow-graph-v1",
  "title": "0286_Zendesk_HubSpot_Create_Scheduled",
  "slug": "0286-zendesk-hubspot-create-scheduled",
  "source_filename": "0286_Zendesk_HubSpot_Create_Scheduled.json",
  "nodes": [
    {
      "id": "Ticket Exists",
      "name": "Ticket Exists",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get user data of Ticket requester",
      "name": "Get user data of Ticket requester",
      "integration": "zendesk",
      "kind": "action"
    },
    {
      "id": "Only keep needed data",
      "name": "Only keep needed data",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Add user data",
      "name": "Add user data",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Update existing ticket",
      "name": "Update existing ticket",
      "integration": "hubspot",
      "kind": "action"
    },
    {
      "id": "Update Zendesk ticket with External Id",
      "name": "Update Zendesk ticket with External Id",
      "integration": "zendesk",
      "kind": "action"
    },
    {
      "id": "Get last execution timestamp",
      "name": "Get last execution timestamp",
      "integration": "functionItem",
      "kind": "action"
    },
    {
      "id": "Get tickets updated after last execution",
      "name": "Get tickets updated after last execution",
      "integration": "zendesk",
      "kind": "action"
    },
    {
      "id": "Set new last execution timestamp",
      "name": "Set new last execution timestamp",
      "integration": "functionItem",
      "kind": "action"
    },
    {
      "id": "Every 5 minutes",
      "name": "Every 5 minutes",
      "integration": "cron",
      "kind": "action"
    },
    {
      "id": "Create new Ticket",
      "name": "Create new Ticket",
      "integration": "hubspot",
      "kind": "action"
    },
    {
      "id": "Update External Id in Zendesk for contact",
      "name": "Update External Id in Zendesk for contact",
      "integration": "zendesk",
      "kind": "action"
    },
    {
      "id": "Create or update contact",
      "name": "Create or update contact",
      "integration": "hubspot",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Add user data",
      "to": "Ticket Exists"
    },
    {
      "from": "Ticket Exists",
      "to": "Update existing ticket"
    },
    {
      "from": "Ticket Exists",
      "to": "Create or update contact"
    },
    {
      "from": "Every 5 minutes",
      "to": "Get last execution timestamp"
    },
    {
      "from": "Create new Ticket",
      "to": "Update Zendesk ticket with External Id"
    },
    {
      "from": "Only keep needed data",
      "to": "Add user data"
    },
    {
      "from": "Update existing ticket",
      "to": "Set new last execution timestamp"
    },
    {
      "from": "Create or update contact",
      "to": "Update External Id in Zendesk for contact"
    },
    {
      "from": "Get last execution timestamp",
      "to": "Get tickets updated after last execution"
    },
    {
      "from": "Get user data of Ticket requester",
      "to": "Only keep needed data"
    },
    {
      "from": "Update Zendesk ticket with External Id",
      "to": "Set new last execution timestamp"
    },
    {
      "from": "Get tickets updated after last execution",
      "to": "Get user data of Ticket requester"
    },
    {
      "from": "Get tickets updated after last execution",
      "to": "Add user data"
    },
    {
      "from": "Update External Id in Zendesk for contact",
      "to": "Create new Ticket"
    }
  ]
}