# Schedule cleanings with an automation

> An automation in Operations creates a cleaning task for every confirmed booking, at a time you set around check-in or check-out. You can add one-off tasks too.

## Create a cleaning automation

1. Open [Automations](https://app.hosto.ai/housekeeping/task-rules) in **Operations**.
2. Select **Create**.
3. Enter a **Rule name**, for example "Checkout cleaning".
4. Keep **Type** on **Cleaning**. Its checklist fills in below, ready to edit.
5. Under **Applies to**, keep **All properties** or choose **Specific properties**.
6. Under **Schedule**, choose **Reservation based**, then when the task happens, for example **After**, **Check-out**, **1 hour**. **At** means the check-in or check-out time itself.
7. Under **Assign to**, pick your cleaner, a group under **Teams**, yourself or **Unassigned**.
8. Select **Create rule**.

**All properties** includes the homes you add later. If this is your first automation and nobody who can take tasks has joined your team yet, Hosto then opens **Add member** on the Team page, so you can [add your cleaner](https://hosto.ai/help/housekeeping/add-your-cleaner) right away.

To edit the cleaning list that comes with it, see [Write a cleaning checklist](https://hosto.ai/help/housekeeping/cleaning-checklist). A group hands the automation's tasks to several cleaners in turn, as [Add your cleaner](https://hosto.ai/help/housekeeping/add-your-cleaner) explains.

## When Hosto creates the task

Hosto creates the task when a booking is confirmed. Its time comes from the booking's check-in or check-out date and the property's own check-in and check-out times. A property without those times uses 3:00 PM for check-in and 11:00 AM for check-out.

A task from an automation is 2 hours long. **Remind assignee** decides when whoever holds it is reminded. It's 2 hours before the start unless you change it or choose **Don't remind**.

If the booking's dates change, the task moves with them. If the booking is cancelled, its open tasks are cancelled too.

When a booking comes in after the task's time has passed, Hosto still creates the task, due right away, as long as the check-in or check-out is still ahead. If you delete or cancel a task an automation made, Hosto doesn't create it again for that booking.

## Bookings you already have

**Create task for** decides whether a new automation also covers bookings made before it. **New and existing reservations**, the one selected at first, adds tasks for every upcoming confirmed stay, including a guest who's staying now. **New reservations only** waits for new bookings.

You choose this when you create the automation. It can't be changed later.

## Tasks on a fixed schedule

For work that follows the calendar instead of bookings, such as a weekly maintenance visit, choose **Recurring** under **Schedule**. Then pick **Daily**, **Weekly** or **Monthly**, the day if it asks for one, and a time.

Hosto creates recurring tasks two weeks ahead, one for each property the automation applies to. A monthly task set for the 29th, 30th or 31st runs on the last day of shorter months.

## Other kinds of tasks

Besides **Cleaning**, there's a **Maintenance** type, and you can add your own with **New type** in the **Type** picker. Only **Cleaning** starts with a checklist.

## Add a one-off task

1. Open [Operations](https://app.hosto.ai/housekeeping).
2. Select **Create**.
3. Enter a **Task name**.
4. Under **Applies to**, choose the property.
5. Under **Schedule**, pick the date and time.
6. Under **Assign to**, pick who does it.
7. Select **Create task**.

Open **Additional details (optional)** to add a type, a duration, a reminder, notes for your cleaner and a checklist. A task you add this way isn't tied to a booking, so it keeps its time when bookings change.

## Change or stop an automation

Open the automation, change what you need and select **Save changes**. The change applies to tasks it creates from then on. Tasks it already made stay as they are.

To pause it, open **⋮** and choose **Disable**. A disabled automation creates nothing, and it can be reactivated or deleted. Reactivating one set to **New and existing reservations** also adds tasks for bookings made while it was off. Deleting it doesn't delete the tasks it already created.
