t = "Cannot connect to port 1111";
      }
    });

// Send a question to the chatbot and display the response
async function askQuestion(question) {
  try {
    const id = flowise.value
    const url = `https://api.chaindesk.ai/agents/query/${id}`;
    const response = await fetch(url, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer 5315cd7b-bb79-49bc-bca2-8bcc7b243504'
      },
      body: JSON.stringify({ query: question