Skip to main content

Store multiple memories

POST 

/api/v1/memory banks/:agent_id/memories

Store multiple memory items in batch with automatic fact extraction.

Features:

  • Efficient batch processing
  • Automatic fact extraction from natural language
  • Entity recognition and linking
  • Document tracking with automatic upsert (when document_id is provided)
  • Temporal and semantic linking

The system automatically:

  1. Extracts semantic facts from the content
  2. Generates embeddings
  3. Deduplicates similar facts
  4. Creates temporal, semantic, and entity links
  5. Tracks document metadata

Note: If document_id is provided and already exists, the old document and its memory units will be deleted before creating new ones (upsert behavior).

Request

Responses

Successful Response