Automations turn customer moments into follow-up work. When a merchant cancels, leaves a bad review or stops using your app, an automation can create a task, post to Slack, add a tag or call a webhook.

To open it, click **CRM** in the sidebar, then click **Automations**.

## Requirements

| Requirement | Why |
| --- | --- |
| **Shopify Partner API: required** | All triggers start from a customer. Customers come from the Partner API. Without it, the triggers show **Connect the Partner API for this app to use customer triggers.** See [Connect Partner API](https://docs.ranksyapp.com/hc/docs/articles/connect-partner-api). |
| **Ranksy integration (/identify or /track): required for two triggers** | **Inactive customer** and **Health drop** fire only for stores with tracked activity. Tracked activity comes from `/identify` and `/track` calls from your app. See [Ranksy Integration](https://docs.ranksyapp.com/hc/docs/articles/identify-integration). |
| **Ranksy integration (/identify): adds data** | The `{shopify_plan}` variable and the most exact `{country}` come from `/identify`. |
| **Slack or Google Chat** | Needed only for the **Post to Slack** and **Post to Google Chat** actions. See [Notification Settings](https://docs.ranksyapp.com/hc/docs/articles/notification-settings). |
| **Permissions** | **CRM** to see automations. **Manage Task Board & Automations** to create, edit, pause and enable them. |

## Start from a template

Ranksy has ready templates for common moments. A template opens as a draft, so that you can check the audience before you enable it.

| Template | Starts when | Creates |
| --- | --- | --- |
| **Health drop** | The health score falls below 40 | A high-priority task to check usage and reach out |
| **Failed charge** | Shopify freezes a charge | A task to email the merchant about billing |
| **Trial ending** | A trial ends in 3 days | A task to nudge the merchant |
| **Early uninstall** | A merchant uninstalls | A task to ask why they left |
| **Save the cancel** | A paying merchant cancels | A high-priority save attempt |
| **Bad review** | A review of 3 stars or less | A task to reply and fix the issue |
| **Downgrade** | A merchant moves to a lower plan | A task to ask why |
| **High-value install** | A merchant installs | A welcome task with the Shopify plan and country |
| **Near usage cap** | A merchant is close to the usage cap | An upsell task |
| **Gone quiet** | A paying merchant did not open your app for 14 days | A check-in task |

To use a template:

1. Click **Configure** on the template.
2. Check the trigger, the conditions and the task text.
3. Wait for the audience preview. It shows how many stores match.
4. Click **Enable**. **Enable** is available only after a valid audience preview.

## Build your own automation

Click **Create automation** to build a flow of steps.

**Triggers** (how a customer enters):

- **Lifecycle event**: install, uninstall, subscribe and other lifecycle events.
- **New review**: a linked customer posts a review at or below a rating.
- **Usage cap alert**: a customer gets close to the usage cap.
- **Trial ending**: a trial ends within some days.
- **Health drop**: the health score drops below a threshold. Needs tracked activity.
- **Inactive customer**: no tracked activity for some days. Needs tracked activity.
- **Task moved**: a customer task moves to a board column.
- **Task created or completed**, **Tag changed**, **Customer date** and **Segment changed** (checked every 15 minutes).
- **Incoming webhook**: another system posts a shop domain to the webhook URL of the automation.
- **Added by hand**: you add customers from the Customers page, the API or another automation.

**Logic**: **Wait**, **Wait until date**, **Wait for event**, **If**, **Split by field**, **Random split** and **Exit**.

**Actions**: **Create task**, **Assign owner**, **Add tag**, **Remove tag**, **Add note**, **Notify team**, **Post to Slack**, **Post to Google Chat**, **Send webhook** and **Start automation**.

## Task text variables

Use variables in task titles and details. Ranksy fills them for each customer.

| Variable | Value | Source |
| --- | --- | --- |
| `{shop}`, `{shop_domain}` | Store name and myshopify domain | Partner API |
| `{email}` | Store email | Partner API |
| `{plan}`, `{mrr}`, `{installed_at}`, `{trial_ends_at}` | App plan, MRR, install date, trial end date | Partner API |
| `{shopify_plan}` | Shopify plan of the store | `/identify` |
| `{country}` | Country of the store | `/identify`, else the Partner API |
| `{health_score}`, `{health_reason}` | Health score and its main reason | Ranksy |
| `{event_date}`, `{review_rating}` | Date of the event, rating of the review | The trigger |
| `{customer_url}` | Link to the customer in Ranksy | Ranksy |

## Limits and safety

- Each rule creates up to 10 tasks per day. Each app gets up to 25 automation tasks per day.
- After an automation fires for a customer, it waits a cooldown period (30 days by default) before it fires for the same customer again.
- By default, an automation acts only on stores that installed after you first enabled it. To include older stores, set **Install lookback** (up to 90 days) in the editor. The audience preview shows the start date.
- Open **Run history** on an automation to see each customer it evaluated.

## FAQ

**Q: My Gone quiet or Health drop automation never fires.**

A: These triggers need tracked activity. Make sure that your app calls `/identify` or `/track` when merchants use it. See [Activity and Usage Events](https://docs.ranksyapp.com/hc/docs/articles/activity-and-usage-events).

**Q: Can an automation email the merchant?**

A: No. Automations create work for your team. Use **Send webhook** to start an email in your own email tool.

## Next steps

- [CRM Tasks](https://docs.ranksyapp.com/hc/docs/articles/crm-tasks) — Work through the tasks that automations create.
- [CRM](https://docs.ranksyapp.com/hc/docs/articles/customer-management) — See customer health and timelines.
- [Ranksy Integration](https://docs.ranksyapp.com/hc/docs/articles/identify-integration) — Send activity and store data from your app.