# 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="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FH2ZBwoyVQzkceXTWR9ij%2FScreenshot%202024-11-13%20172525.png?alt=media&#x26;token=0272a4ca-d937-4952-b87c-35b610f221b8" 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="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FSRoz8Y8RTUhKhcghHChO%2FScreenshot%202024-11-13%20172547.png?alt=media&#x26;token=1cae34f0-97e6-4bf0-b7f0-17051db8306b" 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.
