se.json())
        .then(data => {
            loadingText.style.display = "none";

            const aiBubble = document.createElement("div");
            aiBubble.classList.add("chat-bubble", "response-message");
            aiBubble.innerHTML = `<p>${data.response}</p>`;
            chatContainer.appendChild(aiBubble);

            conversationContextElement.value = data.conversationContext;

            chatContainer.scrollTop = chatContainer.scrollHeight;
        })
        .catch(error => {
          