FactFlow: Automatic Fact Sheet Generation and Customization from Tabular Dataset via AI Chain Design & Implementation

Minh Duc Vu, Jieshan Chen, Zhenchang Xing, Qinghua Lu, Xiwei Xu, Qian FuarXiv 2025

Abstract

With the proliferation of data across various domains, there is a critical demand for tools that enable non-experts to derive meaningful insights without deep data analysis skills. To address this need, existing automatic fact sheet generation tools offer heuristic-based solutions to extract facts and generate stories. However, they inadequately grasp the semantics of data and struggle to generate narratives that fully capture the semantics of the dataset or align the fact sheet with specific user needs. Addressing these shortcomings, this paper introduces FactFlow, a novel tool designed for the automatic generation and customisation of fact sheets. FactFlow applies the concept of collaborative AI workers to transform raw tabular dataset into comprehensive, visually compelling fact sheets. We define effective taxonomy to profile AI worker for specialised tasks. Furthermore, FactFlow empowers users to refine these fact sheets through intuitive natural language commands, ensuring the final outputs align closely with individual preferences and requirements. Our user evaluation with 18 participants confirms that FactFlow not only surpasses state-of-the-art baselines in automated fact sheet production but also provides a positive user experience during customization tasks.

Introduction

Data storytelling through "fact sheets"—single-page infographics that combine visualizations with narrative text—is a powerful way to communicate insights. However, creating them is a high-barrier task. It requires a rare mix of data science expertise, graphic design skills, and narrative flair.

Existing automated tools often fall short in two ways. First, they suffer from semantic blindness, relying on hard-coded heuristics that fail to grasp the actual meaning of data columns, leading to irrelevant or awkward "facts." Second, they lack flexibility; most tools are static, meaning if a user wants to highlight a specific trend or change a chart, they must often restart the process or edit the output manually in a separate design tool.

The FactFlow Framework: Collaborative AI Workers

FactFlow moves away from the "one big prompt" approach common in many LLM applications. Instead, it utilizes an AI Chain—a decentralized team of five specialized LLM-based "workers," each with a specific persona, knowledge base, and set of instructions. This modular design ensures that each component of the fact sheet is handled by an agent optimized for that specific task.

The FactFlow architecture illustrating the collaborative AI workers and the dataset representation process.

The chain consists of several key roles:

  • Fact Idea Composer: Brainstorms and ranks the most interesting "fact leads" based on the dataset.
  • Data Extractor: Converts natural language ideas into precise SQL queries to pull the necessary data.
  • Data Visualizer: Determines the best chart type (bar, line, pie, etc.) and maps the data to visual channels.
  • Fact Writer: Crafts the narrative, using the LLM’s internal knowledge to suggest causal explanations.
  • Factsheet Organizer: Uses a custom optimization algorithm to arrange these facts into a balanced, dual-column layout.

To handle privacy and LLM token limits, FactFlow uses a Dataset Representation technique. Instead of uploading the whole file, it sends the SQL schema, column statistics, and anonymized samples to the agents, ensuring data security while maintaining context.

Interactive Customization

A core innovation of FactFlow is the ability for users to refine and customize generated fact sheets through simple natural language commands. This interactive loop allows users to specify exactly what they want to see, triggering the AI chain to update the layout in real-time.

The FactFlow workflow showing initial fact sheet generation and subsequent modification via natural language queries.

For example, a user can type "Show me which country tourist spends the most," and the system will automatically extract the relevant data, generate a new visualization, and update the fact sheet. This capability bridges the gap between automated generation and manual design, providing a seamless user experience.

Evaluation and Results

In a user study with 18 participants ranging from novices to senior data scientists, FactFlow was compared against Calliope (a state-of-the-art research tool) and ChatGPT Plus (GPT-4). The results demonstrated FactFlow's clear advantage across several metrics:

  • Superior Quality: FactFlow achieved an average quality rating of 4.63/5, significantly higher than Calliope (2.37) and ChatGPT Plus (2.84).
  • Insightfulness: It scored particularly high (4.78) on "Insightfulness," as the Fact Writer agent provided context and explanations that simple chart-generators miss.
  • Usability: The system earned a System Usability Scale (SUS) score of 73.45, indicating it is intuitive enough for non-experts to use effectively.

Conclusion and Future Work

FactFlow demonstrates the power of specialized AI chains in automating complex creative and analytical tasks. By breaking down the fact sheet generation process into discrete, manageable steps, the system achieves higher quality and more relevant outputs than monolithic models. Future work will focus on expanding chart variety, improving scalability for high-dimensional datasets, and integrating Retrieval-Augmented Generation (RAG) to ground the Fact Writer in domain-specific knowledge bases.

Summary updated

BibTeX
@misc{vu2025factflow,
  author = {Minh Duc Vu and Jieshan Chen and Zhenchang Xing and Qinghua Lu and Xiwei Xu and Qian Fu},
  title = {{FactFlow: Automatic Fact Sheet Generation and Customization from Tabular Dataset via AI Chain Design \& Implementation}},
  year = {2025},
  eprint = {2502.17909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.17909},
}
Figure