> For the complete documentation index, see [llms.txt](https://docs.bizmagnets.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bizmagnets.ai/integration/additional-integrations/generic-webhooks/generic-webhook-workflows.md).

# Generic Webhook Workflows

## **Creating a New Workflow**

Follow the simple steps listed below to create a new Generic Webhook Workflow with BizMagnets:

1. Navigate to **Integration** on your BizMagnets dashboard. Click on the integrated Generic Webhook application and select **Workflow**.

<figure><img src="/files/L1Vk4Irn9Vg7qETRLOp8" alt=""><figcaption></figcaption></figure>

2. Click **Create New Workflow**. The workflow page will open.

<figure><img src="/files/1ze4osy4ltGo28a8RKG7" alt=""><figcaption></figcaption></figure>

3. Enter the **Workflow Name**. This name helps identify the specific workflow for managing and automating WhatsApp messages.
4. **Conditions** are optional, and you can add up to a maximum of three conditions. Workflows allow you to define conditions that trigger specific actions. The conditions are set based on data received from the webhook response.

<figure><img src="/files/yUSJkqW8icbWmRJ76rNG" alt=""><figcaption></figcaption></figure>

* **MATCHES**: This dropdown allows you to choose how the conditions should be matched.

<figure><img src="/files/jv0YewlMGD7ur8mMdRoV" alt=""><figcaption></figcaption></figure>

* **Comparator**: You can match it against specific values or fields in the incoming data.

<figure><img src="/files/xe4zlLtveY8CGOXeQEkP" alt=""><figcaption></figcaption></figure>

* **Operator**: If this condition is met, it will trigger the next defined action.

<figure><img src="/files/OiI0wV27Sx1jSsoJ9fPl" alt=""><figcaption></figcaption></figure>

You can add additional conditions to further refine the trigger logic for the workflow. For example, you may want to check multiple parameters (e.g., phone and email) before sending a message.

5. After setting the conditions, you can specify which message template should be sent when the conditions are met.&#x20;

<figure><img src="/files/ZePobVObFDilE90stHkw" alt=""><figcaption></figcaption></figure>

6. **Actions** are tasks that occur after the conditions are met. You can also add other actions as needed (such as updating a database, triggering other workflows, etc.).

<figure><img src="/files/GkWiHm13Se62BmJPPFr1" alt=""><figcaption></figcaption></figure>

## **How It Works**

* Webhook Workflows automate the process of sending messages via WhatsApp based on specific conditions tied to incoming data from a webhook.
* For instance, if a phone number is missing, message will be sent to the recipient.
* This setup is useful for automating customer interactions, like sending exam details, reminders, or confirmations, based on dynamic user data received via webhooks.

## **Why It's Useful**

* It allows for automated, customized responses based on real-time data.
* It integrates seamlessly with external systems or applications that send webhook data, enabling efficient and dynamic message delivery through WhatsApp.
* With conditions, you can fine-tune when and how messages are sent, ensuring better customer interaction and engagement.

This functionality is a powerful tool for automating business workflows and ensuring that WhatsApp messages are sent to the right users at the right time based on specific criteria.
