AI NewsProductivityAnnouncement

Salesforce cut its Help Agent context lookup to under 200ms

Salesforce says it brought median context lookup for its in-app Help Agent below 200 milliseconds. The team moved work out of the agent and into a prebuilt graph.

AI News

Editorial2 min read

LinkedInX
Salesforce Engineering article on building context for an AI help agent

Why it mattersMost agent slowness and most of the bill is the context step. A team can copy this and get a measurable drop in cost and latency.

Most AI agents feel slow because they look things up at the last minute. Salesforce says it brought the median lookup for its in-app Help Agent below 200 milliseconds. The team did it by moving the lookup work out of the agent and into a graph built in advance.

Akshay Sharma wrote up the five lessons on the Salesforce Engineering blog today. He describes what the team runs in production for the in-app Help Agent. The system is built on what Salesforce calls Data 360 data graphs.

Precompute the hard part

Sharma says the biggest change was doing less work when the user asks a question. The agent used to walk from a case, to an account, to the orders and products. Now the team builds a graph for each customer in advance. One example tenant has more than 1,000 SKUs on record. It also has more than 800 cancelled orders. For that customer, the agent reads one prebuilt node and stops.

The team groups the graph around the questions the agent is asked. One graph holds people and their roles. Another holds the products a customer owns. A third holds health scores. Each is built for a known question the agent needs to answer.

The numbers Salesforce published

Sharma reports two figures from the move to Data 360 as the storage layer. At five callers at the same time, median latency fell by about 48 percent. At thirty callers at the same time, it fell by about 40 percent. The team now sees a median (P50) under 200 milliseconds in production. Earlier runs were near 400 milliseconds.

A check before go-live found 2,765 tenants with missing or wrong account IDs. It also found ten tenants with scores but no tenant record at all. Salesforce holds more than half a billion of these records across nearly two million tenants. The error rate is small. The count is large enough to break answers for real customers.

The rules the team now follows

Three of the lessons sit outside the latency work. One: the permission check runs before the context is pulled. Sharma writes that "asking the model to ignore unauthorized records is not an access control strategy." Two: a longer prompt often reads worse. He points at the "Lost in the Middle" research to argue that the model drops facts buried in long inputs. Three: deployments run through a pipeline. It rebuilds a sandbox in about eight minutes. The old process took days.

For a team building its own agent, the test is simple. Take the slowest question the agent answers. Look at where the time goes. If most of it is in the context step, the Salesforce pattern says one thing. Pay for that work once per customer, in advance.

Source

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project