# Create your first automation

Build a flow from an incoming event to the step that answers it, then publish it so it runs on its own.

Source: https://support.rework.com/article/create-your-first-automation

Every team has work that follows the same shape each time: a form comes in, so someone sends a reply; a report lands, so someone forwards it. Rework Automations lets you draw that work once as a flow, from the event that starts it to the steps that answer it, and then runs it for you. In this guide you'll build a small one from scratch: when a customer finishes a demo, thank them by email. 👋

> **Note:** Anyone in your workspace can create an automation. Publishing it, turning it off or deleting it is limited to the person who created it and to Automation app admins.

## Step 1: Create the automation

- Open the **Automations** app and click **Automations** in the left sidebar.
  
- Click **New automation**.
  

![The Automations page with the New automation button](https://storage.googleapis.com/reworkv3-public/success/260923/eXlHfzmGuwV7Wa8wVJ8oruqCniawm4lLUIP6LmQlOahKrmd8jCEAWfz6Xz1HEIgN/img.vJo1lxv4xlkjqnvFZqOEW4gFYPRo6Qhy96dvTNynRvvmjiqGmWFALbBHHfkbXxPW.png)

- Give it a **Name** that says what it does, for example _Thank a customer after a demo_.
  
- Pick a **Folder** so it sits with related work. You can move it later.
  
- Leave both switches off for now. **Prevent re-enrollment** stops the same record starting the automation twice, and **Restrict to automation members** limits who can set it off.
  
- Click **Create**.
  

![The New automation dialog with a name and a folder chosen](https://storage.googleapis.com/reworkv3-public/success/260923/ctkitRUWINZLCKlrH4UymZcVzLN1bIqVxZ08exySdMStiDtJgQQrWB4j2NMWKk9v/img.PMGSvNn5LGJtqVxFlveZysMkINSBxou6kTfkh8gYhwe0DCGDUqyJY71wZCA9BsbS.png)

The automation opens on the **Builder** tab, with an empty canvas and a draft that saves itself as you work.

## Step 2: Choose what starts it

Every automation begins with exactly one trigger, the event that starts a run.

- Click **Choose trigger** in the middle of the canvas.
  

![The empty canvas with the Choose trigger button](https://storage.googleapis.com/reworkv3-public/success/260923/bxJHewYrN33PCRE6hoLlhWpkOq2Tlsd58Y1qEs5pgygnBvW620PRDwcSOFZ9NjhU/img.QWhzoVxZQkdaK43rv7Gb8SxGPfZ1Fd7pDd4UeWIzTtvooDOd9wl2JwWjlH8YL5z1.png)

- Search for the trigger you need, or browse the **Triggers** category on the left.
  
- For this example, choose **Webhook**. It gives the automation its own address, so any tool that can send an HTTP request can start a run.
  

![The trigger picker with Webhook found](https://storage.googleapis.com/reworkv3-public/success/260923/AbNaXbIjD9mSIvDtFbfmEWLoa9GS9Hi3u2bEE7kiCPWp8zsCla2SKJXdNoqFeKHv/img.ZQm3rXHEjm2WyfaVFNtOfR5696NLMQQknMjReDbO7C24JfBPNPPqDq6lVrHTxf5L.png)

| Trigger | Starts a run when |
| --- | --- |
| **Webhook** | Another system posts data to this automation's own URL |
| **Schedule** | A day arrives on a repeating calendar rule, for example every weekday |
| App triggers | Something happens in another Rework app, for example a new dataset record |

## Step 3: Look at what the trigger gives you

The panel on the right is the step's inspector, where you set it up.

- **Receiver URL** is the address to hand to the tool that will call this automation. Copy it with the button next to it. It starts working once the automation is published.
  
- **method** decides which request the URL accepts. Leave it on **POST** so callers can send a JSON body.
  

Whatever is posted in that body becomes available to the steps below as `{{trigger.body.<field>}}`, which is how the email in the next step gets the customer's name and address.

![The webhook inspector with the receiver URL and the method](https://storage.googleapis.com/reworkv3-public/success/260923/mwZQh4vBZU8V1XCkkFtxI9yuUlJ7PTgIXvccLvTYpFK5KM1MoKMCrBihyKnoGnMS/img.Q2xk5NH4pSFVibr5Eim27RIUk2uYTUEzIRjIAPdTYUp6OWpfxYDy9ZTE2VffJi3e.png)

## Step 4: Add the step that does the work

- Hover the trigger and click the **+** underneath it.
  

![The plus button under the trigger step](https://storage.googleapis.com/reworkv3-public/success/260923/mxzh9NADll3lWlatS33fgqNznfPI18deCYjz54afbT48rJsjsEQKJnhpMljErotP/img.ymoyV3jn8DBftKHK40lAIbGbruOZIGNqQH6oPBLJiSpjPqikvWpIE8kK93tJ4FxG.png)

- Search for the step you need and pick it. For this example, choose **Send email**.
  

Steps tagged **Soon** aren't available yet. Everything else is ready to use, grouped by the app or service it belongs to.

![The step picker with Send email found](https://storage.googleapis.com/reworkv3-public/success/260923/OLyKSCC2sFX7Q36JF445FcfCry4cO8JeFVLdKqcFenQlAjjJsxet5vDuXOZFYjYh/img.Vg8WRBML62ihVF9elk6PgD2Mo5UTS2qDEzV9r8CMlYIHLUaKxUGMkWcTQvXnNjN2.png)

## Step 5: Fill the step in with data from the trigger

Click the new step to open its inspector and complete the fields:

- **to**: `{{trigger.body.email}}`, so the mail goes to whoever the request names.
  
- **subject**: a line that reads like a person wrote it, for example _Thanks for your time today, {{trigger.body.name}}_.
  
- **body**: the message itself. It accepts HTML and the same tokens.
  
- Click **Save** at the bottom of the panel.
  

While a field is focused, the **Data Selector** panel lists everything the steps above produce. Click a field there to insert its token instead of typing it. See [Pass data between steps](https://support.rework.com/article/pass-data-between-steps).

![The Send email step filled in with tokens from the trigger](https://storage.googleapis.com/reworkv3-public/success/260923/nXc7uWOI1OaCx8uhU4Oq6rWs56PE6vj9tZypeuCmkxcKEs2P0mjOSy38OJ9n3bNN/img.PzsIl9FZvt5wPopFu9IliC8T0tKekuALeldt9DLAYM3JRM74BNz9oLpPp6089uPy.png)

> **Note:** A step shows **Needs config** until its required fields are filled, and **Not tested** until you've run it once. That's completely normal for a new step. You can check a single step before going live with [Test step](https://support.rework.com/article/test-a-step-before-you-publish).

## Step 6: Publish it

Editing only ever changes the draft. Publishing makes the flow live.

- Click **Publish**.
  
- If some steps have never been tested, the app asks you to confirm. Choose **Publish anyway** when you're happy to go ahead.
  

![The Publish button in the header](https://storage.googleapis.com/reworkv3-public/success/260923/s3VzpxBNHbGDvvqirq0yHHFfjUtMXgWPih5FIg1xcNtpDvk42SQBAFyPxbSSdkLJ/img.K8ULWjdQZmKeLDoaeU7XUfGJNXprgO5qPs69ITcRGVKeEb2o7FWyjcjG4uvTny2i.png)

The **Production** tab now shows the flow that's live. It stays exactly as published while you keep editing the draft, and each publish is kept on the **Versions** tab so you can go back.

![The Production tab showing the published flow](https://storage.googleapis.com/reworkv3-public/success/260923/GoHSxYBBO4PGFymVqAtsgK9JcAhmmkW5kz4j1yu8OG5SEEuhEPq5r5ikyldMCUeW/img.EbHG4Gn6LIOjKGS3wXilQvLPlCkhsCu8ulKDSq1V3QPwFEQgbQAVZQA8FYO5wb7i.png)

Your automation is running ✅ Hand the receiver URL to the tool that should start it, then watch the first runs arrive on the **Runs** tab. From here, [test a step before you publish](https://support.rework.com/article/test-a-step-before-you-publish), [shape the path with branches and filters](https://support.rework.com/article/how-a-flow-is-shaped), or [read a run step by step](https://support.rework.com/article/read-a-run-step-by-step).
