Visit the site

Visit the site

Organizations Involved

BetterRegulation.com is a subscription-based online compliance platform serving legal, compliance, and financial professionals across the UK and Ireland since 2004. The platform delivers national and EU legislation, amendment histories, and international regulatory standards to subscribers who face hundreds of new and updated documents each month.

Subscribers needed faster ways to assess document relevance and extract obligations from statutes that range from 2 to 350 pages. The implementation adds automatic AI-generated summaries to every document on the Drupal platform, with background processing that requires no manual editor action.

About the project

BetterRegulation.com publishes hundreds of legislative updates monthly across UK, Ireland, and EU jurisdictions. Legal practitioners, compliance officers, and in-house teams subscribe to stay current, but reading every document in full is not realistic when individual files span 2 to 350 pages. The platform needed automatic summaries that build trust, differentiate the product, and scale without adding editorial workload.

Challenge

The platform needed to:

  • Help subscribers diagnose relevance in seconds instead of minutes of reading.
  • Extract key legal obligations from long statutes automatically.
  • Generate summaries in the background when editors save or update documents.
  • Support three distinct summary formats for different user tasks.
  • Maintain accuracy and editorial oversight in a regulated content environment.
  • Roll out features gradually with opt-in access while metrics are collected.

Solutions

Three summary types on every document

The implementation generates a long overview, a short abstract, and an obligations summary for each document. The long overview captures purpose, scope, and who the document affects. The short abstract supports rapid scanning across many updates. The obligations summary identifies compliance requirements, license types, and affected parties - the highest-value output for compliance officers.

Background processing with Drupal event hooks

When an editor creates or updates a document, a content save event queues the job in RabbitMQ with a 15-minute delay. That delay batches rapid editorial edits so only the final version is sent for processing. A background worker runs AI prompts, saves results to dedicated Drupal fields, and makes summaries available in the document sidebar without user wait time.

AI Automators and the existing document stack

Summary generation extends the same architecture as the platform's AI document categorization: Drupal 11 for content and display, AI Automators for prompt workflows, Unstructured.io for PDF text extraction, and GPT models for analysis. Each summary type uses a specialized prompt that editors can refine without code changes.

Drupal integration for storage, display, and access

Summaries live in custom fields on document content types with revision history. Twig templates render the AI Summary sidebar with tabs for text summaries and extracted obligations, plus export to email or PDF. Role-based permissions control visibility through an AI Summaries role during phased rollout. Cached delivery and CDN integration keep page performance stable as usage grows.

Editorial oversight and monitoring

Editorial staff sample automated output, subscribers report issues during opt-in, and automated checks validate format and length. Watchdog logging tracks processing reliability with automatic retry on transient failures.

Result

Early feedback during the phased rollout points to strong time savings: relevance checks that took 5-10 minutes now take about 30 seconds, and obligation review that once required hours of searching is available immediately in the sidebar. Summary generation succeeds in more than 95% of runs. Opt-in subscribers interact with the feature regularly, and it is already cited in renewal conversations.

Examples of implemented features:

  • Long, short, and obligations summaries generated automatically for documents from 2 to 350 pages.
  • AI Summary sidebar integrated into the document viewer with export options.
  • RabbitMQ queue with delayed processing tied to Drupal save events.
  • Specialized prompts per summary type, editable through AI Automators.
  • Role-based opt-in rollout with revision-tracked summary fields.

Why Drupal was chosen

BetterRegulation.com already runs on Drupal as its content repository for legislation and regulatory updates. Adding AI summaries inside the CMS keeps editorial workflows, permissions, and document revisions in one system instead of pushing analysis to a separate tool.
 
Drupal's entity model, custom fields, and event-driven architecture made it possible to store three summary types per document, regenerate them when content changes, and expose them through the existing document viewer. The AI Automators module orchestrates multi-step workflows from the admin UI, while contrib integration points connect PDF extraction and large language model calls without replacing the CMS editors already use.
BetterRegulation.com homepage showing the subscription-based legal and regulatory compliance platform for UK and Ireland professionals.

Technical Specifications

Drupal version:

Key modules/theme/distribution used:

Why these modules/theme/distribution were chosen

The AI module provides AI Automators for multi-step summary workflows on document fields, plus LLM integration for long overview, short abstract, and obligations extraction. Summaries regenerate in the background when editors save content.