Contact

Let's talk

We're here to help

Fill in the form and we'll get back to you at the email address you provide.

By submitting, you agree to our Privacy Policy. We'll never share your info without permission.

Let your ideas take flight!

Get started for free
`; const payload = { email: emailValue, subject: subjectValue, html_body: htmlBody, text_body: fieldLines .map((f) => `${f.label}: ${f.value}`) .join("\n"), json_body: Object.fromEntries( fieldLines.map((f) => [ f.label.toLowerCase().replace(/\s+/g, "_"), f.value, ]), ), }; const res = await fetch("/api/v1/contact-form/submit", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload), }); if (!res.ok) { const data = await res.json().catch(() => ({})); throw new Error(data?.message || "Submission failed"); } form.reset(); setAlert("success", true); lucide.createIcons(); } catch (err) { errorTextEl.textContent = err.message || "Something went wrong. Please try again or email us directly at sales@kite.ai."; setAlert("error", true); } finally { submitBtn.disabled = false; btnText.textContent = "Send message"; } }); })();