Articles · applied AI from Saudi Arabia

Right Date. Wrong Day.

Our AI receptionist booked the right date, then told the caller the wrong weekday.

Dennis Noel Gomez26 November 20262 min read

Two cards side by side: the booked date, Wednesday 2 December, and the day the caller heard, Tuesday

It showed up in Arabic test calls for our AI receptionist for hospitals in Saudi Arabia. The booking in the system was correct. The caller heard a different day.

What went wrong

Say the slot is a Wednesday. The caller hears “Tuesday.” A patient told Tuesday for a Wednesday appointment arrives a day early, or not at all, because of a mistake that was not theirs.

The system was not confused about the date. The date was right. The weekday was spoken by the language model, and the model had been left to say it.

A language model writes fluent sentences. A weekday is a fact it sometimes guesses.

We logged it on 18 November, in a live check on the call line. It was not new. It had been happening with or without the change we were testing that day.

What we had already tried

Two days earlier we had added a first guard: the code worked out the weekday from the booked date and dropped a wrong “tomorrow” if the model said one. In a 36-turn test, no wrong day name reached the caller. The code caught one the model got wrong. All six bookings in that test went through.

That was good, but it guarded the wrong moment. It fixed what was said on the way in. The wrong weekday after a booking was still getting out.

The fix

We decided that the day name should never come from the model at all. After a booking, the code now compares the weekday in the sentence against the booked date, before the sentence is spoken. If they disagree, the code’s version wins.

We found a second bug on the way: the code that fixes day names was sometimes reading a time as if it were a date. That is fixed too.

Both went live on 18 November. A live check in Arabic booked correctly. Afterwards we read the live call logs: none of the real calls since 16 November had heard a wrong weekday from the older guard. That is a small sample, so we are not calling the problem closed forever. We are saying what we checked.

What I took from it

Anything with one right answer should come from code. A date. A weekday. A phone number. Leave the model to do the talking, and keep the facts out of its hands.

That sounds obvious until you read your own system’s sentences and find how many facts are quietly left to the model to say.

Ask yourself which facts in your AI system are still left to the model to say.

That is much of what we do at AI.me: AI whose answers can be checked, and kept that way after launch. You drive. We handle the maintenance.

Get started

Built in Riyadh. Built around you.

A short conversation is usually enough to know whether this is for you.