Essay 0712 min read

The Chatbot Moved Forward. The Request Was Left Behind.

By Paulo R.Software engineer and founder of Lucimark.

Two paths start at the same point. A dark line reaches a geometric destination; a bronze line stops before it arrives.

Someone requested two options for the same appointment. The chatbot replied with a list of available times.

At first glance, nothing seemed wrong.

The reply made sense. The times were presented correctly. The conversation had moved to the next step.

There was just one problem: the system had taken one of the options into account and left the other behind.

No error appeared. The chatbot did not hallucinate some absurd answer. It simply continued along an apparently normal path, now based on an incomplete request.

If someone judged the interaction by that final message alone, they might conclude that the booking process was working.

But the person was no longer receiving an answer to what they had asked.

We observed this behavior while testing Tredane, a platform we are building to organize customer conversations and appointments for aesthetic clinics, integrating WhatsApp with AI assistance.

The incident made me think about a weakness that is not always obvious when we discuss chatbots.

We are accustomed to judging the quality of a reply: whether the language sounds natural, whether the facts are right, whether the model understood the question.

But a conversation is not a sequence of independent replies. It is a process in which information gathered at one moment determines what may happen next.

A system can produce a perfectly plausible response while having lost the intention it was supposed to preserve.

That was the distinction we began to investigate.

What the reply did not reveal

The immediate explanation for a partially understood request would be a language interpretation failure.

Perhaps the model failed to identify the two options. Perhaps the prompt needed more examples. Perhaps the instructions needed to be more explicit.

All were possible hypotheses.

The problem was that the observed result, on its own, could not tell us which hypothesis was right.

We knew that part of the request had disappeared somewhere between receiving the message and presenting available times. From the reply alone, we did not know where the loss had occurred.

It might have happened during interpretation, while turning the message into structured data, or when updating the conversation’s state.

Other tests helped us see that the difficulty was not solely linguistic.

In one case, selections from an earlier session appeared again in a new conversation. The booking process jumped directly to available times without first rebuilding the current request.

In another, a person selected an available time, but the system did not preserve the date associated with that choice. In the next interaction, it asked again for information already provided.

These were different failures. One involved old information surviving when it should have been cleared. Another involved losing the relationship between two pieces of data. The first incident involved a combined request that failed to reach the next step intact.

None of them would necessarily be fixed by making the replies sound more natural.

What they shared mattered more: the system’s internal representation no longer matched the request the person believed they were constructing.

This mismatch is particularly dangerous in a conversational interface because so much of the system’s operation is invisible.

In a conventional form, we can see completed fields, selected options, and missing values. A conversation reveals fragments of that state over time. To reconstruct the request, the person has to trust that the system retained what was said earlier.

When a chatbot offers times, it implicitly says: I have understood your request, and I am ready to look for availability.

If that premise is wrong, the fluency of the exchange conceals the mistake.

I began to look at the situation differently.

Instead of asking only whether the system had understood the latest message, the question became: what request, exactly, does the system believe it is carrying out right now?

And how can we verify that this still matches the person’s original intention?

Two botanical specimens feed different paths into a geometric process. A dark line reaches the final structure, while the bronze line ends inside the second stage.
Figure 1 A correct-looking reply to an incomplete request. Two selections enter the process, but only one reaches the result. The conversation continues without revealing the loss.

The request could not depend on message history alone

A common approach in conversational applications is to use message history as context for deciding what happens next.

It is a natural solution. People build context as they speak, and language models can work with sequences of messages.

But using history to interpret a conversation is different from depending on history to reconstruct an operational commitment at every turn.

An appointment has concrete properties.

There is a selected service, possibly with several options. There is a date, a time, constraints on availability, and a stage at which the person is still exploring possibilities. Later, there may be a proposed appointment awaiting confirmation.

These elements need to remain consistent even when the person changes how they interact.

They may begin with free text, respond to a list, correct a selection, interrupt the conversation, and return later.

If every path stores the request differently, several competing interpretations of the same situation begin to emerge.

It was in this context that we made one of the most important architectural decisions for Tredane’s conversational core.

We began consolidating the request into a persistent structure called BookingFrame.

The name is technical, but the idea is straightforward: rather than treating a conversation only as a sequence of messages, we maintain an explicit record of what is being constructed.

That record holds the information relevant to the appointment, the current stage, the selections made, and the data needed to determine the next step.

History remains useful. It helps us understand what was said, clarify ambiguity, and recover linguistic context.

But it is no longer the only source from which we try to infer the operational state of the request.

We considered three paths.

The first was to keep reconstructing state from messages while improving interpretation and the handling of different conversational routes.

The second was to create a new storage structure dedicated to the request.

The third was to evolve the persistent session record we already had, making explicit the fields the conversation needed to preserve.

We chose the third.

This decision did not come from an abstract preference for one technology. Using the existing structure allowed us to focus on representing the request and avoid creating two sources of truth that would have to be synchronized.

The implementation also brought the state update and message record into the same transaction within the clinic’s operational storage.

These choices are almost invisible to the person using the product.

But they change what we can reasonably demand from the system.

If someone selects two options, the next step must account for both or explain why the system has not yet understood the complete request.

If they change a selection, the correction should alter the relevant part without destroying what remains valid.

If they decide to start over, the system cannot merely announce a reset while keeping an old proposal waiting to be confirmed.

Our tests led us to correct that last behavior as well.

Of course, storing structured state does not guarantee that every value is correct. An interpretation error can still fill the wrong field. A business rule can still be incomplete.

The difference is that there is now an object we can inspect, validate, and compare against the request.

