{
    "flow": {
        "onboarding": {
            "$contentActions": [
                {
                    "input": {
                        "bypass": false,
                        "$cardContent": {
                            "document": {
                                "id": "df28333f-d509-4c3f-acd7-6d4801130bae",
                                "type": "text/plain",
                                "content": "Entrada do usuário"
                            },
                            "editable": false,
                            "deletable": false,
                            "position": "right",
                            "editing": false
                        },
                        "$invalid": false
                    },
                    "$invalid": false
                }
            ],
            "$conditionOutputs": [
                {
                    "stateId": "welcome",
                    "conditions": [
                        {
                            "source": "input",
                            "comparison": "matches",
                            "values": [
                                ".*"
                            ]
                        }
                    ],
                    "$id": "67e8d9a7-6d97-4aa5-b3dd-75afa923295b",
                    "$connId": "con_3",
                    "$invalid": false
                }
            ],
            "$enteringCustomActions": [],
            "$leavingCustomActions": [],
            "$inputSuggestions": [],
            "$defaultOutput": {
                "stateId": "fallback",
                "$invalid": false
            },
            "isAiGenerated": false,
            "$tags": [],
            "id": "onboarding",
            "root": true,
            "$title": "Início",
            "$position": {
                "top": "120px",
                "left": "644px"
            },
            "$invalidContentActions": false,
            "$invalidOutputs": false,
            "$invalidCustomActions": false,
            "$invalid": false
        },
        "fallback": {
            "$contentActions": [
                {
                    "input": {
                        "bypass": true,
                        "$cardContent": {
                            "document": {
                                "id": "72829bcb-49a0-4a88-b0e3-898db393e89b",
                                "type": "text/plain"
                            },
                            "editable": false,
                            "deletable": true,
                            "position": "right",
                            "editing": false
                        },
                        "$invalid": false
                    },
                    "$invalid": false
                }
            ],
            "$conditionOutputs": [
                {
                    "stateId": "error",
                    "conditions": [
                        {
                            "source": "input",
                            "comparison": "matches",
                            "values": [
                                ".*"
                            ]
                        }
                    ],
                    "$id": "9ec2a4ca-437b-4daf-8eec-9274719fc8ca",
                    "$connId": "con_8",
                    "$invalid": false
                }
            ],
            "$enteringCustomActions": [],
            "$leavingCustomActions": [],
            "$inputSuggestions": [],
            "$defaultOutput": {
                "stateId": "onboarding",
                "$invalid": false
            },
            "isAiGenerated": false,
            "$tags": [],
            "id": "fallback",
            "$title": "Exceções",
            "$position": {
                "top": "120px",
                "left": "877px"
            },
            "$invalidContentActions": false,
            "$invalidOutputs": false,
            "$invalidCustomActions": false,
            "$invalid": false
        },
        "welcome": {
            "$contentActions": [
                {
                    "action": {
                        "$id": "22967764-ad51-40d1-a2b0-e3943011d2ef",
                        "$typeOfContent": "",
                        "type": "SendMessage",
                        "settings": {
                            "id": "00000000-0000-0000-0000-000000000000",
                            "type": "application/vnd.lime.chatstate+json",
                            "content": {
                                "state": "composing",
                                "interval": 1000
                            }
                        },
                        "$cardContent": {
                            "document": {
                                "id": "00000000-0000-0000-0000-000000000000",
                                "type": "application/vnd.lime.chatstate+json",
                                "content": {
                                    "state": "composing",
                                    "interval": 1000
                                }
                            },
                            "editable": true,
                            "deletable": true,
                            "position": "left",
                            "editing": false
                        }
                    },
                    "$invalid": false
                },
                {
                    "action": {
                        "$id": "5ca9ba08-0048-40ce-a544-5221b50f7f1c",
                        "$typeOfContent": "",
                        "type": "SendMessage",
                        "settings": {
                            "id": "00000000-0000-0000-0000-000000000001",
                            "type": "text/plain",
                            "content": "Olá! {{contact.name}}!\nSeja bem-vindo(a)!"
                        },
                        "$cardContent": {
                            "document": {
                                "id": "00000000-0000-0000-0000-000000000001",
                                "type": "text/plain",
                                "content": "Olá! {{contact.name}}!\nSeja bem-vindo(a)!"
                            },
                            "editable": true,
                            "deletable": true,
                            "position": "left",
                            "editing": false
                        }
                    },
                    "$invalid": false
                },
                {
                    "input": {
                        "bypass": false,
                        "$cardContent": {
                            "document": {
                                "id": "948d958a-6a12-4c1a-afff-5a9603aae18a",
                                "type": "text/plain",
                                "content": "Entrada do usuário"
                            },
                            "editable": false,
                            "deletable": true,
                            "position": "right",
                            "editing": false
                        },
                        "$invalid": false
                    },
                    "$invalid": false
                }
            ],
            "$conditionOutputs": [
                {
                    "stateId": "b05302f5-f83f-403c-8984-42bd65f4fdb3",
                    "typeOfStateId": "state",
                    "$connId": "con_13",
                    "$id": "518749f0-73bb-46c2-b761-06ebadd680fa",
                    "conditions": [
                        {
                            "source": "input",
                            "comparison": "exists",
                            "values": []
                        }
                    ],
                    "$invalid": false
                }
            ],
            "$enteringCustomActions": [],
            "$leavingCustomActions": [],
            "$inputSuggestions": [],
            "$defaultOutput": {
                "stateId": "fallback",
                "$invalid": false
            },
            "isAiGenerated": false,
            "$tags": [],
            "id": "welcome",
            "$title": "Boas vindas",
            "$position": {
                "top": "240px",
                "left": "644px"
            },
            "$invalidContentActions": false,
            "$invalidOutputs": false,
            "$invalidCustomActions": false,
            "$invalid": false
        },
        "error": {
            "$contentActions": [
                {
                    "action": {
                        "$id": "7c7727ba-be7c-4e1f-b479-31c7a254ad98",
                        "$typeOfContent": "",
                        "type": "SendMessage",
                        "settings": {
                            "id": "00000000-0000-0000-0000-000000000002",
                            "type": "application/vnd.lime.chatstate+json",
                            "content": {
                                "state": "composing",
                                "interval": 1000
                            }
                        },
                        "$cardContent": {
                            "document": {
                                "id": "00000000-0000-0000-0000-000000000002",
                                "type": "application/vnd.lime.chatstate+json",
                                "content": {
                                    "state": "composing",
                                    "interval": 1000
                                }
                            },
                            "editable": true,
                            "deletable": true,
                            "position": "left",
                            "editing": false
                        }
                    },
                    "$invalid": false
                },
                {
                    "action": {
                        "$id": "35747082-e35e-46d7-92de-d8c29ce75cc7",
                        "$typeOfContent": "",
                        "type": "SendMessage",
                        "settings": {
                            "id": "00000000-0000-0000-0000-000000000003",
                            "type": "text/plain",
                            "content": "Desculpe, não consegui entender!"
                        },
                        "$cardContent": {
                            "document": {
                                "id": "00000000-0000-0000-0000-000000000003",
                                "type": "text/plain",
                                "content": "Desculpe, não consegui entender!"
                            },
                            "editable": true,
                            "deletable": true,
                            "position": "left",
                            "editing": false
                        }
                    },
                    "$invalid": false
                },
                {
                    "input": {
                        "bypass": true,
                        "$cardContent": {
                            "document": {
                                "id": "e801443b-4436-4d99-adf1-2d59b70a3a54",
                                "type": "text/plain"
                            },
                            "editable": false,
                            "deletable": true,
                            "position": "right",
                            "editing": false
                        },
                        "$invalid": false
                    },
                    "$invalid": false
                }
            ],
            "$conditionOutputs": [],
            "$enteringCustomActions": [],
            "$leavingCustomActions": [],
            "$inputSuggestions": [],
            "$defaultOutput": {
                "stateId": "onboarding",
                "$invalid": false
            },
            "isAiGenerated": false,
            "$tags": [],
            "id": "error",
            "$title": "Erro padrão",
            "$position": {
                "top": "240px",
                "left": "877px"
            },
            "$invalidContentActions": false,
            "$invalidOutputs": false,
            "$invalidCustomActions": false,
            "$invalid": false
        },
        "b05302f5-f83f-403c-8984-42bd65f4fdb3": {
            "$contentActions": [
                {
                    "input": {
                        "bypass": true,
                        "$cardContent": {
                            "document": {
                                "id": "0de8ccf2-e51f-47a2-81ac-b4d3ebcb2dcf",
                                "type": "text/plain",
                                "textContent": "Entrada do usuário",
                                "content": "Entrada do usuário"
                            },
                            "editable": false,
                            "deletable": true,
                            "position": "right",
                            "editing": false
                        },
                        "$invalid": false
                    },
                    "$invalid": false,
                    "$$hashKey": "object:813"
                }
            ],
            "$conditionOutputs": [],
            "$enteringCustomActions": [
                {
                    "$id": "27a61707-69c2-4bf5-8e0d-23c5113b3d5e",
                    "$typeOfContent": "",
                    "type": "ExecuteScript",
                    "$title": "Set skpRedirectContent",
                    "$invalid": false,
                    "settings": {
                        "function": "run",
                        "source": "function run(inputContent, inputType, serviceName, parentServiceName) {\n  return {\n        \"origin\": serviceName,\n        \"flow\": parentServiceName,\n        \"input\": {\n            \"content\": inputContent,\n            \"type\": inputType\n        } \n    };\n};",
                        "inputVariables": [
                            "input.content",
                            "input.type",
                            "config.serviceName",
                            "config.parentServiceName"
                        ],
                        "outputVariable": "skpRedirectContent",
                        "LocalTimeZoneEnabled": false
                    },
                    "conditions": []
                },
                {
                    "$id": "9e2830e3-5e5c-46a2-8307-27c5bfa29347",
                    "$typeOfContent": "",
                    "type": "Redirect",
                    "$title": "Redirect \"skpParentServiceName\"",
                    "$invalid": false,
                    "settings": {
                        "context": {
                            "type": "text/plain",
                            "value": "{{skpRedirectContent}}"
                        },
                        "address": "{{config.parentServiceName}}"
                    },
                    "conditions": []
                }
            ],
            "$leavingCustomActions": [],
            "$inputSuggestions": [],
            "$defaultOutput": {
                "stateId": "onboarding",
                "$invalid": false,
                "typeOfStateId": "state"
            },
            "isAiGenerated": false,
            "$tags": [],
            "id": "b05302f5-f83f-403c-8984-42bd65f4fdb3",
            "root": false,
            "$title": "[Redirect] Employee",
            "$position": {
                "top": "374px",
                "left": "644px"
            },
            "$invalidContentActions": false,
            "$invalidOutputs": false,
            "$invalidCustomActions": false,
            "$invalid": false
        }
    },
    "globalActions": {
        "$contentActions": [],
        "$conditionOutputs": [],
        "$enteringCustomActions": [],
        "$leavingCustomActions": [],
        "$inputSuggestions": [],
        "$defaultOutput": {
            "stateId": "fallback",
            "$invalid": false
        },
        "isAiGenerated": false,
        "$tags": [],
        "id": "global-actions",
        "$invalidContentActions": false,
        "$invalidOutputs": false,
        "$invalidCustomActions": false,
        "$invalid": false
    }
}