Procedural Memory
Procedural Memory stores "how to do things" - workflows, preferences, patterns, and skills. Unlike factual memories that record what happened, procedural memories capture processes and behaviors that can be executed or followed.
What is Procedural Memory?
Procedural memories represent:
| Type | Description | Example |
|---|---|---|
| Workflow | Multi-step process | "How to onboard a new customer" |
| Preference | Behavioral pattern | "Always format dates as YYYY-MM-DD" |
| Pattern | Observed behavior | "User typically asks follow-up questions" |
| Skill | Learned capability | "Can generate SQL queries" |
| Habit | Repeated action | "Reviews PRs every morning" |
Procedure Structure
Each procedure contains:
| Field | Description |
|---|---|
| ID | Unique identifier |
| Goal | What the procedure achieves |
| Steps | Ordered list of actions |
| Trigger | What initiates the procedure |
| Outcome | Expected result |
| Confidence | How certain we are this works |
| Execution Count | Times this has been followed |
Step Structure
Each step in a procedure includes:
- Action - What to do
- Description - How to do it
- Required - Whether step is mandatory
- Conditions - When to execute this step
Using Procedures in the Visualizer
Viewing Procedures
Navigate to Procedures in the sidebar to see all defined workflows and skills. The grid view shows:
- Procedure title and type
- Success rate indicator
- Step count
- Last updated date
- Execution count
Creating Procedures
Click New Procedure to define a workflow:
- Set the goal/title
- Add ordered steps
- Define trigger conditions
- Specify required skills
Procedure Details
Click any procedure card to see:
- Full step-by-step breakdown
- Execution history
- Success metrics
- Related memories
API Usage
List Procedures
GET /api/v1/procedures/?limit=20
Headers:
x-tenant-id: your-tenant-id
Create Procedure
POST /api/v1/procedures/
Headers:
x-tenant-id: your-tenant-id
Content-Type: application/json
{
"id": "proc_onboarding_001",
"goal": "Onboard new customer",
"steps": [
{
"action": "Send welcome email",
"description": "Use template WEL-001",
"required": true
},
{
"action": "Schedule kickoff call",
"description": "Within 48 hours of signup",
"required": true
}
],
"skills_required": []
}
Integration Tips
- Learn from patterns - Extract procedures from repeated user behaviors
- Track success - Monitor execution outcomes to refine procedures
- Link to memories - Connect procedures to related factual memories
- Version procedures - Update steps as processes evolve