CrewAI

Give your CrewAI agents persistent memory with procedural learning.

Installation

pip install mengram-ai[crewai]

Quick start

from integrations.crewai import create_mengram_tools  # included in mengram-ai
from crewai import Agent, Task, Crew

# Create memory tools
tools = create_mengram_tools(api_key="om-your-key")

agent = Agent(
    role="Support Engineer",
    goal="Help users with technical issues using past context",
    tools=tools,
)

task = Task(
    description="Help the user debug their deployment issue",
    agent=agent,
)

crew = Crew(agents=[agent], tasks=[task])
result = crew.kickoff()

Available tools

ToolDescription
mengram_searchSearch all 3 memory types (semantic, episodic, procedural)
mengram_rememberSave information to memory (auto-extracts all 3 types)
mengram_profileGet full user context via Cognitive Profile
mengram_save_workflowSave a completed workflow as a procedure
mengram_workflow_feedbackReport success/failure of a workflow

Procedural learning

When a CrewAI agent completes a multi-step task, Mengram automatically saves it as a procedure. Next time a similar task comes up, the agent already knows the optimal path — with success/failure tracking.

# Agent workflow is automatically extracted as a procedure
# On next similar task, the agent retrieves the procedure
results = tools[0].run("how to deploy to Railway")
# Returns the learned procedure with steps