# Send Automated Reminders To Your Customers  

Create and send different types of reminders to your customers and end users about various topics. From seasonal sale, marketing campaigns, appointments to travel engagements, app launches, subscriptions, payment reminders and more. You can automate just about any reminder using [Moments](https://www.infobip.com/docs/moments) and [Events](https://www.infobip.com/docs/people/events) in [People](https://www.infobip.com/docs/people).

Additionally, you can use any communication channel your customers perfer.

This tutorial explains how to create an automated payment reminder using the Infobip web interface and API.

## Process Workflow

## IMPLEMENTATION STEPS
  
Essential for this setup are the Infobip API instructions (below) so that the information between your system and the Infobip platform can be exchanged and you are able to build the communication around it.
  
## Steps Over API
  
- Configure custom attributes on our web interface: **People** module > **CONFIGURE** > **CREATE CUSTOM ATTRIBUTE**.  
  
One custom attribute in this scenario is *Due Date*where value is *Date*, and the other one *Amount Due*where value is *Decimal Number*. You will need them for communication between your CRM and the Infobip platform.

The next step is to integrate [People API](https://www.infobip.com/docs/api/customer-engagement/people/update-a-person) with your CRM to be able to use the payment due dates stored inside your CRM and send them via our platform.

- To get informed when and if the customer made a payment after they received a message about the upcoming due date, [follow our API specification](https://www.infobip.com/docs/api/customer-engagement/people/send-custom-event) and use these:

{{personId}} - unique person identifier (email, pushRegId, phone) inside the [ **People**](https://www.infobip.com/docs/people) module.
  
{{definitionId}} - definition ID from the [Event Definition](https://www.infobip.com/docs/people) page. You need to create a *Payment Complete* event on our web interface: **People** > **Events** > **New Event Definition**to track if users have made the payment.
  
{{AppKey}} - API Key from the **Settings** page on our web interface.
  
{{Your personal Base URL}} - base URL you can get after logging in.

## Steps Over Web Interface
  
After you are done with the integration steps from the previous section, you will be ready to start building your Flow!

1. On the [Infobip web interface](https://portal.infobip.com/homepage/), go to the **Moments** module, select **CREATE FLOW** > **Start from Scratch** > **Date/Time** trigger.
2. Click the trigger and on the side panel select the *Due Date* attribute that you have set up previously and then select *Is In* *3 days* because that's when the payment should be made.

3. Send an SMS to inform the customer the due date is coming soon.
    IMPORTANT NOTE
On the SMS side-panel, you can set the time and date inside the [Delivery Time Window](https://www.infobip.com/docs/moments/flow-elements/channels#delivery-time-window-channel-options).

4. Add **Wait for an event** element and *Payment Complete* (this is an event you created earlier in this use case), so you can continue this communication based on customer actions.
    Set *specific wait time* to 4 days because your first message was 3 days before the due date and you plan to send another reminder one day after the due date.

5. If the customer makes the payment, they will receive a*thank you*SMS which will be triggered immediately. If they miss the due date (**If none matched** branch), another reminder will be sent a day later.
    Select a placeholder (curly brackets icon) to automatically include in the SMS the information about the amount due. You are able to include this information because you have set up the *Amount Due* custom attribute at the beginning of this use case.

6. Click **VALIDATE** and **LAUNCH**!