Abandoned Cart Recovery

Set Up Wix Automation

  1. Go to Automations in the Wix Dashboard and then click on Create Automation.

  2. Select the automation you want to trigger (e.g., Cart Abandonment)

  3. Add a Velo Code Action and add a .js file containing the following code:

Note:🔧 Changes to Make After Copy-Pasting the Code

  1. Update the Secret Name

In this line:

replace 'MERCURI_MESSAGING_API_KEY' with the Secret Name you created in Wix Secret Manager.

  1. Add Your Phone Number ID

  • Replace "xxxxxxxxxxxxxxxxxxx" corresponding to phoneNumberId in the code with the Phone Number ID you copied from the Mercuri Dashboard.

  1. Add Your Template ID

  • Replace "xxxxxxxxxxxxxxxxxxx" corresponding to templateId with the Template ID you copied from the Mercuri Dashboard.

Please click on this link to view the instructions for locating the Phone Number ID and Template ID.

The parameters array will automatically map values from the Wix automation payload to your template fields, such as firstName, lastName, and recipient.

Final Steps

  1. After uploading the Velo code, save your changes.

  2. Activate the automation in Wix.

  3. Optionally, test with a sample contact to ensure the messages are sent correctly.

Once these steps are completed, you have successfully set up Wix Automation to send WhatsApp messages using the Mercuri API.

Last updated