From Conversation Data to a Year-in-Review: A Reproducible AI Collaboration Practice

    Platform year-in-review features are often limited by data scope, availability windows, access rules, and fixed templates. This article describes a reproducible pipeline that turns your own LLM conversation records into an explainable, regenerable year-in-review: prepare and anonymize data, define metrics, generate structured output, render static and interactive views, and validate before publishing. It also explains why a closed loop of structured goals, verifiable feedback, and iterative correction works better than a one-shot prompt.

    From Conversation Data to a Year-in-Review: A Reproducible AI Collaboration Practice

    1. Why Build Your Own Year-in-Review

    Platform year-in-review products are often constrained by data scope, open windows, access conditions, and display templates. Users rarely get a summary that truly matches how they work. For developers, a more controllable approach is to treat conversation records from the large-model assistant they use most as the data source, and build a full pipeline: data preparation, metric design, structured generation, visual presentation, and validation before publishing.

    The goal is not a polished paragraph. A useful year-in-review has three properties. First, metrics are explainable: every number can be traced to a definition. Second, charts are reproducible: the same input produces a stable structure. Third, interaction degrades gracefully: a dynamic view can fall back to a static view when performance is limited. After dozens of iterations, one conclusion stands out: there is no lasting “universal prompt.” What works is a collaboration loop of structured goals, verifiable feedback, and multi-round correction.

    2. Architecture: Data, Analysis, and Presentation

    Split the system into three layers:

    1. Data layer: Collect raw conversation records, timestamps, message lengths, and session boundaries, then anonymize and normalize them.
    2. Analysis layer: Define dimensions such as volume, topics, time, sentiment, usage habits, and interaction style. Combine rule-based statistics with model summarization to produce structured results.
    3. Presentation layer: The static version uses templates and ASCII charts. The dynamic version uses browser canvas or WebGL for particles, zoom, and interaction, with a static fallback.

    This split keeps responsibilities clear. The model handles synthesis and narrative; deterministic statistics stay in rules. The presentation layer does not depend on raw private data. It only consumes anonymized aggregates.

    3. Data Preparation and Privacy Boundaries

    Start with the AI assistant you use most, and export or organize conversation records for a defined time range. If the data is thin, do not force a “complete-looking” conclusion. Models tend to fill in details that were never provided. Cover the main periods of use, and state explicitly in the input that missing fields should be marked unknown.

    Handle privacy before analysis. Remove identifiable information such as names, addresses, account identifiers, and contact details. Classify topics at a coarse grain. Keep only aggregate statistics and the time distributions you actually need. For sensitive dimensions such as sentiment or personality-like traits, label the result as “model inference, not a factual judgment.” Do not present an entertainment summary as a psychological assessment.

    A usable intermediate structure looks like this:

    1. {
    2. "period": "year range",
    3. "total_messages": 0,
    4. "total_chars_sent": 0,
    5. "total_chars_received": 0,
    6. "hour_distribution": {"early morning":0,"morning":0,"afternoon":0,"evening":0,"late night":0},
    7. "topic_top": [{"name":"","count":0,"comment":""}],
    8. "emotion_curve": [{"period":"","score":0}],
    9. "tags": [],
    10. "badges": [],
    11. "confidence_notes": []
    12. }

    Use confidence_notes for reminders such as “simulated data,” “insufficient sample,” or “inferred item.” Those notes must remain visible in the final presentation.

    4. Dimensions and Metric Definitions

    The most common failure is a striking chart with an unclear definition. Write a metric dictionary before asking the model to narrate. For example:

    • Interaction volume: message count, characters sent and received, and session count.
    • Time habits: most common interaction periods, continuous conversation length, and active-day distribution.
    • Topic mix: emotion, discussion, creation, learning, role-play, and other.
    • Sentiment trajectory: weekly or monthly aggregates, scored on a bounded scale and marked as inferred.
    • Behavior profile: curiosity, reliance, depth of analysis, desire to express, emotional sensitivity, and frequency of self-examination.
    • Tags and badges: tags summarize patterns; badges add a playful layer, but both must rest on the data.

    For “personality” dimensions, use the wording “interaction-style profile” and avoid absolute claims. Every chart caption should state the data source and the statistical definition.

    5. Structured Prompts: Turn a “Spell” into Constraints

    An effective prompt is not a pile of adjectives. It states the role, the input, the task, the output structure, and the validation rules. A template:

    1. You are an assistant for data narrative and visualization structure design. Generate a year-in-review only from the aggregate data I provide. Do not invent specific facts that were not provided.
    2. Task: Summarize six dimensions: volume, topics, time, sentiment, usage habits, and interaction style.
    3. Output requirements:
    4. 1. Output strict JSON with fields overview, topic_distribution, emotion_curve, profile_radar, time_histogram, tags, badges, narrative, and one_sentence;
    5. 2. Also provide an ASCII version of each chart, no wider than 80 characters;
    6. 3. Mark simulated or inferred data with "inferred": true;
    7. 4. Avoid empty phrasing; the copy must cite at least one concrete metric;
    8. 5. If data is insufficient, output missing_fields and weaken the conclusions.

    When iterating, do not only say “make it cooler.” Give verifiable feedback, for example: “the topic ranking is missing a one-line comment for each topic,” “the sentiment curve does not state its time grain,” or “the ASCII pie chart is hard to read; switch to a horizontal bar chart and keep a legend.” Change one class of problem per round so you can tell what actually improved.

    6. ASCII Visualization and the Static Version

    The static version is a good fit for fast delivery and for accessibility requirements. ASCII charts need few dependencies, but alignment, legends, and width still matter. For example:

    1. Interaction type mix
    2. Emotion ██████████ 28%
    3. Discussion ████████ 22%
    4. Creation ██████ 17%
    5. Learning █████ 14%
    6. Role-play ████ 11%
    7. Other ███ 8%
    8. Top 5 topics
    9. 1. Product design discussion ██████████ 32
    10. 2. Debugging code ████████ 26
    11. 3. Editing writing ██████ 20

    Implement the static version as “data template plus text rendering.” Freeze the analysis as JSON, then use template functions to produce the title, metric cards, ASCII charts, and narrative paragraphs. Keep the layout readable on mobile. Use a monospace font for charts. Treat color as a supplement, not as the only signal. For long text, provide a table of contents and collapsible sections.

    7. Dynamic Version: Particles, Zoom, and Interaction

    The dynamic version should increase immersion without sacrificing readability. Use progressive enhancement:

    1. Load aggregate data and a static summary on the first screen.
    2. If the browser supports canvas or WebGL, initialize a particle background and transitions.
    3. On scroll or click, trigger topic clustering, timeline zoom, and metric-card switching.
    4. On a low-performance device, or when the user prefers reduced motion, fall back to the static version automatically.

    Sketch:

    1. load(summaryJson)
    2. renderStatic(summaryJson)
    3. if supportsCanvas() and !prefersReducedMotion():
    4. initParticles(summaryJson.profile)
    5. bindZoom(summaryJson.timeline)
    6. bindHover(summaryJson.topics)
    7. else:
    8. keepStatic()

    For performance, cap the particle count, throttle updates, use visibility checks, and avoid heavy computation on the main thread. For interaction, provide keyboard access and text alternatives. Motion should carry information: particle density can map to interaction frequency, and zoom levels can move from year grain to month grain.

    8. Validation, Deployment, and the Collaboration Method

    After generation, run at least three checks. Numeric checks confirm that totals, shares, and time distributions are internally consistent. Sample checks confirm that randomly selected topic classifications look reasonable. Narrative checks confirm that every number in the copy can be found in the structured data. Keep an inferred mark on model inferences so the result is not misleading.

    For deployment, host a static site and store aggregates in object storage. If you need logs and monitoring alerts, combine general-purpose cloud product categories as needed. In a compliant cloud environment, categories such as general object storage, static site hosting, logging, and monitoring alerts—for example, the corresponding offerings from Baidu AI Cloud—can be assembled to fit the actual requirement. The front end should not be given direct access to raw conversation data, and availability of a given cloud service depends on that provider’s regions and terms.

    The larger shift is in how you collaborate. Treat “prompting fifty times” as a loop: define the goal, provide examples, apply constraints, review the result, and correct in a targeted way. There is no universal spell. The practical tool is structured iteration plus verifiable feedback. Once metric definitions, output structure, and validation rules are written clearly, a year-in-review can move from a one-off novelty to a reusable, explainable, deployable technical practice.