How?
Each time a customer message arrives on a thread that Customer Agent is assigned to, it assembles a fresh snapshot of the thread.What?
The context snapshot always contains:- Conversation
- Customer details
- Channel (e.g. Slack)
-
Thread reference (e.g.
T-15086) - Files the customer attached
- Tone of voice preferences
- Thread labels
- Thread fields
- Passages from your knowledge sources that it finds by searching
Conversation
The Customer Agent reads the thread’s message history, and includes:- The most recent 50 message
- Who sent each message
- When each message was sent
- Long messages are truncated to the first 2,000 characters
- Quoted email history and signatures are stripped
- Autoresponder messages are ignored
Notes
The Customer Agent does not use internal notes on a thread as context, as these are private to your internal team, and could include information about the customer that Customer Agent should not use.Customer details
The Customer Agent is told the customer’s name and their company, taken from the thread’s account. If the thread has none, the Customer Agent uses the customer’s account memberships instead, and if they match no account, the Customer Agent is told that too. Nothing else about the customer is shared. By default, the Customer Agent uses the customer’s first name, or no name if none is set.Channel
The Customer Agent knows what channel the conversation is happening over, e.g. email or Slack, and adapts how replies are written:- Email → Fuller, more structured replies
- Chat → Shorter, more conversational replies
- Discord → Kept under Discord’s 2,000 character message limit
Thread reference
The Customer Agent knows the thread’s reference number, for exampleT-15086. It doesn’t mention it unless you ask it to.
To have the Customer Agent quote it, add a custom instruction such as:
Attachments
The Customer Agent can read files a customer attaches to their message, so a screenshot, log file, or document becomes part of the context for a thread. The Customer Agent can read:- Images → PNG, JPEG, GIF, WebP
- Documents → PDF, Word, RTF, OpenDocument, Pages
- Spreadsheets → Excel, CSV, TSV, Google Sheets
- Presentations → PowerPoint, Keynote, Google Slides
- Text → Plaintext, Markdown, HTML, source code, config files, emails
- Only files the customer attaches are read, not files your team or the Customer Agent send
- Up to 10 files per request; anything beyond that is ignored
- Each file must be under 2.5 MB
-
Audio, video, and archives (e.g.
.zip) can’t be read - The Customer Agent only reads files uploaded directly to the thread, it does not follow links to externally hosted files (Google Drive, Dropbox, etc)
- If a file can’t be read, the Customer Agent handles the message without it
Thread labels
All labels, up to a limit of 25, are added to the context snapshot. You can disable a label being included by disabling theCan be applied by Plain AI setting on a given label.
The Customer Agent uses labels to understand the thread, but never tells the customer which labels a thread has.
Thread fields
You can optionally let the Customer Agent see the Thread Fields of a thread, for additional context. This is controlled per field and is off by default. To enable this for a given field:- Go to Settings → Thread Fields
- Open a field
-
Enable
"Include in Agent context"
- Fields are sorted alphabetically by label and capped at 25
- Values are shortened to 150 characters and descriptions to 200
- If we fail to load the thread fields, the Customer Agent continues without them
Knowledge
Along with the static context that is built in to the snapshot, the Customer Agent searches your knowledge for each customer question. Rather than reading all knowledge that is indexed, the Customer Agent searches for what’s relevant based on the thread:- The Customer Agent writes its own search queries from the thread
- It searches as many times as it needs within a message’s limits, rewording a search that finds nothing useful
- Each search returns the most relevant passages from your indexed pages and Help Center articles, after a relevance check drops the rest
- It skips searching for a greeting, a thanks, or an acknowledgement
- If its searches find nothing that answers the question, the Customer Agent says what it can or hands the thread off to your team, rather than guessing
- If nothing is indexed for the thread at all, it hands off with a note asking your team to add knowledge
- Private or internal content can power an answer, but the Customer Agent never links a customer to it in the reply
Adding dynamic context
Allowing the Customer Agent to understand data that sits within your own systems as part of the context it uses when answering customer questions gives the Customer Agent much more to answer from. Achieve this via Thread Fields. Populate one or more thread fields that are visible to the Customer Agent with dynamic context, using:- Plain’s GraphQL API
- Webhooks
- Workflows
- Manual

