> 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/payment-gateways/cashfree/workflows-for-cashfree.md).

# Workflows for Cashfree

Cashfree Workflows allow you to automate payment notifications through WhatsApp for both successful and failed transactions. Here’s how to set up workflows for these scenarios.

## **Payment Success Alerts**

To automatically send notifications when a payment is successfully captured, create a workflow under the Cashfree Integration in BizMagnets.

1. Go to **Integration** in your BizMagnets dashboard and select the connection under **Cashfree Integration** in the **My Integration** section.
2. Click the **Use** button next to the **Payment Success Workflow**.

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

3. Choose the **Message Template** you wish to send to customers after a successful payment.
4. Map the necessary variables for the template, and if needed, add a payload to trigger a bot response.
5. Click **Submit** to activate the workflow.

Now, your customers will automatically receive payment success notifications!

## **Payment Failed Alerts**

To automatically send notifications when a payment fails, you need to set up a workflow under the Cashfree Integration in BizMagnets.

1. Go to **Integration** in your BizMagnets dashboard and select the connection under **Cashfree Integration** in the **My Integration** section.
2. Click the **Use** button next to the **Payment Failed Workflow**.

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

3. Choose the **Message Template** to send to your customers when a payment fails.
4. Map the relevant variables for the template, and add a payload to trigger a bot response if desired.
5. Click **Submit** to activate the workflow.
