In short
- A script recalculates the prices of open nights every night at 3:00 a.m. for 30 days ahead, and in the last 5 days before arrival it lowers them evenly from the planned price to the minimum price.
- At 3:00 p.m. and 6:00 p.m. two scripts without AI run and lower the price only for tonight's open night: first to a no-profit price, then to the floor price.
- In November 2026 the morning recalculation made 725 price changes without a single manual edit in the calendar.
- I set the rules and the price limits, the automation only carries them out, and it can be stopped with one button from an email.
My dynamic pricing for accommodation is built on fixed rules, not on an AI estimate. Three times a day a script adjusts the prices of open nights in nine apartments based on how many days remain until arrival, and Claude Code launches, checks and summarizes the morning run. I set the price limits and approved the rules in advance. The data is from the server as of 2 December 2026.
The starting point: an open night that expires in the evening
A night in an apartment cannot be stored, so whatever is not sold by the evening will never be sold. The price therefore has to change as the date approaches, and with nine apartments and a 30-day horizon that means up to 270 prices someone would have to go through every day.
At first, significant price changes waited for my approval. On 28 July 2026 I went through the whole set of rules and allowed prices to be adjusted every day without asking, as long as they stay inside the scheme. Everything outside it remained my decision, and the whole process rests on that boundary.
I write about how dynamic pricing is done in general and when AI is a good fit for it in the article Dynamic pricing with AI (in Slovak). Here I describe one specific case from operations, which follows on from the study on why I have my own property management system.
The rules the script calculates by
Each apartment has two basic numbers in the system: a minimum price and a planned price, at which I want to sell the night as a direct booking. The script does not estimate anything between them, it only calculates from the number of days until arrival.
| Situation | What the script does |
|---|---|
| More than 5 days remain until arrival | sets the planned price, with no surcharge |
| 5 to 1 day remains until arrival | lowers the price evenly from the planned price to the minimum |
| Arrival day | sets the minimum price |
| A selected event or holiday | adds a surcharge to the planned price, only raises the price, never lowers it |
| The night is more than 30 days out | does not change the price |
| The night is sold | does not change the price |
| I entered the price by hand | does not change the price |
In an illustrative example with made-up prices it looks like this: with a planned price of €70 and a minimum of €40, a night four days out costs €64, three days out €58, two days out €52, tomorrow €46 and today €40.
I have surcharges only on selected dates, and the list of them is right in the script. As of 2 December 2026 there are four in it: two August festivals, Christmas and New Year's Eve, and for Christmas and New Year's Eve a 3-night minimum is set at the same time. If I have a price on such a date that is higher than the surcharge gives, the script leaves it.
Beyond the 30-day horizon the automation touches nothing, because I keep distant dates priced higher on purpose. If one of them sells at the higher price, it improves the overall result, and if not, the night comes under the rules once it is within 30 days.
How the process is wired
Three recalculations run during the day and only the first of them uses AI. At 3:00 a.m. a timer starts a routine with Claude Code, which runs the script with a single command, checks the minimum number of nights for tonight and writes a summary. The script recalculates the open nights, writes the prices and sends a report.
At 3:00 p.m. the ultra last minute script runs. For apartments that are still open for tonight, it sets a price that covers the costs but makes no profit. At 6:00 p.m. one more run follows, which sets the floor price for the apartments still open, that is, the lowest amount I am willing to sell tonight for. Both runs change only tonight and only lower the price, so if the current price is lower, they leave it.
There is nothing to judge in these two runs, which is why there is no AI in them. The morning run is different, because besides the calculation someone has to read the result and notice what does not fit the rules. On 2 December 2026, for example, the routine pointed out in its summary that one apartment had the scheme allowed only until 30 November, so it did not change its price and left the decision to me.
Prices are written to the rate table in Manordesk as one-day records with a priority. The seasonal rates have priority 1, the morning recalculation 5, the afternoon runs 6, and a price I enter by hand in the calendar 9. The higher priority wins, so the automation does not overwrite my manual price. Prices reach Booking.com and Airbnb through an API connection that runs every 15 minutes.
What it looks like in the interface
The screenshot shows the Rates page in Manordesk with the Seasonal prices form (fictional data). A period has an apartment, a name, from and to dates, a price per night, a weekend price, a minimum number of nights and a priority. Below the form is a list of eighteen price periods, in which the New Year's Eve row has a price of €192.00, a 3-night minimum and priority 9.

