Agents
An agent is the named runtime identity that owns conversations inside a workspace. You run the model; Actx0 stores the sessions, messages, and memories that belong to that agent. Create agents in the dashboard or with the API. Each agent gets a uniqueid and an auto-generated handle. Name and description are yours to set.
The mental model
Actx0 does not run your model. Your app (or MCP client) calls the API around it — write after useful turns, search before the next reply.
Sessions
A session is one conversation run for an agent. Create it with an externalid (for example ticket-4821 or a user id) and optional labels. Actx0 also assigns an internal UUID used on message and memory routes.
You must pass an external
id and/or labels when creating a session. If two sessions would share the same external id or the same exact label set on that agent, creation fails.
Typical mapping:
Messages vs memories
You send Actx0 messages. Memories are the durable facts worth retrieving later — not a verbatim transcript.
When you create a user message, Actx0:
- Stores the turn and indexes it for search
- Extracts facts, preferences, and summaries from user messages
- Deduplicates and consolidates as the session grows
summary, fact, preference, short_lived, long_lived.
Two phases: capture and recall
Most apps use the agent in two places:- After a useful turn, create a message (or a memory) so Actx0 can store what should persist.
- Before the next model call, search memories (and optionally messages or knowledge) and put the best hits in the prompt.
1
Create an agent
In the dashboard or via Create Agent, give it a name and description.
2
Open a session
Create a session with an external
id that matches your user, ticket, or run.3
Capture the conversation
POST user and assistant messages as the chat proceeds. User messages trigger memory extraction.
4
Recall before you generate
Search memories with the current user question, then include only the hits that help.
Create an agent
?id=ticket-4821) and start writing messages or memories.
Agent count is limited by your workspace plan. Deleting an agent removes its sessions. Search stops returning that agent’s data.
Build against this flow
- One agent per product or persona; one session per user, ticket, or run.
- Prefer an external session
idyour app already has, so retries do not create duplicates. - Search memories before the model responds; write messages after the turn.
- Store preferences, decisions, and account facts — not secrets or raw credentials.
- Use regenerate when you need to rebuild memory from session history.
Next steps
Create Agent
Name, description, and response shape
Create Session
External ids, labels, and session lifecycle
Knowledge
Workspace documents for grounded retrieval
MCP
Memory tools for Cursor and other MCP clients
