{
  "workflow_name": "When user violate content policy, remove the user from group",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "New Topic Reply",
          "app": {
            "key": "buddyboss",
            "fm_app": "buddyboss"
          },
          "eventSlug": "new_topic_reply",
          "eventTitle": "New Topic Reply",
          "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": "buddyboss",
        "stepID": "1",
        "action": "new_topic_reply",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Create Moderation",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "openai",
            "fm_app": "openai"
          },
          "eventSlug": "create_moderation",
          "eventTitle": "Create Moderation"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "openai",
        "action": "create_moderation",
        "nodeType": "step",
        "stepID": "2"
      },
      {
        "id": "3",
        "position": {
          "x": 350,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Branch by FlowMattic",
          "app": {
            "key": "branch",
            "fm_app": "branch"
          },
          "eventSlug": "evaluate_condition",
          "eventTitle": "Branch",
          "customLabel": "Reply flagged?",
          "layoutDirection": "horizontal",
          "stepNumber": 3
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "id": "c1",
                "key": "{openai2.results.0.flagged}",
                "condition": "is_true",
                "value": ""
              }
            ]
          }
        },
        "filterConditions": {
          "1": [
            {
              "id": "c1",
              "key": "{openai2.results.0.flagged}",
              "condition": "is_true",
              "value": ""
            }
          ]
        },
        "application": "branch",
        "stepID": "3",
        "action": "evaluate_condition",
        "nodeType": "branch"
      },
      {
        "id": "3-branchRoute_yes",
        "position": {
          "x": 570,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Yes",
          "branchType": "yes",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "yes",
        "stepID": "3-branchRoute_yes",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "4",
        "position": {
          "x": 770,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Remove user from group",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "buddyboss",
            "fm_app": "buddyboss"
          },
          "eventSlug": "remove_user_from_group",
          "eventTitle": "Remove user from group"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "buddyboss",
        "action": "remove_user_from_group",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "3_yes_placeholder",
        "position": {
          "x": 945,
          "y": -160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "3_yes_placeholder",
        "nodeType": "placeholder",
        "actionAppArgs": []
      },
      {
        "id": "3-branchRoute_no",
        "position": {
          "x": 570,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "No",
          "branchType": "no",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "branchRoute": true,
        "branchType": "no",
        "stepID": "3-branchRoute_no",
        "nodeType": "branchRoute",
        "actionAppArgs": []
      },
      {
        "id": "3_no_placeholder",
        "position": {
          "x": 770,
          "y": 160
        },
        "type": "placeholder",
        "data": {
          "label": "+",
          "layoutDirection": "horizontal",
          "stepNumber": null,
          "app": []
        },
        "measured": {
          "width": 40,
          "height": 82
        },
        "stepID": "3_no_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-3-branchRoute_yes",
        "source": "3",
        "target": "3-branchRoute_yes",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-3-branchRoute_yes-4",
        "source": "3-branchRoute_yes",
        "target": "4",
        "type": "step",
        "data": []
      },
      {
        "id": "e-4-3_yes_placeholder",
        "source": "4",
        "target": "3_yes_placeholder",
        "type": "placeholder",
        "data": []
      },
      {
        "id": "e-3-3-branchRoute_no",
        "source": "3",
        "target": "3-branchRoute_no",
        "type": "branch",
        "data": []
      },
      {
        "id": "e-3-branchRoute_no-3_no_placeholder",
        "source": "3-branchRoute_no",
        "target": "3_no_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "When user violate content policy, remove the user from group",
    "folder": "all",
    "description": "When a user replies to a BuddyBoss forum topic, OpenAI checks the reply against its content policy and, if it is flagged, FlowMattic removes the user from the group.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}