import { sendOpenAILead } from 'backend/openaiConversions'; // OLD WIX FORMS export async function wixCrm_onFormSubmit(event) { try { const formId = event?.formId || ""; const contactId = event?.contactId || ""; const eventId = contactId ? `wix_oldform_${contactId}_${Date.now()}` : `wix_oldform_${formId}_${Date.now()}`; const result = await sendOpenAILead({ eventId, sourceUrl: "" }); console.log("OpenAI old Wix form conversion:", result); } catch (error) { console.error("OpenAI old Wix form event error:", error); } } // NEW WIX FORMS V2 export async function wixForms_onSubmissionCreated(event) { try { const submissionId = event?.entity?._id || event?.metadata?.entityId || ""; const formId = event?.entity?.formId || ""; const eventId = submissionId ? `wix_form_${submissionId}` : `wix_form_${formId}_${Date.now()}`; const result = await sendOpenAILead({ eventId, sourceUrl: "" }); console.log("OpenAI Wix Forms V2 conversion:", result); } catch (error) { console.error("OpenAI Wix Forms V2 event error:", error); } }
top of page
Request Submitted

ATIQUR TILOK

Your request has been received and our team is reviewing your quote now. To make the right adjustments, we’ll need to connect with you briefly. We will reach out promptly during normal business hours.

Get an Adjustment

ATIQUR TILOK

Need a change to your quote? If you'd like us to review pricing, scope, or details, click below and we'll take another look.

bottom of page