This demo shows you how to use JavaScript API ZChat_SetUserName method to pass the user key to agent console. Current user key is: {=/Controller/CurrentUserKey}. If you have specified "Custom User Profile URL" in the "Integration Settings" page, so chat can open the user profile page of your site based on this user key.