> For the complete documentation index, see [llms.txt](https://docs.chirpwireless.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chirpwireless.io/rules-engine/your-first-automation.md).

# Your First Automation

The best way to learn how automations work is to build one. In this tutorial, you will create a simple automation that watches a humidity sensor in your basement and raises an alert when the reading gets too high.

By the end, you will have a complete automation that:

1. Listens for humidity readings from a basement sensor
2. Checks whether the humidity is above 70%
3. Raises an alert if it is, or does nothing if the reading is normal

Do not worry about getting everything perfect on your first try. You can always edit your automation later, undo changes, or restore a previous version. The editor saves your work automatically, and nothing runs in your home until you explicitly build and deploy it.

## What You Will Need

* A sensor already registered in Chirp (any humidity or temperature sensor will do — the steps are the same regardless of sensor type)
* An alert rule set up in the [Alerts](/alarm.md) section (the automation will trigger this alert when the condition is met)

If you do not have an alert rule yet, you can still follow along and add it later.

## The Three Steps

We will build this automation in three short steps:

1. [**Create an Automation**](/rules-engine/your-first-automation/create-an-automation.md) — Open the editor, name your automation, and choose which sensor to watch.
2. [**Add Conditions and Branches**](/rules-engine/your-first-automation/add-conditions-and-branches.md) — Set up a decision point that checks the humidity level and routes to different actions depending on the reading.
3. [**Trigger Alarms and Actions**](/rules-engine/your-first-automation/trigger-alarms-and-actions.md) — Connect your conditions to an alert so Chirp notifies you when something needs attention.

Each step builds on the previous one, so follow them in order. The whole process takes about ten minutes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chirpwireless.io/rules-engine/your-first-automation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
