Customer context
This feature is in Early access. To get access or learn more, contact your dedicated account manager or Support.
Customer context is a Customer Profiles feature that uses AI analysis to turn conversation history into a reusable customer summary and facts. It captures a summary, facts, topics, and sentiment from each analyzed conversation, and shows them to human agents at handoff and on the person profile. The goal is to make each customer interaction continuous instead of starting from scratch.
Information from a conversation can get lost when the conversation moves from one agent to the next. The next human agent asks the customer for the basics again. Handoffs are slow, questions repeat, and agents miss details.
Customer context solves this problem at handoff. Human agents get the story fast, so they can help without asking for the basics again. Customers do not have to repeat themselves.
Context in Person profile details
What Customer context includes [#what-customer-context-includes]
Customer context has 3 parts:
- An interaction memory for each analyzed interaction
- A customer summary across interactions
- Facts
Interaction memory [#interaction-memory]
AI analysis creates an interaction memory for each interaction it analyzes. Each interaction memory includes the following:
| Element | Description |
|---|---|
| Summary | A summary of the interaction. |
| Outcome | Whether the customer's issue was resolved. Example: Success. |
| Outcome reason | Why the interaction ended with its outcome. |
| Sentiment | How the customer felt during the interaction. |
| Topics | The topics discussed in the interaction. Each topic has its own outcome and outcome reason. |
Customer summary [#customer-summary]
The customer summary is a summary across the person's analyzed interactions. It covers lasting facts about the person, the current state, open and resolved items, and guidance for the next agent.
Facts [#facts]
Facts are details about the person, each with a key and a value, for example, order_number: 48213977. Facts include the custom facts your business defines. Customer context resolves each fact across interactions with a fixed rule instead of AI: when a fact changes, the most recent value applies. Each interaction keeps the value extracted from it.
An interaction can have no facts even after AI analysis processes it. For example, if a customer sends only a greeting and does not reply, there is nothing to extract.
How Customer context works [#how-customer-context-works]
Customer context connects features across AgentOS products:
- AI analysis processes conversations. AI analysis in Insights processes conversations in two situations:
- When a conversation closes: AI analysis processes the closed conversation. The results feed the facts recorded for the person, including custom facts, and the AI customer context card in Inbox.
- When a chatbot, Journey, or AI agent hands off a conversation to a human agent: AI analysis processes the conversation up to the handoff.
- Custom facts define what to extract. Custom facts in Customer Profiles set the business-specific details that AI analysis extracts. Examples include an order number, a recipient name, or a policy number. Define custom facts once for your whole account. They apply to all conversations analyzed after you define them.
- The AI customer context card shows the briefing. The AI customer context card in Inbox shows a briefing to the human agent at handoff. The briefing includes the current interaction, a customer summary, and the customer's past interactions. The agent can start helping right away.
- AI agents and external systems can use the context. AI agents get Customer context through the Context MCP server, and your external systems get it through the Context API. Both can read a person's summary and interaction memories, search memories by meaning and keywords, and work with fact definitions. The Context API can also send webhook events when the context changes.
Where Customer context appears [#where-customer-context-appears]
Customer context appears in the following places:
-
AI customer context card in Inbox: When a chatbot, Journey, or AI agent hands off a conversation, the human agent gets a briefing in My Work. The briefing appears on the AI customer context card. The card is read-only and shows the following:
- An analysis of the current interaction. The analysis includes the interaction summary, outcome reason, interaction outcome, sentiment, up to 4 topics, and up to 5 facts.
- A customer summary of the analyzed past interactions, not including the current interaction.
- The customer's analyzed past interactions from all queues.
Without a handoff, the card shows past interactions only.
-
Context section on the person profile: The Context section shows a summary across the person's conversations and the most recent value of each fact. It also includes Memory history, a table with one row per conversation.
The Customer context summary is different from the AI conversation summary in Inbox. For details, see Questions and troubleshooting.
Enable Customer context [#enable-customer-context]
Before you enable Customer context, check the following requirements:
- You need the
profile/context/managepermission. For details, see Permissions. - To turn on the AI customer context card in Inbox, you need the
inbox/settings/ai/managepermission. For details, see Inbox permissions.
To use Customer context, complete the following setup:
- Turn on AI analysis in Insights settings.
- Turn on Customer context on the Custom facts tab in Customer Profiles. For details, see Turn Customer context on or off.
- Define custom facts.
- To show Customer context to human agents in Inbox, go to Inbox → Settings → Productivity → Inbox AI → AI customer context tab. Turn on Show AI customer context to agents and select the queues. For details, see AI customer context settings.
The Customer context toggle in Customer Profiles and the Show AI customer context to agents toggle in Inbox work independently:
- The Customer context toggle controls whether AI analysis collects context.
- The Inbox toggle controls whether agents in the selected queues see the AI customer context card.
If you turn off Customer context but keep the Inbox toggle on, agents still see the context collected until you turned Customer context off. If you turn on Customer context but keep the Inbox toggle off, AI analysis collects context in the background, but agents do not see it.
Customer context builds on AI analysis. The AI analysis features are not compliant and must not be used with Protected Health Information (PHI) or in HIPAA-eligible environments.
If your organization is subject to HIPAA regulations or handles PHI, do not use AI analysis for any PHI-related data, communications, or processing. To ensure full compliance with HIPAA requirements, you can turn off these features in Insights settings.
For questions about HIPAA compliance, turning off these features, or compliant alternatives, contact your compliance officer or Infobip Support.
By using AI analysis with PHI, you do so entirely at your own risk. Infobip assumes no responsibility or liability for any breach, unauthorized disclosure, or non-compliance with HIPAA regulations resulting from such use.
Turn Customer context on or off [#turn-customer-context-on-or-off]
The Custom facts tab has a global toggle that turns Customer context on or off for your account. While Customer context is turned off, AI analysis does not extract custom facts or build new Customer context. If Show AI customer context to agents is on in Inbox, agents still see the context collected before you turned Customer context off.
To turn Customer context on or off:
- Go to Customer Profiles → Configuration → Custom facts tab.
- Turn on the Enabled toggle to start Customer context. Turn off the toggle to stop it.
Customer context also requires AI analysis. The AI analysis setting in Insights settings is one account-level setting that controls topic detection, outcome evaluation, interaction summaries, and Customer context.
Permissions [#permissions]
To give users access to Customer context, assign them a role that includes the permissions they need. The following roles include the permissions for Customer context:
| Role | Permissions | What it enables |
|---|---|---|
| Customer profile manager | profile/context/manage, profile/context/view | Set up Customer context and custom facts in Customer Profiles, and view Customer context on the person profile. |
| Supervisor for Inbox | inbox/settings/ai/manage | Show AI customer context to agents and select the queues on the AI customer context tab in Inbox AI settings. |
For granular access, add the permissions to a custom role. For all Inbox permissions, see Inbox permissions. To learn how to assign roles and permissions, see Manage roles.
Custom facts [#custom-facts]
Custom facts are the details AI analysis extracts from every customer conversation, such as an order number, a recipient name, or a policy number. Use custom facts to define the details that matter to your business. AI analysis then looks for these details in each conversation analyzed after you save the fact, and records them for that person. Extracted facts appear in the AI customer context card in Inbox and on the person profile.
To access custom facts, go to Customer Profiles → Configuration → Custom facts tab.
Key capabilities of custom facts:
- Business-specific details: Extract the details your business needs, not generic categories.
- Account-wide setup: Define facts once for your whole account. Each fact applies to all conversations analyzed after you save the fact.
- Agent handoff: Extracted facts appear in the AI customer context card that human agents see in Inbox at handoff.
How custom facts work [#how-custom-facts-work]
Keep the following in mind when you work with custom facts:
- Going forward only: When you create, edit, or delete a fact, the change applies only to conversations analyzed after you save it. AI analysis does not analyze past conversations again, and past conversations keep the facts extracted at the time.
- Conversation messages only: AI analysis extracts facts from the messages exchanged in the conversation. Messages sent from Journeys or Broadcast are not part of the conversation, so AI analysis does not extract facts from them.
- Language: Custom facts use the same language setting as AI analysis in Insights.
- Fact definition: Each custom fact has a name, a type, and a description. The name is unique per account. The type is Text, Number, Boolean, or Date. You cannot change the type after you save the fact. The description tells AI analysis what to extract.
- Stored per conversation: AI analysis stores the values of a fact for each conversation. When a fact changes across conversations, the person profile shows the most recent value.
- Guardrails: Guardrails prevent prohibited content from being stored as a fact value.
- Validation: If a fact definition is invalid or prohibited, Customer Profiles shows an error and does not save the fact.
- No near-duplicates: A defined list of facts prevents near-duplicate facts, such as
language,preferred_language, andspoken_language.
Create custom facts [#create-custom-facts]
To create a custom fact:
- Go to Customer Profiles → Configuration → Custom facts tab.
- Select Create custom fact.
- In the Name field, enter a name for the fact, for example, order_number. The name must be unique within your account. If the name already exists, the error An interaction fact with this name already exists appears.
- In the Description field, describe the fact. Example description: The order number the customer is asking about, as digits only.
- In the Type field, select a type: Text, Number, Boolean, or Date. The type determines the kind of value AI analysis extracts for the fact.
- Select Save.
You cannot change the type of a custom fact after you save it. You can edit only the name and the description.
You can have up to 100 custom facts per account. If you reach the limit, the error You have reached the maximum number of interaction facts appears.
AI analysis starts extracting the fact from conversations analyzed after you save it.
Follow these tips to get useful results:
- Name facts clearly: Human agents read fact names in the AI customer context card. Use names that are easy to understand at a glance, such as policy_number or delivery_date.
- Track the identifiers customers quote: Order, policy, and ticket numbers help agents find the correct record without asking the customer again.
- Keep the list focused: Add only the facts your agents use, so the AI customer context card stays easy to scan.
For guidance on names and descriptions, see Write effective fact descriptions.
Write effective fact descriptions [#write-effective-fact-descriptions]
AI analysis uses the description of a custom fact to decide what to extract. Clear definitions give more consistent values across conversations.
Follow these best practices when you define custom facts:
- Use one fact per concept: Define a separate fact for each detail. For example, define
order_numberanddelivery_dateas two facts instead of one fact that covers the whole order. - Describe what to extract and the expected format: State exactly which detail AI analysis must look for and how the value must look. Example description: The order number the customer is asking about, as digits only.
- Avoid near-duplicate facts: Before you create a fact, check the facts you already have. Facts such as
language,preferred_language, andspoken_languagecapture the same detail and split the values across several facts. - Use clear snake_case names: Use short, lowercase names with underscores, such as
order_numberorpolicy_number. Human agents read these names in the AI customer context card. - Do not capture sensitive or regulated data: Do not define facts that capture sensitive or regulated data, such as health information. Do not use AI analysis with Protected Health Information (PHI). For details, see the HIPAA notice in Enable Customer context.
Edit custom facts [#edit-custom-facts]
You can edit the name and description of a custom fact. You cannot edit the type.
You can edit a custom fact at any time. Edits apply only to conversations analyzed after you save them. Values already extracted for past conversations do not change.
To edit a custom fact:
- Go to Customer Profiles → Configuration → Custom facts tab.
- Select the custom fact you want to edit.
- Edit the Name or Description field.
- Select Save.
Delete custom facts [#delete-custom-facts]
You can delete one or more custom facts at the same time.
To delete custom facts:
- Go to Customer Profiles → Configuration → Custom facts tab.
- Select the checkbox next to each fact you want to delete.
- Select Delete.
- To confirm the deletion, select Delete.
After you delete a custom fact, AI analysis stops extracting it from conversations analyzed after you delete it. Past conversations keep the facts extracted at the time.
Fact suggestions [#fact-suggestions]
You can get suggestions for facts worth tracking. AI analysis reviews a sample of your past conversations and suggests relevant facts, each with a name and a description.
Keep the following in mind:
- On demand: AI analysis generates suggestions when you request them.
- Limits: You can request suggestions up to 50 times. A cooldown period applies between requests. You can have up to 100 custom facts per account.
- You stay in control: Only suggestions that you approve become custom facts. You can edit, delete, or add facts at any time.
- Similar facts: A suggestion can still be similar to a fact you already have, for example, under a different name. Review each suggestion before you approve it.
To review suggested facts:
- Go to Customer Profiles → Configuration → Custom facts tab.
- Select Suggest facts.
- Review each suggestion and compare it with the custom facts you already have.
- Select Approve for each suggestion you want to keep, and select Dismiss for the rest.
Approved suggestions become custom facts. AI analysis starts extracting them from conversations analyzed after you approve them.
Connect to Customer context [#connect-to-customer-context]
Connect your own systems over the Context API, and give AI agents access over the Context MCP server.
Context API [#customer-context-api]
Use the Context API to work with Customer context from your own systems:
- Manage custom facts: Create, view, update, and delete fact definitions. See Create fact definition.
- Get context for a person: Get the interaction memories of a person, the memory of a single interaction, or the most recent summary of a person. See Get person interaction memories and Get latest person summary.
- Search memories: Search the interaction memories of a person by meaning and by keywords. See Search person interaction memories.
- Receive webhook events: Get notified when Customer context creates or updates the facts, summary, sentiment, or topics of an interaction, or the summary of a person. See Context Webhook.
To receive webhook events, create a subscription in the AgentOS category. For the list of Context events, see Available webhook events.
In the API, the type of a fact is the valueType field. Its values are STRING, NUMBER, BOOLEAN, and DATE. The Text type in the web interface is STRING in the API.
Your API key needs one of the following scopes:
| Operation | Scopes |
|---|---|
| View fact definitions, memories, and summaries, and search memories | context:view, context:manage, people:read, or people:manage |
| Create, update, and delete fact definitions | context:manage or people:manage |
Context MCP server [#customer-context-mcp]
Use the Context MCP server to give AI agents access to Customer context. The server is in Early access and uses the https://mcp.infobip.com/context endpoint.
The server tools cover the following:
- The person summary
- Interaction memories, with summary, sentiment, facts, and topics
- Memory search by meaning and keywords, with an optional time window
- Lookup of a single interaction
- Listing and creating fact definitions
Turn on Customer context for your account before you connect the server. See Turn Customer context on or off.
Keep the following in mind when you use the Context MCP server:
- Look up by person ID: The tools find a person by person ID. If your AI agent knows only the phone number or email address of the customer, also connect the People MCP server, so the agent can find the person first. See Customer data and platform management.
- No updates or deletes of fact definitions: The server can list and create fact definitions, but it cannot update or delete them. To update or delete fact definitions, use the Context API or the Custom facts tab in Customer Profiles.
To connect the server:
- Infobip AI agents: Add the server as an MCP server tool. See Configure an AI agent.
- Other MCP clients: Connect with an API key or OAuth 2.1. See Using Infobip MCP servers.
Your API key needs the same scopes as for the Context API.
Questions and troubleshooting [#questions-and-troubleshooting]
Why does a person have no facts? [#why-does-a-person-have-no-facts]
A person can have no facts even when they have conversations. For example, if a customer sends only hi and does not reply, there is nothing to extract. AI analysis also does not extract facts while AI analysis or Customer context is turned off. On the person profile, facts also do not appear until AI analysis processes a closed conversation. Check that AI analysis is turned on in Insights settings and that you defined custom facts.
Why is the summary empty? [#why-is-the-summary-empty]
The summary on the person profile comes from closed conversations. The analysis of a closed conversation can take a few hours. A summary for a person with no closed, analyzed conversations can be empty. Also check that the conversation is linked to a person profile.
Why do changes to custom facts not show for earlier conversations? [#why-do-changes-to-custom-facts-not-show-for-earlier-conversations]
Changes to custom facts apply only to conversations analyzed after you save the change. AI analysis does not analyze earlier conversations again, so earlier conversations keep the facts extracted at the time.
How is the Customer context summary different from the AI conversation summary in Inbox? [#how-is-the-customer-context-summary-different-from-ai-conversation-summary]
AI analysis generates the Customer context summary and the handoff briefing automatically. Agents generate an AI conversation summary in Inbox on demand with Generate summary.
Do I need Insights to use Customer context? [#do-i-need-insights]
No.
How many fact suggestions can I get? [#how-many-fact-suggestions]
You can request fact suggestions up to 50 times. A cooldown period applies between requests.
How many custom facts can I have? [#how-many-custom-facts]
You can have up to 100 custom facts per account.
Related pages [#related-pages]
For more information about Customer context and the features it uses, see the following pages:
- Context section on the person profile
- AI customer context in Inbox
- AI customer context settings
- Insights settings
- AI usage
- Available webhook events
- Using Infobip MCP servers
- What is AgentOS
Was this page helpful?