The pre-chat form can be used to collect details from the users such as name, email, etc before the chat begins. Checkout this support article for more information.