Back to all posts

Developer & technical insights December 1, 2026 11 min read

Qualification Gates (Making an AI Agent Collect the Right Details Before It Books)

by Melek Messoussi AI Product Specialist at Myna

Collect the details first. Then let your AI agent book.

TL;DR: A booking agent that books before it knows the budget, and one that fires six questions at once like a paper form, usually share the same underlying problem, which is that the model has been left to decide when it knows enough. A qualification gate takes that decision away from it. The required questions are mapped to contact fields, and the tools that act on the answers (offering times, booking, opening tickets, handing off) are withheld from the model until those fields hold values, so it can’t book early however persuasive the customer is. This post explains how the gate works, why the contact field is where a question really finishes, how to write questions people will answer, and how a gate can quietly stop anyone booking at all.

For much of the nineteenth century, the most dangerous stretch of a railway was a single line of track worked in both directions, because two trains could enter it from opposite ends and meet in the middle. Timetables and telegraph messages depended on people remembering and agreeing, and when they failed the result was a head-on collision. In the late 1870s the engineer Edward Tyer introduced a better answer, the electric train tablet. A pair of linked instruments sat in the signal boxes at either end of the section, each holding a stack of metal tablets, and the electrical connection between them allowed only one tablet to be out at a time. A driver was not permitted onto the single line without a tablet in his cab, so whether the line was clear no longer depended on anyone’s judgement in the moment.

The inside of a Tyer's No. 6 electric tablet instrument, with the brass and red interlocking mechanism that released one tablet at a time. Photo: Sir Ross BA, CC BY 3.0

AI agents that can book appointments, open tickets or hand a conversation to a person face a smaller version of the same problem. Before they act, certain things ought to be known, such as what the customer needs and roughly what they can spend, and someone has to decide that those things are known. This post is about handing that decision to something like Tyer’s tablet, a gate in code that holds the booking tools back until the required answers exist, and about choosing questions and fields that let the gate open.

Why the model shouldn’t judge when it knows enough

The simplest way to build a qualifying agent is to write the questions into its instructions, along the lines of “before booking, find out the customer’s project type, budget and timeline”, and trust the model to follow them. It mostly does, which is what makes the approach so convincing in a demo, and the failures arrive later in two recognisable shapes.

The first is the eager booking. A customer opens with “do you have anything Thursday afternoon?”, and the model, which has been trained at great length to be helpful and to respond to what people actually ask, offers Thursday afternoon. The instruction about budget is still there, but it is one sentence among thousands of words of context, weighed against a direct request from a real person, and the request usually wins. The sales team then discovers on Thursday that the customer wanted a $2,000 job from a company whose projects start at $15,000.

The second shape is the opposite, an agent so conscientious about its list that it asks everything at once. “Great! To get you booked, could you tell me your project type, budget, timeline, address and the best email to reach you?” is a paper form wearing a chat bubble, and people treat it the way they treat long forms, by answering the easy parts or leaving. Baymard Institute’s long-running research on online checkouts consistently finds a long or complicated checkout among the most common reasons people abandon a purchase, and an opening message with five questions in it asks for the same kind of effort.

Both failures come from asking the model to balance a rule against a conversation on every turn. The OWASP Top 10 for LLM Applications lists Excessive Agency, an agent having more capability than the task in front of it needs, among the main risks of putting language models in charge of tools, and among its recommended defences is limiting which tools the agent can reach at all. Anthropic’s guide Building Effective Agents makes a related point in friendlier language, borrowing the manufacturing idea of poka-yoke, which means arranging a tool so that the mistake is hard to make in the first place. A qualification gate applies both ideas to the question of whether the agent may act yet. The wider family of deterministic checks around a turn is covered in pre-gates and post-gates, and this post stays with one particular gate.

How a gate works

A qualification gate has three parts, each simple on its own. There is a list of questions, each tied to a contact field where its answer will be stored and marked as required or optional. There is a list of tools that should wait for the required answers, which for a booking agent usually means offering times, booking, moving an appointment, opening a ticket and handing off. And there is a check, run in code before the model sees anything, that compares the two.

The contact record feeds a check for empty required fields. While any are empty, the booking, ticket and handoff tools are held back and the ask-question tool is offered. The answer is saved to its field, the check runs again, and the booking tools pass through

