# 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.


---

# 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.bizmagnets.ai/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.
