Example use case
You are designing a product on Priors and need to decide how many agents to create and where memory boundaries sit. The three reference products each map to a distinct layout:Sales agent (one agent per prospect)
Sales agent (one agent per prospect)
Remembers each prospect’s budget, stack, and deal history across weeks of calls and emails. Each prospect gets a dedicated agent with learning enabled so prospect records never mix.
Setup
Create one agent per trust boundary. Inside each agent, use threads to organize individual conversations, tickets, or sessions:- One agent per prospect for the sales agent (learning on).
- One shared agent loaded with manuals for the inbound support line (learning off).
- One shared agent per internal team for the team assistant (learning on).
agent_id in your own database. Every API call targets one agent_id in the path.
Benefit with Priors
- Cross-thread continuity: a fact learned in an email thread is immediately available in a later call thread on the same agent.
- Ingest once, answer everywhere: a manual uploaded once serves every support thread on that agent.
- Strict tenant isolation: two separate agents share no memories, files, or conversation history.
What goes wrong
Recommendation
Decide the trust boundary first, then create one agent per boundary. Never rely on threads or headers to isolate private memories between separate customers.Calls used
- Guides: Start here, Agents, Threads, Your data
- API reference: Create agent, Get agent, Create thread