That changes the nature of the problem.

Previously, a conversation going wrong could look like another instance of the AI getting confused.

With explicit state, we can ask verifiable questions: which fields were collected? Where did they come from? Which ones changed? What was lost? What should have been invalidated?

Useful memory in a conversational system is not simply what it can recall. It is what it can preserve, correct, and, when necessary, forget.

A stable circular structure with six compartments containing geometric patterns is connected to six outer paths representing different forms of interaction and correction.
Figure 2 What a conversation needs to preserve. Different interactions update the same structured representation of the request; its fields can be completed, corrected, or invalidated.

Understanding is not authorization to act

Changing how we stored the request led to another distinction.

Even when the system interprets a message correctly, that does not mean it should immediately perform the action suggested by that interpretation.

Tredane’s conversational architecture attempts to keep those responsibilities separate.

We use deterministic rules and responses along the normal booking path. The language model provides assistance when free text, open questions, or situations outside the structured choices require interpretation.

The model can help understand what someone meant.

But whether a choice is valid depends on the application’s domain.

A service may have different options. A combination can change the appointment’s duration. Availability depends on scheduling rules and the resources required.

None of that should be decided merely because a model produced a convincing interpretation.

If someone expresses two choices and the system recognizes only one, moving on to available times is not being helpful. It is continuing with a request that has not been sufficiently understood.

A better response may be to retain what has been identified and ask for clarification about what remains uncertain.

At some moments, the best response a chatbot can give is a question.

At others, it is to present structured options or hand the conversation to a person, bringing along the context already collected.

The same separation matters at the point of confirmation.

A typed “yes” can mean many things. It might answer a question, accept a suggestion, or indicate a preference.

It is not sufficiently clear authorization to create an appointment.

So we distinguish between constructing a request and deciding to confirm it.

The system prepares an identified, versioned proposal. Creating the actual booking depends on explicit confirmation of that proposal through the mechanism designated for that action.

The proposal also has a validity period. If it expires or no longer matches current availability, the system must refuse the confirmation and allow another choice.

We strengthened this behavior in development tests involving expired proposals.

The decision concerns security, but it also concerns something more basic: the correspondence between what a person believes they are doing and what the system actually does.

A conversation can be flexible in its language. An action that changes the calendar requires more precise conditions.

The most useful distinction, to me, is this:

Interpretation may be probabilistic. Authorization to take action should not rest on that probability alone.

This does not eliminate mistakes. It forces us, however, to decide where uncertainty is acceptable and where it must prevent the process from advancing.

Organic branches stop before an architectural arch; a single bronze path crosses the threshold and reaches an ordered circular construction.
Figure 3 Interpreting is not authorizing. An understood intention still needs validation and explicit confirmation before it produces consequences.

What we can demonstrate — and what we cannot yet

The incomplete-request incident also changed how we evaluate the chatbot.

A well-written reply is no longer a satisfactory result in itself.

We need to follow what happens across the conversation and examine the state produced by each interaction.

When someone makes a combined request, have all their selections been preserved?

When they correct information, does the system change the right field?

When they reset the conversation, does the previous request actually stop influencing the next one?

When they select a time, is its associated date retained?

And when a proposal has expired, is the system still unable to create the appointment from it?

These questions became automated regression scenarios for the failures we encountered.

The corresponding fixes were incorporated into the code, and deterministic tests document the behaviors now being checked.

That is concrete progress, but its limits matter.

A test with controlled data and simulated responses can demonstrate that a particular path respects particular conditions. It cannot, on its own, demonstrate that the product will behave correctly across the full variety of language, interruptions, and situations in real operations.

Nor is it equivalent to testing with the language model involved at every relevant step.

We still need to complete evaluations with the model in the loop, observe longer conversations, and validate operational behavior before making claims about production reliability.

There is a difference between fixing a known failure and demonstrating that an entire class of failures is gone.

I want to preserve that distinction.

We are also developing ways to observe consequences that matter more than the apparent quality of a reply: lost selections, necessary corrections, mismatches between requests and results, and extra steps before confirmation.

We do not yet have operational results that would support conclusions about the product’s performance in real use.

But the way we investigate has already changed.

A failure can now be described precisely, reproduced in a test, and checked again after a change.

The discussion no longer has to rely only on the impression that a chatbot answered well or poorly.

We can ask whether the system retained the information required to continue correctly.

I return to the opening incident.

Someone requested two options. The chatbot offered times for one.

The reply was not necessarily absurd. It did not even have to contain a false statement about the times presented.

The error lay in the relationship between that reply and everything that had happened before it.

Perhaps this is one of the hardest properties of a conversational system to assess: the quality of an interaction is not contained solely in the message we can see.

It also lives in what the message assumes, the state it inherited, and the consequences it makes possible.

For a long time, the most visible challenge for chatbots was keeping a conversation that sounded natural.

Now that we are giving them access to calendars, internal systems, and other abilities to act, that is no longer enough.

We need to understand not only how they interpret language, but how they preserve commitments across a sequence of interactions.

And we need to know when they should stop.

Tredane is still being developed. There are decisions left to implement, paths left to test, and hypotheses that need to face real use.

What the incident taught me, though, is already clear enough to guide the work ahead:

A fluent conversation is not necessarily a coherent one.

The chatbot had managed to move forward.

What we still needed to ensure was that the request moved forward with it.

A question to take with you

What must your system preserve between two replies for it to remain worthy of trust?

Written by Paulo R. Software engineer and founder of Lucimark.

Follow new writing through RSS or get in touch on LinkedIn.