The automation's parameters are on a separate Pricing page. For each apartment I enter the minimum price, the planned price, the ultra price and the floor price there, I see the time and result of the last run, and I can stop the whole recalculation and switch off each of the two afternoon runs separately. The page does not allow saving a floor higher than the ultra price.
After each run I get a report of at most four lines: how many changes were made, the nearest of them, what is open today and what today's occupancy is. It goes to the Manordesk Inbox and to Telegram, where ordinary notifications arrive only between 8:00 a.m. and 9:00 p.m. On top of that comes an email with occupancy, open days for the next 30 days and a button that stops the pricing.
How many changes the automation makes
The total from the daily reports shows how much work the recalculation replaces. For November 2026 there are 28 morning reports in the Inbox with 725 price changes, which is 26 changes per morning run on average.
| Month in 2026 | Morning recalculation at 3:00 a.m. | Ultra last minute at 3:00 p.m. | Floor price at 6:00 p.m. |
|---|---|---|---|
| September | 511 | 28 (from 13 September) | not running yet |
| October | 794 | 41 | 24 (from 11 October) |
| November | 725 | 76 | 70 |
The number of changes says nothing about revenue, and I do not claim from this data that the ladder raised occupancy. It only says that prices really do change every day and that I do not enter them by hand.
What failed and which safeguard was added
From 30 August to 2 December 2026 there are 92 morning reports in the Inbox and 4 cards saying that the morning run failed. The table sums up the errors after which the setup of the process changed.
| Date | What happened | What was added |
|---|---|---|
| 28. 7. 2026 | By mistake, the instructions contained a rule about a 10 to 15% surcharge on distant dates, which I had not approved and which was not deployed. | The rule is gone and a note stayed in the instructions on why it must not come back: it would raise the price exactly when sales are going poorly. |
| 27. 8. 2026 | The recalculation ran in two steps, first a proposal and then the write, and 13 changes were not written. The fix ran at 3:17 a.m. | A single command that sets the prices and sends the report. |
| 22. 9. 2026 | At 3:01 a.m. the run ended on an API overload and prices were not recalculated until it was run manually at 4:35 a.m. | On an overload the launcher waits 5 minutes and tries again, 3 attempts at most in total. |
| 29. 9. 2026 | In the report I mistook a night a month away for tonight. | Changes are sorted by date and each one says “today”, “tomorrow” or how many days away the night is. |
| 5. 11. 2026 | The Claude Code login expired and the 3:00 a.m. run ended with an error. The recalculation only ran at 8:19 a.m. | At 3:00 a.m. the failure created an urgent card in the Inbox, so it left a trace. |
| 22. 11. 2026 | The 3:01 a.m. run hit an exhausted session limit that would reset only at 4:00 a.m. The launcher waits half an hour at most, so the morning recalculation did not run that day. | The 3:00 p.m. and 6:00 p.m. runs have no AI, do not depend on the limit and did run that day. |
I took a simple lesson from the last row: the fewer steps depend on AI, the fewer things a limit or a service outage can stop, which is why both afternoon runs are plain scripts.
What stays with a human
I enter all the numbers the price is derived from: the minimum and planned price, the ultra price, the floor price and the list of events with a surcharge, and the automation neither proposes nor changes these values. Until 13 September 2026 I set any price below the minimum exclusively myself, and the routine was explicitly forbidden to even propose such a price. Only then did I turn on the 3:00 p.m. run with amounts I had set in advance, and on 11 October the 6:00 p.m. run was added.
Fixing the inaccuracies the routine points out also stays with me. For example, the script rounds to whole euros, so the price on arrival day can end up a few cents below the minimum I entered. The routine wrote this to me in its summaries of 5 November and 26 November 2026 and did not change the code itself.
The second thing is maintaining the instructions, which still contain a step on the minimum number of nights that refers to the old rented system, so the routine handled it differently: on 26 November it left the minimum as it was and on 2 December it wrote it to the rate table in Manordesk. An outdated line in the instructions therefore leads to inconsistent behavior and needs to be rewritten as thoroughly as code.
How another company can use this
The approach fits anywhere capacity with a date is sold, although I have verified it only on accommodation. Anyone considering broader AI process automation can treat pricing as a good first candidate, because the rules can be written down precisely.
- For each product, set a minimum price the automation will never go below and a planned price you want to reach.
- Write the rules as a table of situations and outcomes so that no room for guessing remains in them.
- Leave the calculation to a script and use AI to launch it, check the result and summarize what does not fit the rules.
- For the first weeks let the automation only propose, and allow writing only once you understand the proposals.
- Give the manual price precedence over the automation and add a switch that stops everything at once.
- Have a short daily report sent to you and write every error into the instructions with its date and reason.
The instructions for Claude Code can look like this:
Task: morning price recalculation.
1. Run the recalculation script with a single command that sets the prices and sends the report.
2. Rules the script follows (do not recalculate them by hand, just understand them):
- the minimum price is a hard floor, never anything below it,
- more than 5 days before the date the planned price applies with no surcharge,
- in the last 5 days the price drops evenly to the minimum,
- surcharges only on dates from the list, and there only raise the price,
- do not change sold dates, manual prices or dates beyond the 30-day horizon.
3. List significant changes (at least €15 or 25%) separately in the summary.
4. If something does not fit the rules, change nothing and write to me.
Limits: never below the minimum price, do not edit the script code,
do not change reservations or settings. Keep the output short: what changed and why.
You will find more deployment examples in the AI in business section (in Slovak).
Frequently asked questions
Does AI have to calculate dynamic prices?
In my case an ordinary script calculates the prices under fixed rules, and AI launches it in the morning, checks it and writes a summary. The 3:00 p.m. and 6:00 p.m. runs go entirely without AI, because there is nothing to judge in them.
What if the automation sets a price I do not want?
A price entered by hand in the calendar has the highest priority and the automation does not overwrite it. On top of that, I can stop the whole pricing process with a button in the email or on the Pricing page and restart it the same way.
Why do prices more than 30 days out stay unchanged?
I keep distant dates priced higher on purpose, because if one of them sells at the higher price, it improves the overall result. The automation would knock them down to the planned price, so a night only comes under the rules once it is within 30 days.
How fast does a new price reach Booking.com and Airbnb?
The system sends prices to the platforms through an API connection that runs every 15 minutes. A price set at 3:00 p.m. is therefore picked up by the platforms within 15 minutes.
What happens when the morning recalculation fails?
The launcher creates an urgent card in the Manordesk Inbox so the failure does not go unnoticed. Prices stay as the last successful run set them, and the afternoon runs without AI go ahead as usual.