{
  "workflow_name": "When user watches the video partially in Presto Player, divide the percentage by 10 and add the math value returned as points to a lead in UpViral",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Partial Video Watched",
          "app": {
            "key": "presto_player",
            "fm_app": "presto_player"
          },
          "eventSlug": "partial_video_played",
          "eventTitle": "Partial Video Watched",
          "layoutDirection": "horizontal",
          "stepNumber": 1
        },
        "targetPosition": "bottom",
        "type": "trigger",
        "stepNumber": 1,
        "expanded": true,
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "application": "presto_player",
        "stepID": "1",
        "action": "partial_video_played",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Divide percentage by 10",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "maths",
            "fm_app": "maths"
          },
          "eventSlug": "execute_math",
          "eventTitle": "Execute Math Equation"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "math_equation": "{presto_player1.percentage_played}/10"
        },
        "application": "maths",
        "action": "execute_math",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Find the lead",
          "layoutDirection": "horizontal",
          "stepNumber": 3,
          "app": {
            "key": "upviral",
            "fm_app": "upviral"
          },
          "eventSlug": "get_lead_by_email",
          "eventTitle": "Get Lead Details by Email"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "email": "{presto_player1.user_email}"
        },
        "application": "upviral",
        "action": "get_lead_by_email",
        "nodeType": "step",
        "stepID": "3"
      },
      {
        "id": "4",
        "position": {
          "x": 525,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Add points",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "upviral",
            "fm_app": "upviral"
          },
          "eventSlug": "add_points",
          "eventTitle": "Add Points"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "upviral",
        "action": "add_points",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "main_end_placeholder",
        "position": {
          "x": 700,
          "y": 0
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "main_end_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      }
    ],
    "edges": [
      {
        "id": "e-1-2",
        "source": "1",
        "target": "2",
        "type": "step",
        "data": []
      },
      {
        "id": "e-2-3",
        "source": "2",
        "target": "3",
        "type": "step",
        "data": []
      },
      {
        "id": "e-3-4",
        "source": "3",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-main_end_placeholder",
        "source": "4",
        "target": "main_end_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "When user watches the video partially in Presto Player, divide the percentage by 10 and add the math value returned as points to a lead in UpViral",
    "folder": "all",
    "description": "When a viewer reaches the watch percentage you set in Presto Player, FlowMattic divides the percentage by 10, finds the viewer's lead in UpViral by email and adds the result as points.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}