Analyze your ChatGPT conversation history with visualizations and statistics.
- Message frequency analysis (weekly and monthly)
- Conversation frequency tracking
- Model usage statistics
- Detailed message and conversation counts
- Role-based message analysis (user vs assistant)
- Interactive visualizations
- Go to ChatGPT (https://chat.openai.com)
- Click the top right profile icon → Settings → Data Controls → Export Data
- You'll receive a zip file containing
conversations.json
- Copy
conversations.json
into this project's directory
This project uses Poetry for dependency management. Make sure you have Poetry installed:
curl -sSL https://install.python-poetry.org | python3 -
Then install the project dependencies:
poetry install
Run the analysis:
poetry run python -m chatgpt_analysis conversations.json
The script will create a timestamped directory (e.g., chat_analysis_20240315_143022
) containing:
analysis_results.txt
: Summary statisticschat_frequency.png
: Weekly conversation frequency visualizationmessage_frequency.png
: Weekly message frequency visualizationmonthly_messages.png
: Monthly message count visualizationmodel_usage.png
: Model usage over timemodel_distribution.txt
: Detailed model usage statistics
- Python 3.8+
- Poetry