# 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="/files/kZF84tIu7YgNI7sdC08L" 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="/files/7kjigwlqDf7rOV1b9t5Z" 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="/files/kZF84tIu7YgNI7sdC08L" 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="/files/xiFIPXjIoPBWLEkcNOqr" 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="/files/FVeb9NmpGHmb6K7sZTvE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gallabox.com/integration/payment-gateways/cashfree/workflows-for-cashfree.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
