Click the "lightning" icon under the chat box, then click "Open a ticket"
If you don't see the icon, you can alternatively type /ticket
/ticket