> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/guides-and-best-practices/orchestration/how-to-alert-users-based-on-a-specific-date.md).

# How to alert users based on a specific date?

Batch allows you to automatically send a notification to users a few days before a specific date in the future.

This is useful to alert users when their voucher, subscription, loyalty points or credit card is about to expire. You can also use that kind of campaign to send travel reminders, appointments, and more:

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

## Pre-requisites

Batch only collects essential information on every installation (e.g. country, language, last visit date, etc).

Make sure you are sending all the additional data you need to manage your use cases. You can send custom data to Batch by tagging your app or sending data from your servers using the [Profile API](https://doc.batch.com/developer/api/cep/profiles).

You will find the list of the custom data received by Batch in **Data > Profile data**:

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

## 1. Targeting

Create a recurring automation, click **Add conditions** to select the attribute you will use to target the right users.

You can either use:

* **time in the future** to warn/remind users about a specific date coming up
* **time in the past** to remind users about a specific date in the past
* **time in the past occurred 0 days ago** to alert users on the D-day

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

{% hint style="warning" %}
You can add a retargeting condition for users who already opened the first alert but didn't renew their subscription or for users who haven't opened it yet to remind them to make a specific action. You can even include an exclusive discount and therefore prevent churn.
{% endhint %}

## 2. Timing

Ensure you set the **Frequency** to 1 per day :point\_down:

<figure><img src="/files/4yTStAIpFBhERYnpcvJz" alt=""><figcaption></figcaption></figure>

You won't need to set a capping for this type of automation, as this is important information and users should not trigger it often.

## 3. Message edition

Write your message by adding a title, a description and emojis.

You can even [personalize your notification](https://doc.batch.com/getting-started/features/customer-engagement-platform/message/personalization) based on the same custom data you are sending to Batch (e.g the first name, the number of loyalty points/miles/jackpot left). This will add more context to your message.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.batch.com/guides-and-best-practices/orchestration/how-to-alert-users-based-on-a-specific-date.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
