Adjust the Surveys and Lead Form Settings for your Live Chat box.
Navigate to Live Chat → Settings → Surveys and Lead Forms.
Enable this feature by checking the enable box.
More about Creating Surveys