# AI Agent Skill: Agent CRM & Pipeline Manager

Control the user's CRM leads, pipeline stages, lead scores, and timeline notes directly via curl or 1-click links without browser automation.

---

## Workspace Credentials
- **Endpoint**: https://tozcrm.pages.dev/api/action
- **Workspace Token**: ag_live_default

---

## 1. CRM Lead Management Commands (for Agentic AIs / curl)

### A. View Lead Quality & Analytics
```bash
curl -s "https://tozcrm.pages.dev/api/action?token=ag_live_default&module=crm&cmd=stats"
```

### B. List Leads
```bash
curl -s "https://tozcrm.pages.dev/api/action?token=ag_live_default&module=crm&cmd=list"
```

### C. Create a New Lead
```bash
curl -s -X POST "https://tozcrm.pages.dev/api/action" \
  -d "token=ag_live_default&module=crm&cmd=add&name=Bruce+Wayne&company=Wayne+Enterprises&email=bruce@wayne.com&phone=+15550199&stage=Contacted&score=92&value=120000&notes=Enterprise+lead"
```

### D. Bulk JSON Action Block (Recommended for Batch Updates)
```json
[
  {
    "action": "create_lead",
    "name": "Diana Prince",
    "company": "Themyscira Ltd",
    "email": "diana@them.com",
    "stage": "New Lead",
    "score": 90,
    "value": 80000,
    "notes": "High priority enterprise lead"
  },
  {
    "action": "add_note",
    "id": "LEAD-1",
    "note": "Scheduled architectural demo for Thursday"
  },
  {
    "action": "move_stage",
    "id": "LEAD-2",
    "stage": "Closed Won"
  }
]
```
