Review Your Cart
0
Add Coupon Code
Subtotal

 
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("fluentform_submission_success", function (event) { const resultBox = document.getElementById("gpt-response"); if (!resultBox) { console.warn("No #gpt-response element found"); return; } resultBox.innerHTML = "⏳ Generating your strategy setup..."; const formData = event.detail.data; fetch("https://epiq.app.n8n.cloud/webhook/epiq-trading-ai", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(formData) }) .then((res) => res.text()) .then((text) => { const formatted = text.replace(/\n/g, "
"); resultBox.innerHTML = `📈 EPIQ Trade Setup:
${formatted}`; }) .catch((err) => { console.error("Webhook fetch error:", err); resultBox.innerHTML = "❌ Failed to load strategy. Please try again."; }); }); });