On every turn, the check reads the contact’s record and works out which required fields are still empty. If any are, the waiting tools are removed from the list the model is offered, so as far as the model can tell, booking doesn’t exist, and it can’t be talked into booking early because there is nothing to call. What it does have is a tool that picks the next question and a short block of state telling it where things stand. In Myna, that block looks like this:

FilesQUALIFICATION CONTEXT
Qualification Goals:
- Required total: 3
- Completed required: 1
- Next required field: project_type
- Pending required fields (in order):
  - project_type
  - budget_range
- Pending optional fields: none
- Available after the required answers: modify_appointment, offer_appointment, schedule_appointment

The last line lets the model see what is waiting, so it can tell a customer who asks about Thursday that it will gladly look at Thursday once it knows a little about the project, which is a far better reply than booking blindly or ignoring the question. The check also runs again after every tool that changes data, so when the last required answer is saved, the booking tools reappear for the next step of the same turn and the customer who gives their budget can be offered times in the same reply.

A few refinements keep the gate from becoming a nuisance. Questions whose fields are already filled are skipped. Optional questions have a limited number of attempts (three by default in Myna), after which the agent stops asking. Required questions have no such cap, since giving up would mean opening the gate without the answer, but the agent won’t pick a question again straight after the customer has passed over it, and it words a second attempt differently from the first. One exception is written into the rule itself: if the customer asks for a person, the handoff tool stays available whatever is pending, since holding someone to a budget question after they’ve asked for a human is a poor way to treat them.

The lock also applies only when the agent has the tool for asking qualification questions, because without it nothing could collect the pending answers and the gate would stay shut for good. The post on tool contracts describes how each tool should state exactly what it may do, and the gate adds a condition about when it may be used at all.

Contact fields are where questions finish

It is tempting to think of a qualification question as finished once it has been asked and answered, but the gate works from the contact’s record, and a question counts as done only when the field it is mapped to holds a value. This sounds like a technicality, and it turns out to be the part that decides whether a gate works at all.

Saving an answer is its own step, carried out by a tool that reads the customer’s message, proposes a field and a value, and quotes the words the value came from. In Myna, Update Contact saves only when that evidence is the customer’s own words and the field is one the agent may write. That permission is set per agent, field by field, as Visible (the agent can see it) and Writable (it can save to it), so an agent can read a customer’s address without ever being able to change it. A qualification forces its own field to visible and writable, since an answer that can’t be saved can never complete the question, though a short list of fields stays locked even then, including internal notes, contact type and lead source, which the code treats as belonging to the business.

Reading completion from the field has a pleasant side effect. Answers arrive from plenty of places besides the agent, such as a web form, a teammate typing a budget into the CRM after a phone call, or a list imported from a trade show, and because the gate looks at the field, all of them count. With “Skip if already filled” switched on (the default), a customer who gave their project type on a form isn’t asked for it again. The same reasoning is why Myna won’t publish an agent with a qualification that has no mapped field, since such a question would sit in the pending list forever.

Writing questions people will answer

Once the mechanics are right, the quality of a qualifying conversation depends almost entirely on the questions, and most of the habits that make good questions are much older than AI. Sales teams have argued about them for decades, and the acronym many of them learned, BANT, for budget, authority, need and timeline, is usually credited to IBM. It is a sound list of what to find out and an awkward order in which to ask, since budget is the most intrusive question on it and need is the most natural.

Two cards. On the left, a form-style message asking for project type, budget, timeline, address and email at once. On the right, the same details gathered one question at a time, starting with what the customer needs and explaining why the budget question is asked

A handful of principles hold up well in conversation:

  • Ask one thing at a time: each question should be answerable in a few words, with the agent waiting for the answer before moving on. Myna asks one qualification per turn, and a post-gate sends back for repair any reply that combines more than one of a booking offer, a handoff and a qualification question.
  • Start with the cheapest question: what the customer needs is easy to answer and feels like help, while budget and decision-makers feel like assessment, so the easy questions build a little goodwill before the harder ones arrive.
  • Say why, once: “so I can send the right technician” turns a question about postcode into a favour to the customer. Explaining every question in the same words soon sounds scripted, so the reason is best given the first time and again only if the customer asks.
  • Let people answer out of order: when someone mentions their timeline while describing the project, a good agent saves both instead of dutifully asking about the timeline next.
  • Keep the options in reserve: five budget bands read like a form, so ask openly and offer the bands only when the customer says they’re unsure.
  • Keep the required list short: every required question is a point at which someone can stop replying, so only the answers a booking genuinely can’t happen without belong there, and the rest can be optional.

