Mem0

Learn how to use Mem0 with Composio

Overview

SLUG

MEM0

Description

Mem0 assists with AI-driven note-taking, knowledge recall, and productivity tools, allowing users to organize, search, and generate content from stored information

Authentication Details

generic_api_key
stringRequired

Tools

SLUG: MEM0_ADD_NEW_MEMORY_RECORDS

Stores new memory records from a list of messages, optionally inferring structured content; requires association via `agent id`, `user id`, `app id`, or `run id`.

Action Parameters

agent_id
string
app_id
string
excludes
string
includes
string
infer
booleanDefaults to True
messages
arrayRequired
org_id
string
org_name
string
output_format
string
project_id
string
project_name
string
run_id
string
user_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_ADD_ORGANIZATION_MEMBER

Adds a new member, who must be a registered user, to an organization, assigning them a specific role.

Action Parameters

email
stringRequired
org_id
stringRequired
role
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_A_NEW_ORGANIZATION_ENTRY

Creates a new organization entry using the provided name and returns its details.

Action Parameters

name
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_PROJECT

Creates a new project with a given name within an organization that must already exist.

Action Parameters

name
stringRequired
org_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_MEMORIES_ENDPOINT

Deletes memories matching specified filter criteria; omitting all filters may result in deleting all memories.

Action Parameters

agent_id
string
app_id
string
metadata
object
org_id
string
org_name
string
project_id
string
project_name
string
run_id
string
user_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_PERFORM_SEMANTIC_SEARCH_ON_MEMORIES

Searches memories semantically using a natural language query (required if `only metadata based search` is false) and/or metadata filters.

Action Parameters

agent_id
string
app_id
string
categories
array
fields
array
filter_memories
boolean
only_metadata_based_search
boolean
org_id
string
org_name
string
output_format
string
project_id
string
project_name
string
query
stringRequired
rerank
boolean
run_id
string
top_k
integerDefaults to 10
user_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_RETRIEVE_MEMORY_BY_UNIQUE_IDENTIFIER

Retrieves a complete memory entry by its unique identifier; `memory id` must be valid and for an existing memory.

Action Parameters

memory_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_SEARCH_MEMORIES_WITH_QUERY_FILTERS

Semantically searches memories using a natural language query and mandatory structured filters, offering options to rerank results and select specific fields; any provided `org id` or `project id` must reference a valid existing entity.

Action Parameters

fields
array
filters
objectRequired
org_id
string
org_name
string
project_id
string
project_name
string
query
stringRequired
rerank
boolean
top_k
integerDefaults to 10

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_ADD_MEMBER_TO_PROJECT

Adds an existing user to a project (identified by `project id` within organization `org id`), assigning a valid system role.

Action Parameters

org_id
stringRequired
project_id
stringRequired
role
stringRequired
username
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_AN_EXPORT_JOB_WITH_SCHEMA

Initiates an asynchronous job to export memories, structured by a schema provided in the request body and allowing optional filters.

Action Parameters

app_id
string
org_id
string
project_id
string
run_id
string
session_id
string
user_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_A_NEW_AGENT

Creates a new agent with a unique `agent id` and an optional `name`; additional metadata may be assigned by the system.

Action Parameters

agent_id
stringRequired
name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_A_NEW_AGENT_RUN

Creates a new agent run in the mem0.ai system.

Action Parameters

name
string
run_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_A_NEW_APPLICATION

Creates a new application, allowing metadata to be passed in the request body (not an explicit field in this action's request model); ensure `app id` is unique to avoid potential errors or unintended updates.

Action Parameters

app_id
stringRequired
name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_A_NEW_USER

Creates a new user with the specified unique `user id` and supports associating `metadata` (not part of the request schema fields).

Action Parameters

user_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_CREATE_MEMORY_ENTRY

Lists/searches existing memory entries with filtering and pagination; critically, this action retrieves memories and does *not* create new ones, despite its name.

Action Parameters

filters
object
org_id
string
org_name
string
page
integer
page_size
integer
project_id
string
project_name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_AN_ORGANIZATION

Permanently deletes an existing organization identified by its unique id.

Action Parameters

org_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_A_SPECIFIC_MEMORY_BY_ID

Permanently deletes a specific memory by its unique id; ensure the `memory id` exists as this operation is irreversible.

Action Parameters

memory_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_ENTITY_BY_TYPE_AND_ID

Call to permanently and irreversibly hard-delete an existing entity (user, agent, app, or run) and all its associated data, using its type and id.

Action Parameters

entity_id
stringRequired
entity_type
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_MEMORY_BATCH_WITH_UUIDS

Deletes a batch of up to 1000 existing memories, identified by their uuids, in a single api call.

Action Parameters

memory_ids
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: MEM0_DELETE_PROJECT

Permanently deletes a specific project and all its associated data from an organization; this action cannot be undone and requires the project to exist within the specified organization.

Action Parameters

org_id
stringRequired
project_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired