async function query(data) {
    const response = await fetch(
        "https://flowise-production-df38.up.railway.app/api/v1/prediction/055c7d2f-e9f9-4df3-9570-8f28165b13f0",
        {
            method: "POST",
            headers: {
                "Content-Type": "application/json"
            },
            body: JSON.stringify(data)
        }
    );
    const result = await response.json();
    return result;
}

query({"question": "Hey, how are you?"}).then((response) => {
    console.log(response);
});

<script type="module">
    import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
    Chatbot.init({
        chatflowid: "055c7d2f-e9f9-4df3-9570-8f28165b13f0",
        apiHost: "https://flowise-production-df38.up.railway.app",
    })
</script>
<flowise-fullchatbot></flowise-fullchatbot>
<script type="module">
    import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
    Chatbot.initFull({
        chatflowid: "055c7d2f-e9f9-4df3-9570-8f28165b13f0",
        apiHost: "https://flowise-production-df38.up.railway.app",
    })
</script>