       addMessage('This is a bot response.', 'bot');
                }, 1000);
            }
        }

        function addMessage(text, sender) {
            var chatBody = document.getElementById('chatBody');
            var messageDiv = document.createElement('div');
            messageDiv.className = 'message ' + sender;

            var avatarDiv = document.createElement('div');
            avatarDiv.className = 'avatar ' + sender;

            var contentDiv = document.createElement('div');
         