-
Clone the Repository
git clone https://github.com/beautifulplanet/Communication-Analysis-Toolkit.git cd Communication-Analysis-Toolkit -
Install Dependencies
pip install -r requirements.txt
Place your sms_backup.xml (from SMS Backup & Restore) or calls.xml into a new folder:
cases/my_case/source_data/
Create cases/my_case/config.json:
{
"case_name": "My Case",
"user_label": "Me",
"contact_label": "Ex-Partner",
"sms_xml": "./cases/my_case/source_data/sms_backup.xml",
"output_dir": "./cases/my_case/output",
"date_start": "2020-01-01",
"date_end": "2025-12-31"
}python -m engine.analyzer --config cases/my_case/config.jsonNavigate to cases/my_case/output/ to inspect:
ANALYSIS.md: High-level statistical overview.TIMELINE.md: Chronological narrative of flagged events.EVIDENCE.md: Detailed list of every flagged message.
To ask questions like "When did he start gaslighting me?":
- Start the API server:
uvicorn api.main:app --reload
- Open your browser to
http://localhost:8000/docs. - Use the
/agent/chatendpoint to query your case data.