> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decimal.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Automations support teams run today, with the trigger, tools, and instructions to copy.

Each example lists the trigger, the tools to add, and instructions you can paste into **What should happen?**. Swap in your own channel names, Linear teams, and tags, then [test it](https://docs.decimal.app/automations/test-and-run.md) before switching it on.

## At a glance

| Automation | Trigger | Does |
| - | - | - |
| [The outage in disguise](#the-outage-in-disguise) | Ticket created | Spots several customers reporting the same thing and alerts on-call |
| [The deploy that broke something](#the-deploy-that-broke-something) | Schedule | Ties a spike in tickets to recent merges |
| [The bug the agent confirmed](#the-bug-the-agent-confirmed) | Decimal replied | Files a Linear issue when the investigation finds a bug |
| [The fix that didn't hold](#the-fix-that-didnt-hold) | Customer replied | Flags a linked issue when the customer says it's still broken |
| [The workaround that became normal](#the-workaround-that-became-normal) | Schedule | Files a product issue for a workaround sent again and again |
| [The angry enterprise customer](#the-angry-enterprise-customer) | Customer replied | Raises priority and briefs leadership |
| [The word "cancel"](#the-word-cancel) | Customer replied | Tags churn risk and tells account management |
| [The expansion hiding in support](#the-expansion-hiding-in-support) | Ticket created | Sends upsell signals to the account team |
| [The key pasted into a ticket](#the-key-pasted-into-a-ticket) | Customer replied | Alerts security when a customer pastes a credential |
| [The researcher at the front door](#the-researcher-at-the-front-door) | Ticket created | Routes vulnerability reports to security |
| [The SLA about to slip](#the-sla-about-to-slip) | SLA at risk | Gets the right person on a ticket before it breaches |
| [The ticket nobody answered](#the-ticket-nobody-answered) | Ticket created, after 4 hours | Escalates tickets still waiting on a first reply |
| [The thank-you nobody saw](#the-thank-you-nobody-saw) | Customer replied | Shares praise with the whole company |
| [The 6pm handover](#the-6pm-handover) | Schedule | Hands open urgent tickets to the next timezone |
| [The question in Slack](#the-question-in-slack) | Slack message | Answers internal questions from your knowledge base |

## Catch problems early

### The outage in disguise

Spots several customers reporting the same thing and alerts on-call.

When
Ticket created
Tools
Read ticketsSearch ticketsPost messages
Effort
Low

```text Instructions wrap theme={null}
Search for tickets created in the last 10 minutes that describe the same problem as this one. If there are at least three, including this one, post to #on-call: what customers are seeing, how many reported it, and links to the tickets. Otherwise, do nothing.
```

### The deploy that broke something

Ties a spike in tickets to recent merges.

When
Schedule, every hour
Tools
Search ticketsRead codePost messages
Effort
Medium

```text Instructions wrap theme={null}
Look at tickets created in the last hour. If there are more than twice the usual hourly number, or several describe the same new error, list pull requests merged in the last three hours and find the ones most likely related. Post to #eng-deploys with the likely culprit, why you think so, and links to the tickets and pull requests. If nothing stands out, do nothing.
```

### The bug the agent confirmed

Files a Linear issue when the investigation finds a bug.

When
Decimal replied
Tools
Read ticketsRead agent responsesRead issuesCreate issues
Effort
Medium

```text Instructions wrap theme={null}
If Decimal's investigation found a bug in our code, search Linear for an open issue about it. If none exists, create one in the Platform team with what's broken, the files involved, and a link to the ticket. If one exists, do nothing. If it isn't a bug, do nothing.
```

### The fix that didn't hold

Flags a linked issue when the customer says it's still broken.

When
Customer replied
Tools
Read ticketsRead issuesComment on issuesPost messages
Effort
Low

```text Instructions wrap theme={null}
If this ticket is linked to a Linear issue marked Done, and the customer says the problem is still happening, comment on the issue with what they're seeing and a link to the ticket, and post the same to #eng-triage. Otherwise, do nothing.
```

### The workaround that became normal

Files a product issue for a workaround sent again and again.

When
Schedule, Mondays at 9:00 AM
Tools
Analyze support dataSearch ticketsRead agent responsesRead issuesCreate issues
Effort
High

```text Instructions wrap theme={null}
Find workarounds sent to customers 10 or more times in the last 30 days. For each one, check Linear for an issue about the underlying problem. If none exists, create one in the Product team with the workaround, how many times it was sent, and three example tickets.
```

## Protect accounts

### The angry enterprise customer

Raises priority and briefs leadership.

When
Customer replied
Tools
Read ticketsRead accountsChange priorityPost messages
Effort
Medium

```text Instructions wrap theme={null}
If the customer sounds frustrated or is threatening to escalate, look up their account. If they're on an Enterprise plan, set the ticket to Urgent and post a two-sentence summary to #cs-leadership with the account name and a link to the ticket. Otherwise, do nothing.
```

### The word "cancel"

Tags churn risk and tells account management.

When
Customer replied
Tools
Read ticketsRead accountsTag ticketsPost messages
Effort
Low

```text Instructions wrap theme={null}
If the customer mentions cancelling, leaving, not renewing, or moving to a competitor, tag the ticket churn-risk and post to #account-management with the account name, the account owner, what the customer said, and a link to the ticket. Otherwise, do nothing.
```

### The expansion hiding in support

Sends upsell signals to the account team.

When
Ticket created
Tools
Read ticketsRead accountsPost messages
Effort
Low

```text Instructions wrap theme={null}
If the customer is asking about more seats, SSO, a higher plan, or a higher limit, post to #sales-signals with the account name, what they asked for, and a link to the ticket. Otherwise, do nothing.
```

## Keep things safe

### The key pasted into a ticket

Alerts security when a customer pastes a credential.

When
Customer replied
Tools
Read ticketsAdd internal notesPost messages
Effort
Low

```text Instructions wrap theme={null}
If the customer's message contains what looks like a password, API key, or access token, post to #security with a link to the ticket and the type of credential. Never repeat the credential itself. Add an internal note asking the assignee to have the customer rotate it. Otherwise, do nothing.
```

### The researcher at the front door

Routes vulnerability reports to security.

When
Ticket created
Tools
Read ticketsTag ticketsAdd internal notesPost messages
Effort
Low

```text Instructions wrap theme={null}
If the ticket reports a security vulnerability, tag it security-report, add an internal note saying it's been routed to security, and post a link to #security. Otherwise, do nothing.
```

Attach your security disclosure policy under **Context** so the note can point to it.

## Keep the queue moving

### The SLA about to slip

Gets the right person on a ticket before it breaches.

When
SLA at risk, First response
Tools
Read ticketsAssign ticketsPost messages
Effort
Extra low

```text Instructions wrap theme={null}
If the ticket has no assignee, assign it to whoever is on support triage this week, as listed in the attached rotation article. Then post to #support-queue with a one-sentence summary, when it's due, and a link to the ticket.
```

Attach your triage rotation article under **Context**.

### The ticket nobody answered

Escalates tickets still waiting on a first reply.

When
Ticket created, after 4 hours
Tools
Read ticketsChange priorityPost messages
Effort
Extra low

```text Instructions wrap theme={null}
If the ticket is still open and no teammate has replied yet, raise its priority to High and post it to #support-queue with a one-sentence summary. If someone has replied or it's closed, do nothing.
```

### The thank-you nobody saw

Shares praise with the whole company.

When
Customer replied
Tools
Read ticketsPost messages
Effort
Low

```text Instructions wrap theme={null}
If the customer thanks or praises a teammate by name, post their words to #kudos with the teammate's name and a link to the ticket. Otherwise, do nothing.
```

### The 6pm handover

Hands open urgent tickets to the next timezone.

When
Schedule, weekdays at 6:00 PM
Tools
Search ticketsRead ticketsPost messages
Effort
Medium

```text Instructions wrap theme={null}
Find open tickets with Urgent or High priority. Post a handover to #support-apac: one line per ticket with what's going on, what's been tried, and what's next, with a link to each. If there are none, post "No urgent tickets to hand over."
```

### The question in Slack

Answers internal questions from your knowledge base.

When
Slack message
Tools
Read threadsSearch knowledge basePost messages
Effort
Low

```text Instructions wrap theme={null}
Only act on new messages in #ask-support. If the message is a question about how our product works, search the knowledge base and reply in the thread with a short answer and a link to the article. If you can't find an answer, do nothing.
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.