{
    "workflow_name": "Assign Appointments to different Agents with round-robin scheduling algorithm on new Stripe Payments",
    "workflow_steps": {
        "steps": [
            {
                "id": "1",
                "position": {
                    "x": 0,
                    "y": 0
                },
                "data": {
                    "label": "New Charge",
                    "app": {
                        "key": "stripe",
                        "fm_app": "stripe"
                    },
                    "eventSlug": "charge.succeeded",
                    "eventTitle": "New Charge",
                    "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": "stripe",
                "stepID": "1",
                "action": "charge.succeeded",
                "nodeType": "step",
                "actionAppArgs": []
            },
            {
                "id": "2",
                "position": {
                    "x": 175,
                    "y": 0
                },
                "type": "action",
                "data": {
                    "label": "Incremental Counter",
                    "layoutDirection": "horizontal",
                    "stepNumber": 2,
                    "app": {
                        "key": "counter",
                        "fm_app": "counter"
                    },
                    "eventSlug": "incremental_counter",
                    "eventTitle": "Incremental Counter"
                },
                "parentType": "step",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": [],
                "application": "counter",
                "action": "incremental_counter",
                "nodeType": "step",
                "stepID": "2"
            },
            {
                "id": "3",
                "position": {
                    "x": 350,
                    "y": 0
                },
                "nodeType": "router",
                "application": "router",
                "stepID": "3",
                "type": "action",
                "actionAppArgs": [],
                "data": {
                    "label": "Router",
                    "app": {
                        "key": "router",
                        "fm_app": "router"
                    },
                    "layoutDirection": "horizontal",
                    "stepNumber": 3,
                    "stepIndex": 3
                },
                "parentType": "step"
            },
            {
                "id": "3-routerSwitch",
                "position": {
                    "x": 450,
                    "y": 0
                },
                "type": "action",
                "data": {
                    "label": "+",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": []
                },
                "routerSwitch": true,
                "stepID": "3-routerSwitch",
                "nodeType": "routerSwitch",
                "actionAppArgs": []
            },
            {
                "id": "3-routerRoute_A",
                "position": {
                    "x": 570,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Route A",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": [],
                    "customLabel": "Agent 1"
                },
                "routerRoute": true,
                "routeLetter": "A",
                "routeIndex": 0,
                "stepID": "3-routerRoute_A",
                "nodeType": "routerRoute",
                "actionAppArgs": []
            },
            {
                "id": "4",
                "position": {
                    "x": 790,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Route Conditions",
                    "layoutDirection": "horizontal",
                    "stepNumber": 4,
                    "app": {
                        "key": "filter",
                        "fm_app": "filter"
                    },
                    "eventSlug": "continue_if",
                    "eventTitle": "Route Conditions",
                    "customLabel": "Route Conditions"
                },
                "parentType": "routerRoute",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{counter2.counter}",
                                "condition": "equal_to",
                                "value": "1"
                            }
                        ]
                    }
                },
                "application": "filter",
                "action": "continue_if",
                "nodeType": "step",
                "stepID": "4",
                "filterConditions": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{counter2.counter}",
                                "condition": "equal_to",
                                "value": "1"
                            }
                        ]
                    }
                }
            },
            {
                "id": "5",
                "position": {
                    "x": 965,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Book with Agent 1",
                    "layoutDirection": "horizontal",
                    "stepNumber": 5,
                    "app": {
                        "key": "latepoint",
                        "fm_app": "latepoint"
                    },
                    "eventSlug": "create_booking",
                    "eventTitle": "Create Booking"
                },
                "parentType": "step",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": [],
                "application": "latepoint",
                "action": "create_booking",
                "nodeType": "step",
                "stepID": "5"
            },
            {
                "id": "3_A_placeholder",
                "position": {
                    "x": 1140,
                    "y": -112.5
                },
                "type": "placeholder",
                "data": {
                    "label": "+",
                    "layoutDirection": "horizontal",
                    "stepNumber": null,
                    "app": []
                },
                "measured": {
                    "width": 40,
                    "height": 82
                },
                "stepID": "3_A_placeholder",
                "nodeType": "placeholder",
                "actionAppArgs": []
            },
            {
                "id": "3-routerRoute_B",
                "position": {
                    "x": 570,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Route B",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": [],
                    "customLabel": "Agent 2"
                },
                "routerRoute": true,
                "routeLetter": "B",
                "routeIndex": 1,
                "stepID": "3-routerRoute_B",
                "nodeType": "routerRoute",
                "actionAppArgs": []
            },
            {
                "id": "6",
                "position": {
                    "x": 790,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Route Conditions",
                    "layoutDirection": "horizontal",
                    "stepNumber": 6,
                    "app": {
                        "key": "filter",
                        "fm_app": "filter"
                    },
                    "eventSlug": "continue_if",
                    "eventTitle": "Route Conditions",
                    "customLabel": "Route Conditions"
                },
                "parentType": "routerRoute",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{counter2.counter}",
                                "condition": "equal_to",
                                "value": "2"
                            }
                        ]
                    }
                },
                "application": "filter",
                "action": "continue_if",
                "nodeType": "step",
                "stepID": "6",
                "filterConditions": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{counter2.counter}",
                                "condition": "equal_to",
                                "value": "2"
                            }
                        ]
                    }
                }
            },
            {
                "id": "7",
                "position": {
                    "x": 965,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Book with Agent 2",
                    "layoutDirection": "horizontal",
                    "stepNumber": 7,
                    "app": {
                        "key": "latepoint",
                        "fm_app": "latepoint"
                    },
                    "eventSlug": "create_booking",
                    "eventTitle": "Create Booking"
                },
                "parentType": "step",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": [],
                "application": "latepoint",
                "action": "create_booking",
                "nodeType": "step",
                "stepID": "7"
            },
            {
                "id": "3_B_placeholder",
                "position": {
                    "x": 1140,
                    "y": 112.5
                },
                "type": "placeholder",
                "data": {
                    "label": "+",
                    "layoutDirection": "horizontal",
                    "stepNumber": null,
                    "app": []
                },
                "measured": {
                    "width": 40,
                    "height": 82
                },
                "stepID": "3_B_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-routerSwitch",
                "source": "3",
                "target": "3-routerSwitch",
                "type": "router",
                "data": []
            },
            {
                "id": "e-3-routerSwitch-3-routerRoute_A",
                "source": "3-routerSwitch",
                "target": "3-routerRoute_A",
                "type": "router",
                "data": []
            },
            {
                "id": "e-3-routerRoute_A-4",
                "source": "3-routerRoute_A",
                "target": "4",
                "type": "router",
                "data": []
            },
            {
                "id": "e-4-5",
                "source": "4",
                "target": "5",
                "type": "step",
                "data": []
            },
            {
                "id": "e-5-3_A_placeholder",
                "source": "5",
                "target": "3_A_placeholder",
                "type": "placeholder",
                "data": []
            },
            {
                "id": "e-3-routerSwitch-3-routerRoute_B",
                "source": "3-routerSwitch",
                "target": "3-routerRoute_B",
                "type": "router",
                "data": []
            },
            {
                "id": "e-3-routerRoute_B-6",
                "source": "3-routerRoute_B",
                "target": "6",
                "type": "router",
                "data": []
            },
            {
                "id": "e-6-7",
                "source": "6",
                "target": "7",
                "type": "step",
                "data": []
            },
            {
                "id": "e-7-3_B_placeholder",
                "source": "7",
                "target": "3_B_placeholder",
                "type": "placeholder",
                "data": []
            }
        ]
    },
    "workflow_settings": {
        "name": "Assign Appointments to different Agents with round-robin scheduling algorithm on new Stripe Payments",
        "folder": "all",
        "description": "After a Stripe payment succeeds, FlowMattic uses a counter and routers to evenly rotate new LatePoint bookings across your agents, keeping appointment load fair with true round-robin scheduling.",
        "status": "off",
        "user_email": "",
        "webhook_queue": "disabled",
        "workflow_auth_key": "",
        "builder_version": "v2",
        "time": "",
        "ai_generated": "yes"
    }
}