> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Daily Workflows

> Common day-to-day workflows with Memanto.

# Daily Workflows & Automation

Automate daily memory management tasks with Memanto.

## What Are Daily Workflows?

Daily workflows are automated tasks that run on a schedule:

* **Daily Summaries** - Compile all day's memories into a summary
* **Conflict Detection** - Find contradictory memories
* **Memory Validation** - Verify important memories
* **Export & Backup** - Regular memory exports

## Daily Summaries

### What They Include

A daily summary shows:

* Total memories created today
* Breakdown by memory type
* Key facts discovered
* Important decisions made
* Potential issues detected

### Generate Summary - CLI

```bash theme={null}
memanto daily-summary
```

See the [Memory Commands CLI Reference](/cli/memory-commands) for output details.

## Conflict Detection

### Find Contradictions - CLI

```bash theme={null}
memanto conflicts
```

See the [Memory Commands CLI Reference](/cli/memory-commands) for details on resolving conflicts interactively.

## Scheduled Tasks

### Enable Daily Summary Schedule

Enable automated daily summaries:

```bash theme={null}
memanto schedule enable
```

### Check Schedule Status

```bash theme={null}
memanto schedule status
```

### Disable Schedule

```bash theme={null}
memanto schedule disable
```

See the [Schedule Commands CLI Reference](/cli/schedule-commands) for full configuration details.

## Related Operations

Daily workflows often call memory operations, but command-level details are maintained in the memory guides and CLI reference.

* Batch ingest: [Memory Operations](./memory-operations)
* Export commands and formats: [Memory Commands CLI Reference](/cli/memory-commands)

### Automated Backups

Set up a cron job for daily exports:

```bash theme={null}
#!/bin/bash
# backup_memories.sh

AGENT_ID="customer-support"
BACKUP_DIR="./backups"
DATE=$(date +%Y-%m-%d)

mkdir -p "$BACKUP_DIR"
memanto memory export --output "$BACKUP_DIR/${AGENT_ID}_${DATE}.md"

# Keep only last 30 days
find "$BACKUP_DIR" -type f -name "${AGENT_ID}_*.md" -mtime +30 -delete
```

Add to crontab:

```bash theme={null}
crontab -e

# Add line:
0 0 * * * /path/to/backup_memories.sh
```

## Workflow Automation Examples

### Daily Review Workflow

```python theme={null}
def daily_workflow(agent_id: str):
    """Run complete daily workflow."""

    # 1. Generate summary (CLI command)
    print("📊 Generating daily summary...")
    # subprocess.run(["memanto", "daily-summary", "--agent", agent_id], check=True)

    # 2. Check for conflicts (CLI command)
    print("🔍 Checking for conflicts...")
    # subprocess.run(["memanto", "conflicts", "--agent", agent_id, "--list"], check=True)

    # 3. Export backup
    print("💾 Exporting backup...")
    # memanto memory export command

    # 4. Report
    print("✓ Daily workflow complete")
```

### Weekly Analysis

```python theme={null}
def weekly_workflow(agent_id: str):
    """Run weekly memory analysis."""

    # Recall all new memories from past week
    week_ago = (datetime.now() - timedelta(days=7)).isoformat()

    response = httpx.get(
        f"http://localhost:8000/api/v2/agents/{agent_id}/recall/changed-since",
        params={"since": week_ago},
        headers={...}
    )
    new_memories = response.json()["memories"]

    # Analyze patterns
    type_counts = {}
    for mem in new_memories:
        mem_type = mem['type']
        type_counts[mem_type] = type_counts.get(mem_type, 0) + 1

    print(f"Weekly Summary ({week_ago}):")
    for mem_type, count in sorted(type_counts.items(), key=lambda x: x[1], reverse=True):
        print(f"  {mem_type}: {count}")
```

## Best Practices

### <Icon icon="check" /> DO

* Run daily summaries to track memory growth
* Check conflicts weekly
* Schedule recurring tasks for consistency

### <Icon icon="xmark" /> DON'T

* Ignore detected conflicts
* Let old memories accumulate unchecked
* Leave failed workflows unreviewed

## Next Steps

* **Memory Operations**: [Memory Operations Guide](./memory-operations)
* **Schedule Commands**: [Schedule Commands](/cli/schedule-commands)
* **Memory Commands**: [Memory Commands](/cli/memory-commands)

***

Automate your memory workflows for consistent, reliable agent operations!
