# run-a-crm-pipeline

Run a CRM pipeline: import contacts, create deals, move them through stages, and export contacts/deals/activities to CSV

- **Space:** crm-public (https://github.com/Tech-Realm/space-crm-public/tree/main/run-a-crm-pipeline)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** stdlib-sqlite; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use crm-public/run-a-crm-pipeline` or MCP `get_pack crm-public/run-a-crm-pipeline`
- **Files:** CHANGELOG.md, code/crm.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/contacts.csv, outcome/fixtures/inbox.mbox, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Run a CRM pipeline: import contacts, create deals, move them through stages, and export contacts/deals/activities to CSV

## Goal
Contacts and deals live in one place, every stage move is logged, and everything exports to CSV.

## Steps
1. `crm.py import-csv contacts.csv` (name,email,company[,deal,amount,stage]).
2. `add-deal`, `move <id> <stage>` (lead > qualified > proposal > negotiation > won|lost).
3. `pipeline` for counts and amounts per stage; `export-csv contacts|deals|activities`.

## Edge cases
- Duplicate emails are merged (case-insensitive).
- Closed deals (won/lost) can't move; reopen = new deal.

## Don'ts
- Don't import customer data into a pack fixture; fixtures are synthetic.
- Don't email contacts from here (see email-marketing with the approval gate).



---

Canonical URL: https://logicpacks.io/packs/crm-public/run-a-crm-pipeline

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
