Skip to content
History

Everything that ever happened with the customer, for the agent to search.

The context covers what matters now. When the conversation needs more, the agent searches the customer’s entire history with any LLM: it searches by meaning and by keyword, pages through the timeline and opens a specific conversation. Every result comes back with a date, channel, outcome and source, and respects that agent’s permissions.

How it works

History searchexample
The customer says

“Last time you gave me a credit.”

The agent searches
niadra.search(
  subject=ctx.subject,
  query="credit for missed technician visit",
)
Niadra answers
  • Mar 12, 2026 · PhoneTechnician did not show up. $40 credit applied to the April bill. settled
  • Mar 14, 2026 · WhatsAppThe customer confirmed the credit and the new visit. settled
  • Nov 3, 2025 · AppVisit rescheduled at the customer’s request. no credit
Second missed visit in 12 months. Last time, a $40 credit.
  • Three operations: search, page through the timeline and open a conversation
  • “How many times has this happened” is a count, not a guess
  • The same permissions and verification level as the context
  • Through the SDK, the API or as an MCP tool, with the model you already use
  • The customer’s identifier is bound into the tool, out of the model’s reach: a malicious message cannot switch customers
  • Every search leaves a record: who asked, what they asked and what came back

What the agent can ask

  • Has this happened before? How many times?
  • What was promised last time, and by whom?
  • How was the last complaint settled?
  • Has she ever asked to cancel?
  • Has anyone handled this already? What was done?

Seven MCP tools

The same functions as the SDK, for agents that speak MCP. Each description teaches the model when to use it.

  • get_customer_context
  • track_event
  • record_action
  • resolve_identity
  • search_customer_history
  • get_customer_timeline
  • open_history_item

The next agent can already show up knowing.

Tell us what you are building. The people who reply are the people who write the code.