Trigger an Email to Site Visitor (No CRM Contact Record)

I’m having trouble with
As far as I understand the best way to trigger an email to a site visitor who has no CRM contact is to use an automation triggered by Velo. If that is the cause, I cannot figure out how to make this work. I have installed @wix/automations but cannot figure out the correct import to use. Wix Support AI says it is import { runTrigger } from ‘wix-automations-backend’; but that is not recognized in editor whereas import { customTrigger } from@wix/automations’ is but I cannot get this to work.

Working in
Editor

Site link
If this is happening on a site, include a live or test site link

What I’m trying to do
End an email to a site visitor without a CRM contact.

What I’ve tried so far
30+ attempts trying to figure this out.

Extra context
Anything else that might help - edge cases, screenshots, etc.

I’d always recommend following the documentation - https://dev.wix.com/docs/sdk/backend-modules/automations/triggers/custom-trigger/run-trigger

The AI seems to be confusing the Velo modules and SDK, when you’re trying to use the SDK.

As a sidenote, even the “Send an email” automation action is going to need a contactID in the payload to send an email. Wix doesn’t support sending emails via code by simply providing an email address. If that’s the flow you need, you’ll likely need to look at using Sendgrid or a similar provider as the email sender :slight_smile:

if the user is filling out a form and adding an email then you could do an automation to create a contact and then send them an email. May suit what you are wanting

1 Like