# Retention scenarios: automatic 'condition → action' messages

> How to set up a retention scenario: condition, filters, actions (message, promo code, task, smart call), audience check, test run, log and conversion.

- URL: https://gyms-crm.com/en/docs/contact-center/retention-scenarios/
- Language: en
- Updated: 2026-11-16
- Site: GYMS-CRM (https://gyms-crm.com/)

Documentation menu

How to set up a retention scenario: condition, filters, actions (message, promo code, task, smart call), audience check, test run, log and conversion.

Updated Nov 16, 2026About 14 minIntermediate

For roles:OwnerManager

**Screen overview in words**

What this page covers: What a scenario is · Condition and filters · Actions · Check and test · Log and results

A retention scenario works by the rule "if this happens to a client, do that". For example: the client has not visited for fourteen days, send them the message "We miss you".

The builder has three parts. "When it fires": you choose an event and type the numbers right into the sentence. "Who exactly": optional filters by location, membership, segment and age. "What to do": a message, a personal promo code, a task for the administrator or a smart call. There can be up to ten actions.

Everything is off until you enable the scenario. Before that look at "How many clients right now": how many match the condition and how many will get the message. Then do a test run on yourself.

The system does not send twice in one period, does not write at night and does not exceed the daily limit. Only clients who gave consent receive marketing actions. The log shows who got what, and the statistics show the conversion.

**On this page**

Where to find it:Main menuCommunicationsScenariosaddress: `/automations`

In the menu the item is called "Scenarios", and the page heading is "Retention scenarios".

Who this is for: the owner, the manager and the marketer who set up automatic messages. The administrator receives the result as tasks.

## Why scenarios

A client stops coming quietly: nobody calls until the membership has ended. A retention scenario does this work by itself. It checks clients, and when it finds the right one it sends a message, issues a personal promo code, sets a task for the administrator or starts a smart call.

A scenario runs once per client per period: per episode of inactivity, per membership, once a year for a birthday. A repeat check duplicates nothing.

Everything is off by default

Neither new scenarios nor ready-made templates do anything until you enable a particular scenario.

## What is on the screen

The section has three tabs: Scenarios, Execution log, Runs.

### The scenario list

- Cards with the sentence "If … → …", an "Enabled" switch, the counter "Executed: N" and "Last: …"
- Marks "Template", "Marketing", "Needs setup"
- Filters "All", "Enabled", "Disabled" and a search by name or condition
- Actions: "Edit", "Duplicate", "Test run", "Delete"

### Buttons at the top

- New scenario
- Check now: runs all enabled scenarios at once, outside the schedule

The list already holds four disabled templates: "Return after 14 days" (a message to those who have not come for 14 days, not more often than once in 30 days), "Renewal 5 days before", "Birthday with a promo code" (choose a discount first: without it the scenario will not enable) and "First visit: welcome" (3 hours after the first visit).

## Conditions: when it fires

| Condition | Example |
| --- | --- |
| The client has not visited the club for N days | 14 days with no visit. You can limit it with "but not longer than 60 days" so as not to write to those who left long ago |
| The membership ends within N days | 5 days before the end, if the next one is not bought yet |
| The membership ended N days ago and was not renewed | 7 days after it ended |
| Birthday | On the day, N days before or N days after |
| N hours have passed since the first visit | After 3 hours |
| The client made visit no. N | The tenth visit: a "round date" |
| The client registered N days ago and has bought nothing | Three days with no purchase |
| The client is in a segment | Any segment from the "Client segments" section; checked daily |
| The client cancelled N or more bookings in the last N days | Three cancellations in 30 days |

## How to create a scenario

1. Press New scenario. Enter a Scenario name and, in "Description (for yourself)", briefly note why it exists.
2. In the When it fires section choose an event and set the numbers right in the sentence: "The client has not visited the club for [14] days".
3. In the Who exactly section, if needed, choose Client location, Membership (any, active, no active one, expired), Customer segment and Client age. With no filters the scenario works for everyone who meets the condition.
4. In the What to do section add actions with the Add an action button. They run in order, up to 10.
5. In "Schedule and repeats", if needed, set "Do not repeat if the client already received this scenario in the last N days".
6. Watch the Summary side column: the whole sentence, "Match the condition" and "Will receive at the next check". Save with the button at the bottom.

The CRM keeps an unfinished form as a draft for 7 days. The Duplicate button creates a copy of a disabled scenario named "… (copy)".

## Actions

| Action | What it does | Notes |
| --- | --- | --- |
| Client notification | Sends a title and text to the app, Telegram or e-mail, as the client chose | The text has variables in braces, for example `{first_name}`, `{membership_name}`, `{membership_end_date}`, `{days_inactive}`, `{promo_code}`. Insert them with the buttons at the cursor; below you see how the client will see it |
| Personal promo code | Issues each client their own one-time code | Choose a discount and "Code validity". For the client to learn the code, also add a notification with the variable `{promo_code}` |
| Task for the administrator | Creates a task in the "Tasks" section | Set the "Task title", "Assignee" (empty: no assignee) and "Due in" in hours |
| Smart call | The AI agent phones by the chosen call scenario | Works if the [smart calls](https://gyms-crm.com/en/docs/contact-center/smart-calls/) module is on |

Clients with no marketing consent do not receive marketing actions: a notification, a promo code and a call. A task for the administrator runs without consent, because it is an internal action of the club. The "Who exactly" block reminds you of this.

## How to enable it safely

1. Open the scenario and check the condition and the text.
2. Look at "How many clients right now": "Match the condition" and "Will receive at the next check". Below you see why the numbers differ: "No marketing consent", "Already received in this period", "Received recently", "Already reached today's maximum".
3. Press Test run and choose yourself or a colleague. "Preview only" sends nothing, and "Send a test" sends a message marked "[Test]": no promo code or call is created.
4. Enable the scenario with the "Enabled" switch. The first check happens by the schedule or at once after Check now.

## Limits that protect clients

They are set by the system rules of the "Clients" group. In the scenario they are shown read-only with the link "Change in 'System rules'".

| Rule | Default |
| --- | --- |
| Check scenarios every, minutes | 60 |
| Actions per client per day | 1: even if a client matches several scenarios, they get one today and the rest on following days |
| Actions per one check | 200: after enabling a scenario with a large audience the messages go out in parts |
| Quiet hours | 21:00–09:00 in the client's location time: nothing is sent then |
| Conversion window, days | 7 |

## Log, runs and results

- Execution log: time, scenario, client, result, delivery and effect. Filters: scenario, "Real only" or "Tests only", dates, the result ("Completed" or "Failed"). Next to an entry you see "Opened in the app", a promo code "used" or "unused", "Task created", "Came back", "Purchased".
- Runs: the history of checks "By schedule" and "Manual", with the number executed, failed and deferred (quiet hours, daily limit).
- "Results" in the scenario card: "Executed", "Opened the notification", "Promo codes used / issued", "Tasks created", "Came back", "Purchased" and "Conversion" for a period. Telegram and e-mail do not report reading, so "Opened" counts only in the app.

## When the system refuses

The system answers: «Сценарій «Повернення» не можна увімкнути: Немає жодної дії»

In English: "The scenario 'Return' cannot be enabled: There are no actions". Add at least one action. An incomplete scenario cannot be enabled: the system lists what is missing (an empty text, no discount, segment or call scenario chosen).

The system answers: «Сценарій «Повернення» уже виконувався (5) — його можна лише вимкнути»

In English: "The scenario 'Return' has already run (5): it can only be disabled". The scenario has history, so it cannot be deleted. Disable it; the log and the statistics stay.

The system answers: «Невідомі плейсхолдери в полі … : {first_nme}»

In English: "Unknown placeholders in the field …: `{first_nme}`". There is a typo in a variable in the text. Insert variables with the buttons.

The system answers: «Тригер «…»: «не довше ніж» менше за кількість днів»

In English: "Trigger '…': 'not longer than' is less than the number of days". The "Not longer than" value must be at least the main number of days.

The system answers: «Вік «від» більший за «до»»

In English: "Age 'from' is greater than 'to'". Swap the age limits.

The system answers: «Префікс промокоду — лише латинські літери й цифри»

In English: "The promo code prefix may contain only Latin letters and digits". Write the start of the code in Latin letters and digits.

The system answers: «Виконавець задачі #5 — не працівник»

In English: "The task assignee #5 is not an employee". Choose an assignee from the list of employees.

The system answers: «Клієнт не дав згоди на маркетингові повідомлення — тест надіслати не можна. Оберіть «Лише показати» або іншого клієнта.»

In English: "The client has not agreed to marketing messages, so a test cannot be sent. Choose 'Preview only' or another client". A test message of a marketing scenario goes only to clients who consented.

## Who sees and does what

| Role | View | Actions |
| --- | --- | --- |
| Owner | Scenarios, log, runs | Creates, changes, enables, duplicates, deletes |
| Manager, marketer | By the "Retention scenarios" permission (view) | Creates and changes, without deleting |
| Administrator | Tasks that scenarios set | Completes tasks in the "Tasks" section |

If it does not work out, write to [support on Telegram](https://t.me/gyms_crm_com) or leave a request using the form at the bottom of the page.

## Frequently asked questions

**Will a client get a message twice if the check runs again?**

No. Each scenario runs once per client per period: per episode of inactivity, per membership, once a year for a birthday.

**Why 'match 100' but 'will receive 20'?**

Most often there is no marketing consent, or the client already received the scenario or today's limit. The reasons are listed under the counters.

**How do I stop a scenario?**

Switch it off with the toggle. A scenario that has already run is not deleted, only switched off, so the log and the statistics are kept.

**Can I add a tag to a client?**

No, there are no client tags in the system yet. Use segments for groups.

**How can a client opt out of such messages?**

Turn off the type 'Club messages (retention scenarios)' in the app, or withdraw the marketing consent.

- [NextSmart calls →](https://gyms-crm.com/en/docs/contact-center/smart-calls/)
- [RelatedClient retention at reception](https://gyms-crm.com/en/docs/reception/maintenance/)
- [RelatedChats](https://gyms-crm.com/en/docs/contact-center/chats/)
- [RelatedSystem rules](https://gyms-crm.com/en/docs/settings/system-rules/)

## Keep reading

- [Smart calls: an AI agent phones clients by a scenario](https://gyms-crm.com/en/docs/contact-center/smart-calls/)
- [Client retention in the CRM: who stopped coming](https://gyms-crm.com/en/docs/reception/maintenance/)
- [Chats: conversations from messengers and the website](https://gyms-crm.com/en/docs/contact-center/chats/)
- [CRM system rules: cancel windows, penalties, limits](https://gyms-crm.com/en/docs/settings/system-rules/)
- [Client card: information, balance, editing](https://gyms-crm.com/en/docs/clients/client-information/)
- [Contact centre in the CRM: chats, calls, IP telephonyChats from Telegram, Viber, Instagram, WhatsApp, the website and the app, softphone calls, call audit and club mail in one GYMS-CRM section. See how it works.](https://gyms-crm.com/en/mozhlyvosti/kontakt-tsentr/)
- [Club messengers: Telegram, Viber, WhatsApp, InstagramHow to run club communication in Telegram, Viber, WhatsApp and Instagram: one inbox, a queue, chats linked to clients, the 24-hour rule. Set up team rules.](https://gyms-crm.com/en/blog/messengers-client-communication/)
- [How to keep gym members: 12 zero-budget tactics12 practical tactics for keeping fitness club clients: a signal after 14 days absent, onboarding, reminders, freezes, progress tracking and referrals.](https://gyms-crm.com/en/blog/yak-utrymaty-kliyentiv-fitnes-klub/)

[Back to all documentation](https://gyms-crm.com/en/docs/)
