{
    "op": "get_tree_structure",
    "tree": {
        "tree_id": "815089605",
        "tree_name": "Agent Script - Set Appointment",
        "description": "This demo shows an example of how to script a maintenance appointment.",
        "root_node_id": "1",
        "org_id": "49116",
        "nodes": [
            {
                "node_id": "1",
                "type": "Content",
                "page_title": "Welcome",
                "question": "Would you like to schedule a time for a technician to come out in the next week?",
                "keywords": "",
                "success": "?",
                "content": "<p>This is Sheryl with Acme Water Systems. I see in my system you are due for routine maintenance for your water filtration system.<\/p>",
                "tags": "",
                "open_tree_id": "0",
                "buttons": [
                    {
                        "button_text": ".btn-green.btn-yes Yes",
                        "button_link": "2"
                    },
                    {
                        "button_text": ".btn-red.btn-no No",
                        "button_link": "3"
                    }
                ]
            },
            {
                "node_id": "2",
                "type": "Content",
                "page_title": "Schedule an Appointment",
                "question": "",
                "keywords": "",
                "success": "Y",
                "content": "<p>That\u0027s great. Let me enter you into our scheduling system.<\/p><p><a href=\"#\">Go to scheduling system<\/a><\/p>",
                "tags": "",
                "open_tree_id": "0",
                "buttons": []
            },
            {
                "node_id": "3",
                "type": "Content",
                "page_title": "No",
                "question": "Do you have time in the next TWO weeks for a technician to come out?",
                "keywords": "",
                "success": "N",
                "content": "",
                "tags": "",
                "open_tree_id": "0",
                "buttons": [
                    {
                        "button_text": ".btn-green.btn-yes Yes",
                        "button_link": "2"
                    },
                    {
                        "button_text": ".btn-red.btn-no No",
                        "button_link": "4"
                    }
                ]
            },
            {
                "node_id": "4",
                "type": "Content",
                "page_title": "2nd No",
                "question": "Are you sure you don&apos;t want to schedule a visit?",
                "keywords": "",
                "success": "N",
                "content": "If we do not service your filtration system in the next 4 weeks, we cannot guarantee the quality of the water coming out of your system.&nbsp;",
                "tags": "",
                "open_tree_id": "0",
                "buttons": [
                    {
                        "button_text": ".btn-thumbs-up.btn-green Schedule an Appointment",
                        "button_link": "2"
                    },
                    {
                        "button_text": ".btn-thumbs-down.btn-red I&apos;m Sure",
                        "button_link": "5"
                    }
                ]
            },
            {
                "node_id": "5",
                "type": "Content",
                "page_title": "Thanks anyway",
                "question": "",
                "keywords": "",
                "success": "N",
                "content": "<p>OK, thank you for your time. Please let us know if you change your mind.<\/p>\r\n<p><a href=\"#\">Mark as refused service in the system.<\/a><\/p>",
                "tags": "",
                "open_tree_id": "0",
                "buttons": []
            }
        ]
    }
}