{
  "workflow_name": "When a Sage Intacct employee changes, find and update the matching Airtable record, then alert the team in Slack",
  "workflow_steps": {
    "steps": [
      {
        "id": "1",
        "position": {
          "x": 0,
          "y": 0
        },
        "data": {
          "label": "Employee Changes",
          "app": {
            "key": "sage_intacct",
            "fm_app": "sage_intacct"
          },
          "eventSlug": "employee_changes",
          "eventTitle": "Employee Changes",
          "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": "sage_intacct",
        "stepID": "1",
        "action": "employee_changes",
        "nodeType": "step",
        "actionAppArgs": []
      },
      {
        "id": "2",
        "position": {
          "x": 175,
          "y": 0
        },
        "type": "action",
        "data": {
          "label": "Find the matching Airtable record",
          "layoutDirection": "horizontal",
          "stepNumber": 2,
          "app": {
            "key": "airtable",
            "fm_app": "airtable"
          },
          "eventSlug": "search_record",
          "eventTitle": "Search Record"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "airtable",
        "action": "search_record",
        "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": "Matching Airtable record found?",
          "layoutDirection": "horizontal",
          "stepNumber": 3
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "filterConditions": {
            "1": [
              {
                "id": "c1",
                "key": "{airtable2.total_records}",
                "condition": "greater_than",
                "value": "0"
              }
            ]
          }
        },
        "filterConditions": {
          "1": [
            {
              "id": "c1",
              "key": "{airtable2.total_records}",
              "condition": "greater_than",
              "value": "0"
            }
          ]
        },
        "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": "Update Record",
          "layoutDirection": "horizontal",
          "stepNumber": 4,
          "app": {
            "key": "airtable",
            "fm_app": "airtable"
          },
          "eventSlug": "update_record",
          "eventTitle": "Update Record"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": {
          "record_id": "{airtable2.record_0_id}"
        },
        "application": "airtable",
        "action": "update_record",
        "nodeType": "step",
        "stepID": "4"
      },
      {
        "id": "5",
        "position": {
          "x": 945,
          "y": -160
        },
        "type": "action",
        "data": {
          "label": "Alert the team: record updated",
          "layoutDirection": "horizontal",
          "stepNumber": 5,
          "app": {
            "key": "slack",
            "fm_app": "slack"
          },
          "eventSlug": "send_message_to_channel",
          "eventTitle": "Send Channel Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "slack",
        "action": "send_message_to_channel",
        "nodeType": "step",
        "stepID": "5"
      },
      {
        "id": "3_yes_placeholder",
        "position": {
          "x": 1120,
          "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": "6",
        "position": {
          "x": 770,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Create Record",
          "layoutDirection": "horizontal",
          "stepNumber": 6,
          "app": {
            "key": "airtable",
            "fm_app": "airtable"
          },
          "eventSlug": "create_record",
          "eventTitle": "Create Record"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "airtable",
        "action": "create_record",
        "nodeType": "step",
        "stepID": "6"
      },
      {
        "id": "7",
        "position": {
          "x": 945,
          "y": 160
        },
        "type": "action",
        "data": {
          "label": "Alert the team: record created",
          "layoutDirection": "horizontal",
          "stepNumber": 7,
          "app": {
            "key": "slack",
            "fm_app": "slack"
          },
          "eventSlug": "send_message_to_channel",
          "eventTitle": "Send Channel Message"
        },
        "parentType": "step",
        "style": {
          "transition": "all 150ms ease-in-out"
        },
        "measured": {
          "width": 82,
          "height": 82
        },
        "actionAppArgs": [],
        "application": "slack",
        "action": "send_message_to_channel",
        "nodeType": "step",
        "stepID": "7"
      },
      {
        "id": "3_no_placeholder",
        "position": {
          "x": 1120,
          "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-5",
        "source": "4",
        "target": "5",
        "type": "step",
        "data": []
      },
      {
        "id": "e-5-3_yes_placeholder",
        "source": "5",
        "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-6",
        "source": "3-branchRoute_no",
        "target": "6",
        "type": "step",
        "data": []
      },
      {
        "id": "e-6-7",
        "source": "6",
        "target": "7",
        "type": "step",
        "data": []
      },
      {
        "id": "e-7-3_no_placeholder",
        "source": "7",
        "target": "3_no_placeholder",
        "type": "placeholder",
        "data": []
      }
    ]
  },
  "workflow_settings": {
    "name": "When a Sage Intacct employee changes, find and update the matching Airtable record, then alert the team in Slack",
    "folder": "all",
    "description": "When a Sage Intacct employee is created or updated, FlowMattic searches Airtable for the matching record and updates it (or creates one if none exists), then alerts the team in Slack on either path.",
    "status": "off",
    "user_email": "",
    "webhook_queue": "disabled",
    "workflow_auth_key": "",
    "builder_version": "v2",
    "time": "",
    "ai_generated": "yes"
  }
}