# Connect Contact Form 7 Using Generic Webhook

Integrating [Contact Form 7](https://en-ca.wordpress.org/plugins/contact-form-7/) with BizMagnets enhances your customer communication capabilities and provides numerous benefits, including:

* **Automated Responses**: Instantly send automated replies to form submissions.
* **Lead Management**: Effortlessly categorize and manage leads generated through form submissions within BizMagnets.
* **Automated Follow-ups**: Configure a sequence of WhatsApp messages for new leads, helping you nurture them into paying customers.
* **AI Shopping Assistant**: Trigger a chatbot to act as a personalized shopping assistant based on customer responses, providing a customized shopping experience.
* **Collaboration and Analytics**: Collaborate with your team effectively on form submission data and leverage BizMagnets’ analytics tools for actionable insights.

Connecting Contact Form 7 with BizMagnets simplifies form submission management while significantly improving the efficiency and functionality of your customer engagement strategies.

## **Install Contact Form 7 Plugin**

1. Go to your WordPress Dashboard.
2. Navigate to **Plugins > Add New**.
3. Search for **Contact Form 7**, then click **Install** and **Activate**.
4. Once installed, a new menu titled **Contact** will appear in your dashboard.

## **Install the CF7 to Webhooks Plugin**

1. From your WordPress Dashboard, go to **Plugins > Add New**.
2. Search for **CF7 to Webhooks**, then click **Install** and **Activate**.

## **Connect Contact Form 7 with BizMagnets**

1. Select **Integrations f**rom the left navigation menu in to your BizMagnets account.
2. Under **Available Integrations**, choose **Generic Webhooks** and click **Connect**. Enter a name for the webhook (e.g., *Contact Form 7 Integration*) and click **Submit**.
3. A Webhook URL will be generated. Select the desired **WhatsApp Channel** (WhatsApp Number) for sending messages.
4. Copy the Webhook URL generated in BizMagnets. Open your WordPress Dashboard in a separate browser tab. Navigate to **Contact > Contact Forms**.
5. Select the desired form you want to connect with BizMagnets and click **Edit**. Once the form editor opens, click on **Webhooks**.

{% hint style="danger" %}
If the form does not include a field for collecting the customer’s WhatsApp number, add one to ensure WhatsApp messages can be sent.

* **For India**: Ensure the phone number is either entered with the country code (+91) or without it.
* **For International Customers**: The phone number must include the country code.
  {% endhint %}

6. To activate the webhook, check the box to enable **Integrate with Webhook**.cPaste the Webhook URL copied from BizMagnets in the provided field.
7. Click **Save** to complete the setup.

By following these steps, you can seamlessly integrate Contact Form 7 with BizMagnets to enhance your customer communication and automate WhatsApp messages for form submissions.

## **Testing the Integrated Webhook**

Once you have added the Webhook URL, it is important to verify if the Webhook is functioning correctly. BizMagnets provides an option to test the Webhook integration. Follow these steps:

1. Go to the **Generic Webhook Configuration** page in your BizMagnets account. Click the **Capture Webhook** button.
2. Open your website where the Contact Form 7 is embedded. Fill out the form and submit it.
3. Return to the BizMagnets tab, and you should see the response captured. This indicates that the Webhook is working properly.
4. Click **Update Configuration** to start creating workflows for sending WhatsApp messages.

## **Creating Workflows for Contact Form 7**

After updating the Webhook configuration, you will be redirected to the **Workflows** page.

1. Click on **Create New Workflow**. Provide a name for the workflow and set any conditions, if required.
2. Select the WhatsApp Template you want to use. Map the variables to personalize the WhatsApp messages.
3. Choose an action:
   * **Add a Tag**: Enroll contacts in a sequence for follow-ups.
   * **Update Marketing Opt-In**: Update the contact's marketing preferences.
4. Click **Create Workflow** to save your settings.

## **Final Testing**

1. Go back to your website where the Contact Form 7 is located. Fill out and submit the form again.
2. This time, you should receive an automated WhatsApp message.
3. Check the logs in BizMagnets to confirm that the message was sent successfully.
