

Context Window
A context window is the maximum amount of text, measured in tokens, that a large language model can read and write in a single request.
What is a context window?
A context window is the maximum amount of text, measured in tokens, that a large language model can process in a single request. It includes the system prompt, the conversation history, retrieved knowledge, tool results and the model's own answer. Anything outside the context window is invisible to the model.
In customer support, the context window sets how much an AI agent can consider at once. That covers its instructions, the help articles it found, the customer's messages and any order data. When the total is too large, something has to be left out.
How a context window works
A context window works as a fixed budget that every request must fit inside. The budget is counted in AI tokens, which are pieces of words. Each large language model (LLM) has its own limit.
On every turn of a support conversation, the system assembles these parts:
- The system prompt. The AI agent's role, tone and rules.
- Retrieved knowledge. Passages from help articles and documents that match the question.
- Conversation history. The earlier messages from the customer and the agent.
- Tool results. Data returned by other systems, such as an order record.
- The answer. The reply the model writes also counts against the limit.
Example: a model has a context window of 100,000 tokens. The system prompt uses 2,000. Retrieved articles use 6,000. The conversation so far uses 4,000. That leaves 88,000 tokens for further messages, tool results and the answer.
The model has no memory between requests. The whole conversation is sent again on each turn, so it grows with every message. When a conversation approaches the limit, the system must shorten it. Common methods are dropping the oldest messages or replacing them with a summary.
Why a context window matters in customer support
A context window matters in customer support because it shapes answer quality, cost and speed at the same time. Support leaders rarely set it directly, but they see its effects.
- Quality. If the right help article is not in the context window, the agent cannot use it. Answers about a refund policy depend on that passage being present.
- Long conversations. In a long email thread, early details can fall out. The agent may ask again for an order number given at the start.
- Attachments. A long PDF or a detailed invoice shared by the customer takes a large part of the budget.
- Cost. Usage is typically counted in tokens. Filling the context window on every turn raises the cost of each conversation.
- Speed. More input takes longer to process. A crowded context window slows the reply.
A bigger context window is not automatically better. Irrelevant text competes with the passage that matters. A focused context with the right three paragraphs often beats a full one.
Context window vs AI agent memory
A context window is what the model can read in one request, while AI agent memory is what the system keeps between requests and conversations. The first is temporary. The second persists.
- Context window: fixed in size, rebuilt for every request, gone once the answer is written.
- AI agent memory: stored outside the model. It holds past tickets, customer facts and summaries.
The two work together. Memory selects what is worth recalling. The context window is where the recalled facts are placed so the model can use them. A customer's plan from last month reaches the model only if memory puts it there.
How to manage a context window
Manage a context window by controlling what goes into it. Most of these checks are questions to ask a vendor or your own AI team.
- Keep help articles short and focused. One topic per article makes retrieval more precise and uses fewer tokens.
- Retrieve passages, not whole documents. Retrieval-augmented generation (RAG) selects only the relevant sections for each question.
- Ask how long conversations are handled. Find out whether old messages are dropped or summarized, and what is always kept.
- Trim tool results. Return the fields the agent needs, such as order status and date, not the full record.
- Keep instructions lean. Remove outdated rules from the system prompt. Long, conflicting instructions waste space and confuse the model.
- Test long threads. Run a conversation with many turns. Check that the agent still recalls details from the first message.
Where a context window fits in an AI support stack
A context window sits inside the language model, at the point where instructions, knowledge and conversation meet. A support platform decides what to place in it for each reply. Well-structured source content makes that selection easier. Customerly's AI agent, Aura AI, is trained on the Help Center, canned responses and uploaded documents. Clear, focused articles in your help center software give any AI agent better material to retrieve. To see Aura AI answer from your own content, book a demo.
FAQ
What happens when a conversation exceeds the context window?
The system must remove or compress part of the input. It usually drops the oldest messages or replaces them with a summary. Without that step, the model cannot process the request.
Is a larger context window always better?
A larger context window is not always better. It allows longer conversations and documents, but it raises cost and response time when filled. Answer quality depends more on putting the right content in than on the size.
Does the context window include the AI agent's answer?
Yes, the answer counts against the context window. The input and the output share the same budget. A request that fills the window with input leaves little room for the reply.
Do support leaders need to configure the context window?
Support leaders usually do not configure the context window themselves. The platform manages it. Their influence is indirect: clear articles, short instructions and well-scoped data all make better use of it.
Related Terms
AI Tokens
AI tokens are the small units of text a language model reads and writes. They set how much a model can process at once and what each answer costs.
Large Language Model (LLM)
A large language model (LLM) is an AI model trained on vast amounts of text to understand and write language. See its role in customer support.
AI Agent Memory
AI agent memory is how an AI agent keeps and reuses information beyond one message: the current conversation, past tickets and known customer details.
System Prompt
A system prompt is the set of standing instructions that tells an AI agent its role, tone, rules and limits before any customer message arrives.
Retrieval-Augmented Generation (RAG)
Retrieval-augmented generation (RAG) lets an AI model search your content first, then answer from what it found. See how RAG works in support.
Conversation Summarization
Conversation summarization is the use of AI to condense a support conversation into a short note with the issue, the steps taken and the next action.