In Myna, each qualification has a goal, a mapped field and up to 400 characters of guidance, which the agent reads as notes (when to ask, how to read a vague answer, why it matters) and never copies into a message, so it can be as blunt as the business likes.

How gates go wrong

Most of the ways a gate goes wrong are quiet ones, since nothing errors, the agent stays polite and the only symptom is a calendar that fills more slowly than it should.

FailureWhat you noticeWhat is usually happening
A required field the agent can never writeNobody books, and the agent circles one questionThe question is mapped to a locked field such as notes, so the answer is heard but never saved
Gating too muchPlenty of conversations, very few bookingsFive or six required questions stand between the customer and a time slot
Asking for what you already haveCustomers reply “I already told you” or “it’s on the form""Skip if already filled” is off, or the form saves to a different field from the one the question reads
A question nobody can answerThe same question returns in new wordingThe customer doesn’t know the answer, such as exact square footage, and there is no acceptable “not sure”
Locking the only way outA customer asks for a person and gets another questionHandoff is gated with no exception for explicit requests

The first row deserves the most attention because it is invisible from the outside, since every turn looks reasonable and the field stays empty only because the save was refused. Myna refuses those locked fields even when a qualification names them, which is a good reason to give every qualification a dedicated custom field of its own.

The fourth row is worth planning for in the guidance. A required question about something customers often don’t know, such as the age of their boiler, should say in its notes what counts as an answer, for example that “not sure, maybe ten years” is fine to save, because Myna has no disqualify step and an unanswerable required question leaves the gate closed. The third row has a safety net of its own, a post-gate that repairs any reply asking for a name, email, phone number, address or saved custom field already on file.

In Myna: the Schedule Appointments engine comes with Ask Qualification switched on and scheduling locked until the required qualifications are answered, and each Agent Node chooses which tools and calls to action wait, by default offering, booking, moving, creating tickets and handoff. The state builder removes those tools before the planner runs, keeps handoff when the contact asks for a person, and recalculates after Update Contact saves an answer, so scheduling opens up in the same turn. Questions are asked one per turn, required before optional and then in the order you set, and skipped when their field already has a value.

Letting the train through

Tyer’s tablet worked because it moved one dangerous decision out of the driver’s head and into a piece of equipment that could not be argued with, while leaving the driver to do everything else that took skill. A qualification gate makes the same trade. The model still decides how to word each question and how to follow a customer down a tangent, and the gate decides only the one thing that should never come down to persuasion.

Once the gate exists, the interesting work is mostly in the questions and fields behind it. A business that keeps its required list short, maps every question to a field the agent can actually write, and lets forms and CRM records answer whatever they already know will find that most customers never notice the gate is there, since by the time they ask for a time, the agent already knows enough to offer one.

Frequently asked questions

What is a qualification gate in an AI agent?

A qualification gate is a check in code that withholds certain tools, such as booking, opening a ticket or handing off, until the answers to required qualification questions have been saved to the contact's record. While answers are missing, the model is never offered those tools, so it cannot act early however the conversation goes.

Why not just tell the AI agent to ask qualification questions before booking?

Instructions in a prompt are weighed against everything else in the conversation, and a direct request such as 'do you have anything Thursday?' often wins, so the agent books without the details. Removing the booking tool until the answers exist makes the rule impossible to skip instead of merely likely to be followed.

How many qualification questions should an AI agent ask before booking?

As few as the booking genuinely depends on, usually two or three required questions, asked one at a time and starting with the easiest. Anything that would be nice to know can be optional and asked later, since every required question is another point where a customer can stop replying.

Will the agent ask for information the customer already gave on a form?

It shouldn't. A well-built gate checks whether each question's contact field already has a value, from a form, an import or a teammate's edit, and skips the question if it does. If customers keep saying they've already answered, the usual cause is that the form saves to a different field from the one the question is mapped to.

Sign up free