Skip to content

LLM (Large Language Model)

Reviewed by , Co-Founder · Updated

What is a large language model (LLM)?

LLM is a large language model: a neural network trained on huge text corpora that reads a conversation and writes the next reply or picks a tool to call. Related product: Chat Agents.

Deep dive

A large language model is the component of a voice or chat agent that reads and writes. Everything else in the stack feeds it or acts on its output: speech-to-text turns audio into words the model can read, retrieval supplies passages from your documents, tools expose your calendar and CRM, and text-to-speech reads the reply back to a caller. The model itself holds no knowledge of your business beyond what sits in its prompt.

How it works. The model receives a single block of text: the system prompt with its role and rules, the retrieved passages, the conversation so far and the latest customer message. It predicts the reply one token at a time, where a token is roughly three quarters of a word. When the prompt lists tools, the model can emit a structured call such as check_availability(date) instead of prose; the platform runs the tool, appends the result and asks the model to continue. Each turn ends in either a customer-facing message or a tool call, which keeps the loop easy to log and audit.

Why it matters for answer quality and cost. Model choice sets the ceiling on comprehension and the floor on latency and price. A larger model follows long rule sets and handles messy phrasing better; a smaller model answers faster, which matters on the phone where a two-second pause reads as a dropped call. Every reply also costs tokens in and out, so a bloated system prompt is paid for on every turn. Operations leads should know which model their agent runs on, what the fallback is when that provider is slow, and whether the model can be swapped without rebuilding the agent.

Example. A Shopify store runs a chat agent for order questions. A customer writes 'where's my stuff, ordered last tuesday'. The model reads the system prompt (be brief, never guess shipping dates), notes that no order number was given, and asks for the email on the order. The customer replies, the model emits a lookup tool call, the platform returns the shipment status, and the model writes two sentences with the carrier and the tracking link. The model did not know the order existed until the tool told it.

LLM vs RAG. RAG is a pattern around the model, not a type of model. The model reasons and writes; retrieval decides which of your documents it gets to read before writing. Replacing the model changes tone, speed and reasoning; replacing the retrieval setup changes which facts are available. Most wrong answers in production trace to retrieval gaps or prompt gaps, not to the model.

Common pitfalls.

  • Letting the model answer prices, hours or policies from memory instead of from a retrieved passage.
  • Prompts that grow past what the model can hold comfortably, so early rules get ignored.
  • No timeout or fallback when the provider is slow, which shows up as dead air on calls.
  • Treating a demo on one model as proof the agent works on a cheaper one.

On Botcadence the model is wrapped in the pieces above: your uploaded documents and website for facts, your instructions for rules, the tools you connect and a handoff step. A "reply in the customer's language" setting lets the model answer in the language the customer writes in; there is no fixed language list, so test the ones you need. See chat agents and document training.

Try a Botcadence chat agent. Start on the Free plan and train a website chat agent on your own documents. No card needed. Get Started Free (Website chat live in about 5 minutes)

More terms: Lead Response Time (LRT), Meta Verified Tech Provider, Missed Call Text Back, MQL vs. SQL in AI, Multi-turn Dialogue

LLM (Large Language Model) FAQs

Does a bigger model always give better customer answers?

No. Past a point, answer quality depends on what the model is shown: retrieved passages, clear rules and working tools. A mid-sized model with good grounding beats a large model guessing from memory, and it replies faster on voice calls.

Can the model in my agent be changed later?

On a platform that separates the prompt, documents and tools from the model, yes: swap the model and re-run your test conversations. Expect tone and verbosity to shift, so re-check the transcripts you care about before switching production traffic.

Why does the agent sometimes ignore a rule in its instructions?

Long prompts dilute attention; a rule buried deep in a system prompt competes with hundreds of other lines. Keep instructions short, put hard rules first, and move reference material into retrieval so the model only sees it when relevant.

How many tokens does a typical support turn use?

A compact system prompt of 500-800 tokens plus three retrieved passages and the recent conversation usually lands at 1,500-3,000 input tokens per turn, with replies of 50-150 tokens. Prompt length, not reply length, drives most of the cost.

Ask AI about this page