# Connect Wix Using Generic Webhook

It offers a variety of customizable templates, apps, and advanced design features, making it ideal for both individuals and businesses.

Connecting Wix with BizMagnets enhances your website's functionality and boosts customer interactions with several key advantages:

* **Seamless Integration:** This integration ensures real-time data exchange, removing the need for manual data entry and enabling smoother operations.
* **Enhanced Customer Experience:** By linking Wix with BizMagnets, your website can offer immediate support and engagement features like chatbots or live chat, directly improving customer satisfaction and potentially increasing conversion rates.
* **Centralized Communication:** Manage all customer interactions from one platform, simplifying the monitoring, analysis, and response processes for more effective communication.
* **Data-Driven Insights:** Use powerful analytics and reporting tools to gain a deeper understanding of customer behavior and preferences, helping you make more informed decisions about your website content, services, and marketing strategies.

Integrating Wix with BizMagnets not only enhances the responsiveness of your website but also streamlines communication workflows, ensuring a more connected and efficient environment. Now, let's dive into how you can link your Wix account using Generic Webhooks!

## **Generating Webhook URL in Your BizMagnets Account**

1. Navigate to your BizMagnets Dashboard and click on *Integrations* in the left pane. Under Integrations, you’ll find *Generic Webhook*.
2. Click on it and assign a name to the integration, such as “Wix Integration.”
3. Choose the channel you want to use with Wix. The Webhook URL will be displayed here for use in the next steps.

## **Adding Webhook URL in Your Wix Account**

1. Go to your Wix Account and in the left-hand navigation bar, select *Automations*. Click on the *New Automation* button.
2. A pop-up will appear; click *Set Up* for the automation category you want to use. For clarity, select the “Thank visitors who submit a form” automation.
3. Another pop-up will appear, asking you to edit the automation. Click *Edit*, then choose the action *Send via Webhook*.
4. In the *Target URL* field, paste the Webhook URL generated in Step 1 (BizMagnets Webhook URL), and select “All Keys and Values.”
5. Finally, click *Activate* to complete the integration.

## **Testing the Webhook in Your BizMagnets Account**

1. Return to your BizMagnets tab and test the automation by clicking the *Capture Webhook Response* button.
2. After clicking the button in BizMagnets, switch to the tab where your website is open. Scroll down to the form, fill it out with test details, and submit the form. Once you hit *Submit*, the captured response will appear in your BizMagnets account. Click *Update Configuration*.
3. Ensure you have selected the correct channel before clicking the *Update Configuration* button.
4. If your Wix form doesn’t include a field to collect the WhatsApp number, a message will not be sent to the customer.
5. If both you and the customer are from India, make sure the phone number is entered with or without the country code (+91).
6. For international customers, always include the country code when asking for their phone number.

With this, you’ve successfully connected your Wix automation to BizMagnets. Now, let’s explore how to create a workflow in BizMagnets!

## **WhatsApp Message Workflow**

1. Click on *Create New Workflow* and enter a name for the Webhook.
2. You can customize the conditions for the workflow by selecting either *ALL* or *ANY*. If you select *ALL*, the workflow will trigger only if all conditions are met. If you select *ANY*, the workflow will trigger if just one condition is met.
3. To add conditions, click *+Add Conditions* and specify the fields for the Comparator, Operator, and Value.
4. To select the Comparator, go to the *Configuration* section under the Generic Webhook Integration and look for the fields that contain the data you want to set conditions on. For example:

   * `data.contact.name.first` holds the first name,
   * `data.field:comp-ku9urhdy` holds the Subject,
   * `data.field:comp-ku9urhe11` contains the message text that the customer submits.

   The fields on the left-hand side correspond to the data fields you've added to the form on your website.
5. For example, you might set conditions such as:

   * `data.field:comp-ku9urhdy` Is Not Empty
   * `data.field:comp-ku9urhe11` Is Not Empty

   This means the workflow will trigger and send a message to the customer if both the Subject and Description fields have data entered.
6. Click *Pick Template* and select from the pre-approved templates created and verified by META. After choosing the template, map the necessary variables like *Recipient Name* and *Recipient Number* to create the contact in BizMagnets.
7. For the message footer, map the variables for the webpages you want to direct the customer to through buttons.

By following these steps, you'll have a fully functional WhatsApp message workflow set up in BizMagnets!

{% hint style="info" %}
Please note that the variables you use will depend on the message template you have created.
{% endhint %}

If you want to trigger a sequence from BizMagnets or update contact details, click on *Action*. Edit the *Action Type* to "Update Contact Tags." Then, select the Contact Tag you’ve set up to trigger a sequence in BizMagnets.

For example, we've used the Contact Tag "Imp4380" and selected the operation as *"Add if Empty"*.

Once you've configured everything, click on *Create Workflow* to complete the integration.

After the integration is successful, you can view the log to see who received the messages under the *Generic Webhook Integration* section.
