HomeClaude / Claude CodeExcelの業務フロー、AIには「見出し5個」しか見えていなかった — 図形に隠れた180個が消える罠

Excelの業務フロー、AIには「見出し5個」しか見えていなかった — 図形に隠れた180個が消える罠When feeding Excel workflow diagrams to AI, text embedded in Shape objects is…

AI2 点サマリ2 key points
  • ExcelのShapeオブジェクト内に埋め込まれたテキストはAIが読み取れず、業務フロー図の見出しが5個しか認識されないケースが報告された。
  • 図形データを正しく抽出・変換してからAIに渡す前処理の重要性を示す事例だ。
  • When feeding Excel workflow diagrams to AI, text embedded in Shape objects is invisible to the model — reducing 180 headings to just 5.
  • This highlights the critical need to extract and convert shape text before passing Excel files to AI tools.

要約と収集メタデータをもとに生成した AI 解説本文です。元記事全文の転載・翻訳ではありません。This AI explainer is generated from the summaries and collected metadata, not from a reproduction or translation of the full source article.

Excelで作られた業務フロー図をそのままAIに読み込ませると、図中に並ぶはずの見出しがごく一部しか認識されない——。そんな落とし穴が改めて注目を集めている。ある事例では、本来180個ある見出しのうちAIが把握できたのはわずか5個で、残りは丸ごと欠落していたという。

原因は、Excelにおけるデータの保持方法の違いにある。xlsx形式のファイルは実体としてはZIP圧縮されたXMLの集合体で、セルに入力した値はワークシートのXML(sheet1.xmlなど)に格納される。一方、四角形や矢印といった図形(Shapeオブジェクト)や、その中に書き込んだテキストは、描画レイヤーを扱う別のXML(drawing1.xmlなど)に保存される。業務フロー図の多くは、この図形の内部にプロセス名や判断条件を書き込む形で作られている。

問題は、AIやその前段にある変換ツールが「セルの値」だけを読み取り、描画レイヤーを無視しがちな点だ。pandasやopenpyxlといった一般的なライブラリはセルデータの扱いに強い一方、図形内テキストの抽出は限定的とされる。結果として、モデルにはセルに残ったわずかな文字列しか渡らず、図形に埋め込まれた大半の情報が消えてしまう。

ExcelのShapeオブジェクト内に埋め込まれたテキストはAIが読み取れず、業務フロー図の見出しが5個しか認識されないケースが報告された。
🧡 Claude / Claude Code · 本記事のポイント

ここで重要なのは、LLMがファイルそのものを直接「見て」いるわけではないという前提だ。実際にモデルへ届くのは、取り込みパイプラインが抽出したテキストにすぎない。したがって欠落が起きても、AIの読解力ではなく前処理の設計に原因がある可能性が高い。同種の現象は、画像化された文字を含むPDFや、テキストボックスを多用したPowerPointでも起こりうる。

対策としては、描画XMLを直接パースして図形内テキストを取り出す、あるいは図形情報に対応した抽出処理を挟み、構造化テキストに変換してからAIに渡す方法が挙げられる。可視化された図であっても、機械にとって読める形へ整える前処理の一手間が、精度を左右すると言える。ツールへ丸投げする前に「モデルには何が見えているのか」を確認する姿勢が、実務では欠かせない。

Spreadsheets remain one of the most common formats for documenting business processes, and teams increasingly hand those files to large language models to summarize, restructure, or automate the workflows they describe. A recent post on Zenn highlights a subtle but consequential failure in that pipeline: when an Excel workflow diagram assembled from Shape objects was fed to an AI tool, the model appeared to recognize only about five of the roughly 180 headings present. The remaining text was effectively invisible to the model, and nothing in the output signaled that anything was missing.

The cause is structural rather than a limitation of the model's reasoning. A modern Excel file (.xlsx) is a ZIP archive containing multiple XML parts. Cell values live in the worksheet XML, but text typed into drawing objects — text boxes, autoshapes, connectors, and the boxes that make up a flowchart — is stored separately in DrawingML parts under a drawings folder. To a person viewing the sheet, both look like text on a grid. To a program that reads only cell values, the shape text does not exist.

This distinction matters because many tools that prepare Excel data for an LLM extract cell contents and ignore the drawing layer. Popular Python libraries such as pandas and openpyxl are oriented around cells and tables; openpyxl exposes some drawing information but does not surface shape text in a convenient, first-class way. When such a converter turns a spreadsheet into CSV, Markdown, or plain text for a model, any content that lived inside shapes is dropped before the model ever sees it. The model then answers confidently based on the fraction of the document it actually received.

The problem is especially acute in workflows common in Japanese enterprises, where Excel is frequently used as a general-purpose diagramming and layout tool. Process flows, organization charts, and approval routes are often drawn with connected shapes rather than entered into cells, a style sometimes associated with the "Excel graph paper" convention. A file that looks information-rich on screen can therefore carry most of its meaning in a layer that text-based extraction skips entirely.

The practical remedy is preprocessing: extract and convert the shape text into a form the model can read before passing the file along. Because the drawing XML is accessible inside the archive, one approach is to parse those parts directly and pull the text runs from each shape, optionally preserving position or connection data so the flow's structure survives. On Windows, COM automation through libraries like pywin32, or tools built on the Office object model, can enumerate shapes and read their text more reliably than pure-parsing approaches. Commercial libraries also offer shape-aware extraction. The common thread is that the transformation step, not the model, is where fidelity is won or lost.

When feeding Excel workflow diagrams to AI, text embedded in Shape objects is invisible to the model — reducing 180 headings to just 5.
🧡 Claude / Claude Code · Key takeaway

An alternative worth considering is treating the diagram as an image. Rendering the sheet or the shape region and passing it to a vision-capable model lets optical character recognition and layout understanding recover text that a structural parser might miss, though this trades one set of errors for another and can struggle with dense or overlapping elements. In some cases, combining both signals — extracted shape text plus a rendered image — is likely to produce the most complete result.

The broader lesson extends beyond Excel. Document ingestion for AI systems, including retrieval-augmented generation, depends heavily on how faithfully a file is converted to text. PDFs, slide decks, and scanned forms all have layers or encodings that naive extractors miss, and the failures tend to be silent: the model produces fluent output regardless of how much context it actually received. Validating that extraction captured what a human sees — for instance, by checking that the number of detected headings matches expectations — is a cheap safeguard against confidently wrong answers.

The Zenn case is a useful reminder that when AI results seem thin or incomplete, the problem may lie upstream in the data handed to the model rather than in the model itself. As organizations move toward automating document-heavy workflows, the reliability of these systems will depend less on raw model capability and more on the unglamorous work of parsing, extraction, and verification that happens before a prompt is ever sent.

  • 出典SourceZenn ClaudeコミュニティCommunity
  • 直近30件の平均重要度Avg importance, last 301=Info · 2=Medium · 3=High
  • 配信形式FormatブログBlog
  • 重要度Importance重要度 MediumMedium priority(Claude / Claude Code 169件中、同等以上 118件)(118 of 169 Claude / Claude Code entries are equal or higher)
  • 情報の寿命Half-life📘 中期 (チュートリアル)Medium-term (tutorial)
  • 原文言語Source languageJA
  • 収集日時Collected2026/07/20 06:41

本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (zenn.dev) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (zenn.dev).

🧡Claude / Claude Code の他の記事More from Claude / Claude Codeもっと見る →View more →