What are tokens?
Tokens are the small units into which a language model splits text in order to process it. A token is often a short word or part of a word, not always a whole word. A model reads and produces text token by token.
For a chatbot, tokens matter because they shape the length of question and answer, the cost per request and the limit of the text that can be processed.
Why does the term tokens matter?
Anyone operating chatbots quickly runs into tokens, because effort and cost are measured by them.
The term matters because it explains why very long inputs cost more and why a model can only process a limited amount of text at once. Understanding tokens lets you plan prompts and knowledge slices more deliberately and keep a chatbot affordable without cutting quality.
When It Is Relevant
- The cost of a chatbot should be estimated and controlled.
- Long documents or prompts hit a processing limit.
- Answers get cut off and the cause needs clarifying.
- A RAG chatbot must limit the passages it hands over sensibly.
When Not
For simply using a finished chatbot, nobody needs to count tokens.
And if texts are short and requests rare, they barely matter. The term becomes practically important only when scope, cost or limits of a bot are actively planned and optimised.
Industries That Use It
- E-commerce: shape prompt and answer lengths of an advisory bot so cost stays bearable at high request volume.
- Media houses: split long articles into sensible sections so they fit the processing limit.
- Customer service centres: limit the passages handed over per request to keep response time and cost in check.
- Software vendors: measure token use per feature to set prices and limits for end customers.
Typical Use Cases
- Estimating the cost per chatbot request via token use.
- Trimming and structuring prompts to stay within limits.
- Splitting long documents into sections for processing.
- Limiting the amount of context in a RAG flow.
- Analysing why answers are unexpectedly cut off.
Decision Guide
| Signal | Term fits | Alternative |
|---|---|---|
| cost should be controlled | measure and limit token use | flat rate without control |
| text too long for the model | split into sections | work around a shorter model limit |
| answers cut off | check token limits | guess the cause |
| pure end use | ignore tokens | no optimisation needed |
Example
An online retailer runs an advisory chatbot with high request volume.
The team measures how many tokens a typical request with the product info uses, and trims the prompt to what is necessary. Cost per conversation stays predictable without answer quality suffering. This describes the method, not an asserted metric.
Service Connection
Handling tokens deliberately keeps a bot affordable, whether as an AI chatbot for the website or a RAG chatbot over your own content.
Sources
This definition places tokens in the context of chatbot operation. How text is exactly split into tokens and which limits apply depend on the chosen model and should be checked there.