Skip to main content
The Customer Agent uses a well defined set of inputs to build the context of a thread, then uses that context to decide what to do next on a thread and act independently.

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:
  1. Conversation
  2. Customer details
  3. Channel (e.g. Slack)
  4. Thread reference (e.g. T-15086)
  5. Files the customer attached
  6. Tone of voice preferences
  7. Thread labels
It can optionally also include:

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
The Customer Agent replies in the language of the customer’s latest message, unless your custom instructions say otherwise. You can further configure this via Tone of voice preferences.

Thread reference

The Customer Agent knows the thread’s reference number, for example T-15086. It doesn’t mention it unless you ask it to. To have the Customer Agent quote it, add a custom instruction such as:
Customers can then quote the reference when they write back, so your team can find the right thread.

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
Limits:
  • 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 the Can 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:
  1. Go to Settings → Thread Fields
  2. Open a field
  3. Enable "Include in Agent context"
Only the fields you explicitly enable are shared with the Customer Agent. We apply some filtering and limits:
  • 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
The Customer Agent never reveals your thread fields, or their names and descriptions, to the customer. It can use what a field says to answer a question about the customer’s own request, account, or plan. A field that the customer fills in themselves, through chat or the support portal, counts as something the customer said, not as a fact from your team. Thread fields can hold anything, including PII, so only enable this setting if you’re comfortable with the Customer Agent using that context to answer customer questions.

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
Three guarantees follow from this:
  1. 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
  2. If nothing is indexed for the thread at all, it hands off with a note asking your team to add knowledge
  3. Private or internal content can power an answer, but the Customer Agent never links a customer to it in the reply
See Knowledge Sources for more information.

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: