An AI Automators plugin that splits a text_long HTML field into JSON-encoded chunks for downstream AI processing.
Large documents cannot be sent to an AI model in one request. This module breaks the HTML into manageable pieces using a configurable strategy, stores them as a JSON array in a target field, and lets the AI process each chunk independently before the results are reassembled.
field_ai_doc_proofread_status to chunking after storing chunks, which automatically triggers the proofreading queueSplits at every <h1>–<h4> boundary. Each heading and the content that follows it becomes one chunk. Best for structured documents such as reports, manuals, and articles.
Splits at every top-level block element. Each paragraph, list, table, or other block becomes its own chunk. Produces many small chunks; suited to documents with very long sections.
Splits mechanically at the configured character limit, always breaking at a tag boundary so the output remains valid HTML. Useful as a fallback for unstructured documents.
Splits at headings first, then further splits any section that exceeds the maximum chunk size using the by-size algorithm. Combines structural awareness with a hard size cap — good for documents with a mix of short and very long sections.
drush en doc_html_chunker
No additional configuration is required after installation. Set up the automator on any text_long field through the standard AI Automators field settings UI.