{
    "workflow_name": "When a new contact is added to FluentCRM, conditionally send WhatsApp message to users using routers and WhatsApp Cloud API",
    "workflow_steps": {
        "steps": [
            {
                "id": "1",
                "position": {
                    "x": 0,
                    "y": 0
                },
                "data": {
                    "label": "New Contact Created",
                    "app": {
                        "key": "fluentcrm",
                        "fm_app": "fluentcrm"
                    },
                    "eventSlug": "fluentcrm_contact_created",
                    "eventTitle": "New Contact Created",
                    "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": "fluentcrm",
                "stepID": "1",
                "action": "fluentcrm_contact_created",
                "nodeType": "step",
                "actionAppArgs": []
            },
            {
                "id": "2",
                "position": {
                    "x": 175,
                    "y": 0
                },
                "nodeType": "router",
                "application": "router",
                "stepID": "2",
                "type": "action",
                "actionAppArgs": [],
                "data": {
                    "label": "Router",
                    "app": {
                        "key": "router",
                        "fm_app": "router"
                    },
                    "layoutDirection": "horizontal",
                    "stepNumber": 2,
                    "stepIndex": 2
                },
                "parentType": "step"
            },
            {
                "id": "2-routerSwitch",
                "position": {
                    "x": 275,
                    "y": 0
                },
                "type": "action",
                "data": {
                    "label": "+",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": []
                },
                "routerSwitch": true,
                "stepID": "2-routerSwitch",
                "nodeType": "routerSwitch",
                "actionAppArgs": []
            },
            {
                "id": "2-routerRoute_A",
                "position": {
                    "x": 395,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Route A",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": [],
                    "customLabel": "Existing customer"
                },
                "routerRoute": true,
                "routeLetter": "A",
                "routeIndex": 0,
                "stepID": "2-routerRoute_A",
                "nodeType": "routerRoute",
                "actionAppArgs": []
            },
            {
                "id": "3",
                "position": {
                    "x": 615,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Route Conditions",
                    "layoutDirection": "horizontal",
                    "stepNumber": 3,
                    "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": "{fluentcrm1.tags}",
                                "condition": "contain_text",
                                "value": "customer"
                            }
                        ]
                    }
                },
                "application": "filter",
                "action": "continue_if",
                "nodeType": "step",
                "stepID": "3",
                "filterConditions": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{fluentcrm1.tags}",
                                "condition": "contain_text",
                                "value": "customer"
                            }
                        ]
                    }
                }
            },
            {
                "id": "4",
                "position": {
                    "x": 790,
                    "y": -112.5
                },
                "type": "action",
                "data": {
                    "label": "Send Customer Template",
                    "layoutDirection": "horizontal",
                    "stepNumber": 4,
                    "app": {
                        "key": "wa_cloud_api",
                        "fm_app": "wa_cloud_api"
                    },
                    "eventSlug": "send_template_message",
                    "eventTitle": "Send Template Message"
                },
                "parentType": "step",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": [],
                "application": "wa_cloud_api",
                "action": "send_template_message",
                "nodeType": "step",
                "stepID": "4"
            },
            {
                "id": "2_A_placeholder",
                "position": {
                    "x": 965,
                    "y": -112.5
                },
                "type": "placeholder",
                "data": {
                    "label": "+",
                    "layoutDirection": "horizontal",
                    "stepNumber": null,
                    "app": []
                },
                "measured": {
                    "width": 40,
                    "height": 82
                },
                "stepID": "2_A_placeholder",
                "nodeType": "placeholder",
                "actionAppArgs": []
            },
            {
                "id": "2-routerRoute_B",
                "position": {
                    "x": 395,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Route B",
                    "stepNumber": null,
                    "layoutDirection": "horizontal",
                    "app": [],
                    "customLabel": "New subscriber"
                },
                "routerRoute": true,
                "routeLetter": "B",
                "routeIndex": 1,
                "stepID": "2-routerRoute_B",
                "nodeType": "routerRoute",
                "actionAppArgs": []
            },
            {
                "id": "5",
                "position": {
                    "x": 615,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Route Conditions",
                    "layoutDirection": "horizontal",
                    "stepNumber": 5,
                    "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": "{fluentcrm1.status}",
                                "condition": "equal_to",
                                "value": "subscribed"
                            }
                        ]
                    }
                },
                "application": "filter",
                "action": "continue_if",
                "nodeType": "step",
                "stepID": "5",
                "filterConditions": {
                    "filterConditions": {
                        "1": [
                            {
                                "key": "{fluentcrm1.status}",
                                "condition": "equal_to",
                                "value": "subscribed"
                            }
                        ]
                    }
                }
            },
            {
                "id": "6",
                "position": {
                    "x": 790,
                    "y": 112.5
                },
                "type": "action",
                "data": {
                    "label": "Send Welcome Message",
                    "layoutDirection": "horizontal",
                    "stepNumber": 6,
                    "app": {
                        "key": "wa_cloud_api",
                        "fm_app": "wa_cloud_api"
                    },
                    "eventSlug": "send_text_message",
                    "eventTitle": "Send Text Message"
                },
                "parentType": "step",
                "style": {
                    "transition": "all 150ms ease-in-out"
                },
                "measured": {
                    "width": 82,
                    "height": 82
                },
                "actionAppArgs": [],
                "application": "wa_cloud_api",
                "action": "send_text_message",
                "nodeType": "step",
                "stepID": "6"
            },
            {
                "id": "2_B_placeholder",
                "position": {
                    "x": 965,
                    "y": 112.5
                },
                "type": "placeholder",
                "data": {
                    "label": "+",
                    "layoutDirection": "horizontal",
                    "stepNumber": null,
                    "app": []
                },
                "measured": {
                    "width": 40,
                    "height": 82
                },
                "stepID": "2_B_placeholder",
                "nodeType": "placeholder",
                "actionAppArgs": []
            }
        ],
        "edges": [
            {
                "id": "e-1-2",
                "source": "1",
                "target": "2",
                "type": "step",
                "data": []
            },
            {
                "id": "e-2-2-routerSwitch",
                "source": "2",
                "target": "2-routerSwitch",
                "type": "router",
                "data": []
            },
            {
                "id": "e-2-routerSwitch-2-routerRoute_A",
                "source": "2-routerSwitch",
                "target": "2-routerRoute_A",
                "type": "router",
                "data": []
            },
            {
                "id": "e-2-routerRoute_A-3",
                "source": "2-routerRoute_A",
                "target": "3",
                "type": "router",
                "data": []
            },
            {
                "id": "e-3-4",
                "source": "3",
                "target": "4",
                "type": "step",
                "data": []
            },
            {
                "id": "e-4-2_A_placeholder",
                "source": "4",
                "target": "2_A_placeholder",
                "type": "placeholder",
                "data": []
            },
            {
                "id": "e-2-routerSwitch-2-routerRoute_B",
                "source": "2-routerSwitch",
                "target": "2-routerRoute_B",
                "type": "router",
                "data": []
            },
            {
                "id": "e-2-routerRoute_B-5",
                "source": "2-routerRoute_B",
                "target": "5",
                "type": "router",
                "data": []
            },
            {
                "id": "e-5-6",
                "source": "5",
                "target": "6",
                "type": "step",
                "data": []
            },
            {
                "id": "e-6-2_B_placeholder",
                "source": "6",
                "target": "2_B_placeholder",
                "type": "placeholder",
                "data": []
            }
        ]
    },
    "workflow_settings": {
        "name": "When a new contact is added to FluentCRM, conditionally send WhatsApp message to users using routers and WhatsApp Cloud API",
        "folder": "all",
        "description": "New FluentCRM contacts are routed by their attributes, then sent the right WhatsApp Cloud API message, so each segment gets a personalized welcome instantly.",
        "status": "off",
        "user_email": "",
        "webhook_queue": "disabled",
        "workflow_auth_key": "",
        "builder_version": "v2",
        "time": "",
        "ai_generated": "yes"
    }
}