ent.getElementById('chatInput').addEventListener('keypress', function(event) {
            if (event.key === 'Enter') {
                sendMessage();
            }
        });

        function sendMessage() {
            var inputField = document.getElementById('chatInput');
            var messageText = inputField.value.trim();
            if (messageText !== '') {
                addMessage(messageText, 'user');
                inputField.value = '';
                setTimeout(function() {
             