Skip to content

Instantly share code, notes, and snippets.

"""
This script processes conversation data from a JSON file, extracts messages,
and writes them to text files. It also creates a summary JSON file with a summary
of the conversations. The script is designed to be run as a command-line interface (CLI),
allowing the user to specify the input JSON file and output directory.
Usage:
python script_name.py /path/to/conversations.json /path/to/output_directory
"""