Using ChatGPT conversations as source material for articles
I have been developing an abstract strategy game called Heitan, primarily through conversations with ChatGPT. From exploring the game's basic mechanics to refining its rules, playtesting, and conducting AI-based analysis, I have worked through a variety of tasks in these conversations.
Over the course of development, a substantial volume of conversation logs has accumulated. They contain not only the resulting rules and findings but also what I was thinking during development: which hypotheses I formulated, what I compared, and why I adopted some ideas while setting others aside. I wondered whether I could publish this development process as a series of articles.
At this point, I am considering sharing Heitan's development with an English-speaking audience through a Medium series on the game design process and the insights gained along the way. However, manually rereading all these conversations and organizing the information needed for articles would involve a considerable amount of work.
That led me to consider using Codex to write the articles. In a conversation with ChatGPT, I put it this way (translated from Japanese):
If I put the exported chat data and related material in a repository, I think I could leave the article writing itself to Codex.
The idea is to store the ChatGPT conversation logs in a GitHub repository so that Codex can access them, retrieve relevant information from the development records, and draft articles. I plan to work out and finalize the content in Japanese first, then produce English versions based on those articles.
If this works, the extensive conversations accumulated during development could become a source of material for writing. But first, I need to work out how to prepare that material.
Building the source archive before planning the series
While considering the structure of the first series, I asked ChatGPT (translated from Japanese):
How should I decide on the structure of the first series?
I followed up with another question (translated from Japanese):
Is there anything I should prioritize over planning the structure of the series?
Before planning the articles, I need to organize the development records. ChatGPT allows me to export my conversation history, but the exported data is not necessarily in a format suited to article production. A single export contains multiple conversations, including ones unrelated to Heitan. I therefore decided to extract the relevant conversations first and make them accessible to Codex.
I manage the work through GitHub issues. The first step was to create a repository for the source material needed to produce the articles.
source/
├── chat-export/
├── chats/
└── topics/
articles/
├── ja/
└── en/
scripts/
The chat-export directory holds the original data exported from ChatGPT, while chats stores the extracted individual conversations. The topics directory is intended for material organized by theme, and articles holds the articles themselves.
What mattered here was keeping the original sources separate from processed material. Writing articles involves summarizing conversations, combining statements, and rewriting passages for readability. But if processed material becomes mixed with the original text, it becomes difficult to verify what was actually said. I therefore decided to leave the original export unchanged and manage extracted conversations and edited material separately.
The original export data is also excluded from Git tracking. Codex can access it locally, but the raw export is not committed to the repository. This initial structure was established in Issue #1 and PR #5.
With a place to store the material, the next step was to implement the conversation extraction process.
What needs to be preserved when extracting conversations?
In Issue #2, an extraction process was implemented to generate one Markdown file per conversation from the ChatGPT export. Although this initially looked like a straightforward data conversion task, reviewing the implementation plan revealed several points that required attention.
The first was conversation branching. ChatGPT allows users to regenerate responses and edit earlier messages. Simply sorting the exported messages by timestamp may therefore produce a sequence that differs from the conversation actually displayed. I adopted an approach that reconstructs the currently selected branch by following parent nodes from current_node. If the node references are broken, the extraction process treats that as an error rather than trying to infer the missing information.
The second was message types. In addition to ordinary text, the export contains voice-related data, attachments, and tool-related information. Not every assistant message necessarily represents a response that was displayed to the user. For article production, I want material that allows me to examine the actual dialogue. I therefore decided to account for message visibility and content format without inventing textual content that was absent from the original data.
The third was reproducibility. If extracting conversations from the same export produces different file contents each time, it becomes difficult to inspect changes later. The process was designed to generate identical Markdown from identical input and to leave existing files untouched when their contents have not changed.
PR #6 implemented the extraction process with these requirements in mind, and all seven tests passed. Further improvements were subsequently made to how message timestamps were handled.
After reviewing the initial implementation, I decided that individual message timestamps should be preserved. The creation time of a conversation alone is not enough to determine when specific decisions were made during development. In PR #7, the extraction process was updated to retain timestamps for individual user and assistant messages. PR #8 then standardized the displayed times to Japan Standard Time (Asia/Tokyo).
At this stage, my priority was neither to condense the conversations nor to select passages relevant to particular articles. It was to preserve the original conversations as faithfully as possible in a reproducible format. If I was going to refer to past decisions when writing articles, I wanted to be able to verify the statements on which those decisions were based.
Extracting 34 Heitan conversations
With the extraction process in place, the next step was to select the relevant conversations. The ChatGPT export also contains conversations unrelated to Heitan. In Issue #3, I decided to extract conversations belonging to the ChatGPT Project named "Game Design".
However, I avoided selecting conversations by Project name alone. Project names can change, and multiple Projects can have the same name. Instead, I adopted an approach that uses a stable Project ID to identify the target conversations.
A manifest.json file was also introduced to manage the list of conversations to extract. It records conversation IDs, titles, creation timestamps, and other information, making it possible to verify which conversations are included.
Again, reproducibility was important. Running the process on the same data should produce the same results. Old files that no longer belong to the selected set should not remain among the extracted files. And the original export should remain unchanged throughout the process. Tests and verification procedures were prepared to check these conditions.
In PR #9, the extraction process successfully extracted 34 conversations from the Game Design Project. All 19 tests passed, and verification showed that rerunning the extraction produced no changes to the manifest or the 34 Markdown files.
I could now extract the selected conversations in one operation and access them as Markdown. However, the selection was limited to conversations within the Game Design Project. There may be Heitan-related discussions elsewhere, but those were outside the scope of this extraction. My priority was to define a clear scope and reliably extract the conversations within it.
The source material is ready. How should I organize it?
The basic source archive for article production is now in place: keeping the ChatGPT export as the original source, converting conversations to Markdown while accounting for branching and message timestamps, and extracting 34 conversations from the Project related to Heitan in a reproducible way. The conversation records are now available to Codex.
At this point, however, the archive is simply a collection of 34 individual Markdown files. When writing an article, I need to retrieve information about how a particular mechanic emerged or the process that led to a specific design decision. Rereading all 34 conversations from the beginning every time would be inefficient.
The next thing I want to consider is how to organize the conversations by theme. Categorizing information according to aspects of development—such as mechanics design, board size, playtesting, and AI analysis—could also help when planning the structure of the articles. But I will need to examine the actual conversations to determine which categories are appropriate.
Next, I will try creating thematic source documents and an index based on the 34 conversations.
AI Disclosure
This article was produced using AI based on human–AI conversation logs from my project.
Top comments (0)