T

Token

The basic unit of text that AI models process — roughly 3/4 of a word. Token limits determine how much context an agent can use in a single interaction.

What it is

A token is the fundamental unit of text processing for large language models. Models break text into tokens — subword chunks that roughly correspond to 3/4 of an English word. Every AI interaction has token limits: an input limit (how much context you can provide) and an output limit (how long the response can be).

Why it matters

Token limits directly affect what your AI agents can do. An agent with a 4K token context window cannot read a 50-page document in one shot. Understanding tokens helps you design prompts, configure grounding, and estimate costs.

Key components

  • Input tokens
  • Output tokens
  • Context window
  • Tokenization
  • Cost per token

How it connects

Agentforce and Salesforce AI features consume tokens on every interaction. Token usage factors into Flex Credit consumption and affects response quality.

Good to know

More tokens does not mean better. Stuffing too much context into a prompt can actually degrade quality. Be selective about what data you ground your agents on.

Need Help Implementing This?

We specialize in putting AI and Agentforce to work for Salesforce customers. Let's talk about your use case.

Book Intro Call