AI & Automation

Slot Filling

Definition

Slot filling is the process an AI assistant uses to gather the specific pieces of information (slots) it needs to complete a task, prompting the customer for any that are still missing.

What is slot filling?

Slot filling is the process an AI assistant uses to gather the specific pieces of information it needs before it can complete a task. Each required detail is a "slot", a labelled placeholder such as order number, delivery date, or account email. When a customer's request is missing one of those details, the assistant asks a follow-up question to fill the empty slot, and only acts once it has everything the task requires.

The idea comes from task-oriented dialogue systems. Booking a table needs a date, a time, and a party size; tracking an order needs an order number. Until every mandatory slot holds a valid value, the assistant cannot reliably finish the job, so slot filling is what turns a vague request into a structured, actionable one.

How slot filling works

A slot-filling flow has a few moving parts:

  • A frame of slots. Each task defines the slots it needs and which are mandatory. Others are optional and only refine the result.
  • Extraction. As the customer types, the assistant pulls known values straight out of their message. This is where entity extraction does the work, lifting an order number or a date from free text and dropping it into the matching slot.
  • Prompting for the gaps. Any mandatory slot still empty triggers a targeted follow-up: "What's the order number?" The assistant asks only for what is missing, rather than restarting the conversation.
  • Validation. A value is checked before it is accepted: an order number in the right format, a date that exists. If it fails, the assistant re-prompts.
  • Confirmation and action. Once every mandatory slot is filled, the assistant confirms and carries out the task.

Because slots persist across the exchange, a customer can supply details in any order, or several at once, and the assistant keeps track of what it still needs. That state-tracking is handled by dialogue management, which decides the next question based on which slots remain empty.

Slot filling and multi-turn conversations

Slot filling is one of the clearest reasons a support assistant needs to remember context. Collecting three details usually takes more than one exchange, so it depends on a multi-turn conversation in which earlier answers are retained. A single-turn system that forgot the order number the moment it asked for the delivery date could never complete the task.

It also pairs closely with intent recognition. Intent recognition works out what the customer wants to do (track an order) and slot filling gathers the details needed to do it. One identifies the task; the other collects its inputs. You will sometimes see the technique described as "slots and intents", which captures exactly this pairing.

How to apply slot filling well

Keep the number of mandatory slots to the minimum the task genuinely needs: every extra question adds friction. Ask for one missing detail at a time, phrase prompts in plain language, and let customers give several values in a single message when they want to. Validate each value as it arrives, so mistakes are caught early rather than at the end. And design a graceful exit: if a slot cannot be filled, or the customer stalls, hand over to a human with everything gathered so far, so nobody has to repeat themselves.

Why it matters

It turns vague requests into action. Collecting the required details lets an AI complete a task rather than guess at what the customer meant.
It keeps conversations efficient. The assistant asks only for what is missing, so customers never repeat information they have already given.
It reduces errors. Validating each detail as it arrives means the task runs on correct inputs, not assumptions.
It knows when to escalate. A slot that cannot be filled is a clear signal to hand over to a human, with the details already gathered.

Example

A customer messages, 'I need to change my delivery date.' The assistant recognises the task but still needs two details: the order number and the new date. It asks for the order number, validates the format, then asks for the date. With both slots filled, it confirms the change, all without an agent stepping in.

How Resolve247 helps

Resolve more requests with AIChatbot

Resolve247's AIChatbot answers from your knowledge base and asks for any details it needs to help, so customers get an accurate resolution rather than a generic reply, with an anti-hallucination guarantee. When a request needs a person, it hands over to your team with full context, including everything already gathered.

Trained on your knowledge base
Anti-hallucination guarantee
Instant, 24/7 answers
One-click human handover
Start Your Free Trial

30 day free trial, no cc required!

Related terms

Frequently asked questions

How does slot filling work in a chatbot?

The chatbot defines the details a task needs as 'slots', extracts any it can from the customer's message, and asks follow-up questions for the ones still missing. Once every required slot holds a valid value, it completes the task.

What is the difference between slots and intents?

An intent is what the customer wants to do, such as tracking an order; slots are the specific details needed to do it, such as the order number. Intent recognition identifies the task, and slot filling gathers its inputs.

What is a slot in NLP?

A slot is a labelled placeholder for a piece of information an assistant needs, such as a date, a name, or an order number. Slot filling is the process of collecting a valid value for each one.

Why does slot filling need context across turns?

Because most tasks require several details, which a customer supplies over more than one message. Retaining earlier answers lets the assistant track which slots are filled and ask only for what remains.

Collect the right details to resolve faster

Start Your Free Trial

30 day free trial, no cc required!

Money back guarantee
No manual setup required