# Workflows for Cashfree

Cashfree Workflows are designed to streamline your payment notifications by automating WhatsApp Messages for successful and failed payments. Here we'll explore setting up workflows for Payment Success and Payment Fail scenarios.

### Payment Success Alerts

To send the payment notifications automatically when a payment is captured, you will have to create a workflow under the Cashfree Integration with Gallabox. Let's delve into that.

1. Go to **Integration** on your Gallabox dashboard and from My Integration Section , choose the connection under the Cashfree Integration.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F9h5BFZ5s8msRKIjPhbc0%2FCashfree%20Workflows.gif?alt=media&#x26;token=0c145329-b4cf-49a1-a6e0-97695c04ca64" alt=""><figcaption></figcaption></figure>

2. Click the **Use** button next to **Payment Success Workflow** and select a **Message Template** to send to your customers after a successful payment. Map the appropriate **variables** for the template, and add a payload for the button if you want to trigger a bot in response. Click **Submit** to activate the Workflow.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F4p2bQSLLI1ZyX2m3j7AT%2FPayment%20Successful%20-%20Cashfree.gif?alt=media&#x26;token=520b9e03-2e86-4223-ae12-28c6d496077f" alt=""><figcaption></figcaption></figure>

***Great! Now you are good to go with the template.** Whenever you receive a payment, a message will be shared with the customers.*

### Payment Failed Alerts

To send the payment notifications automatically when a payment is failed, you will have to create a workflow under the Cashfree Integration with Gallabox. Let's delve into that.

1. Go to **Integration** on your Gallabox dashboard and from My Integration Section , choose the connection under the Cashfree Integration.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F9h5BFZ5s8msRKIjPhbc0%2FCashfree%20Workflows.gif?alt=media&#x26;token=0c145329-b4cf-49a1-a6e0-97695c04ca64" alt=""><figcaption></figcaption></figure>

2. Click the **Use** button next to **Payment Failed Workflow** and select a **Message Template** to send to your customers after a successful payment. Map the appropriate **variables** for the template, and add a payload for the button if you want to trigger a bot in response. Click **Submit** to activate the Workflow.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F8N7sqwNLsvl2HM5axTM0%2FPayment%20Workflow%20-%20Cashfree.gif?alt=media&#x26;token=44a4e166-dce4-470f-a6bb-bf301a264d94" alt=""><figcaption></figcaption></figure>

***Great! Now you are good to go with the template.** Whenever a payment is failed, a message will be shared with the customers.*

### Disable the Workflows

To disable the Cashfree Integration, simply toggle off the switch beside the desired workflow.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FwSKt8XWdOTKToVSc9O2V%2FDisable%20Workflow%20-%20Cashfree.gif?alt=media&#x26;token=834bc97b-ffe8-464e-95c4-9c339d324fab" alt=""><figcaption></figcaption></figure>
