> ## 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.

# Build your first automation

> Create an automation, test it on a real ticket, and switch it on.

This guide builds an automation that posts urgent tickets to a Slack channel. It takes about five minutes.

## Before you start

* You need to be an admin.
* Your workspace needs the Growth or Enterprise plan. On other plans, **Automations** is listed in Settings but locked, and says which plan unlocks it.
* Connect any integration your automation will use under [**Settings → Integrations**](https://app.getdecimal.ai/settings/integrations). This guide uses [Slack](https://docs.decimal.app/agents/slack.md).

## Build it

**1. Create the automation**

Open **Settings → Automations** and click **New automation**. Type a name over **Untitled automation**, like "Urgent tickets to #support-escalations".

Your changes save as you type. A new automation starts off, so nothing runs until you switch it on.

**2. Pick a trigger**

Next to **When**, choose **Priority changed**. Leave the delay on **Immediately**.

See [Triggers](https://docs.decimal.app/automations/triggers.md) for every option.

**3. Choose its tools**

Next to **Tools**, **Read tickets** is already selected. Click **Add** and choose **Post messages** under **Slack**.

An automation needs at least one tool. It can only use the tools listed here. See [Tools](https://docs.decimal.app/automations/tools.md).

**4. Write the instructions**

In **What should happen?**, write what you'd tell a teammate:

```text theme={null}
If the ticket's priority is now Urgent, post it to #support-escalations.
Say in one or two sentences what the customer is stuck on and link the ticket.
If the priority is anything else, do nothing.
```

Leave **Effort** on **Low**. See [Instructions](https://docs.decimal.app/automations/instructions.md) for tips.

**5. Test it**

Click **Test**, pick a ticket under **Ticket (optional)**, and click **Run test**.

Tests take real actions, so this message really posts to Slack. They don't use credits. Watch each step appear, then read the summary at the bottom. See [Test and run](https://docs.decimal.app/automations/test-and-run.md).

**6. Switch it on**

Turn on the switch next to the name. The badge changes to **Active**, and the automation runs the next time a ticket's priority changes.

## Check on it

Runs appear under **Runs** at the bottom of the automation. Click one to see every step the agent took and why. See [Run history](https://docs.decimal.app/automations/run-history.md).

## Tips for better automations

> [card] Say when to stop
>
> Tell it what to do when the event doesn't apply, like "otherwise, do nothing."

> [card] Name the places
>
> Name the Slack channel, Linear team, or tag. The agent won't guess one.

> [card] Give it the least
>
> Add only the tools the job needs. Fewer tools, fewer surprises.


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