Back to Browse sources
Full recordLegally binding

Intelligent Agent for Legal Health Case Automation: A Case Study in the Brazilian Public Sector

Report State lawLatin America and the Caribbean · BRadopted

This paper presents the design, implementation, and evaluation of an intelligent robotic process automation agent developed to support the State Health Attorney's Office of Ceará (PROSAÚDE) in managing public health legal cases. The system combines large language models, regulatory rule sets, and robotic process automation to extract medical and legal data, retrieve external sources, and generate official legal dispatches. Empirical evaluation shows high precision in rule application and high recall in medication detection, demonstrating the potential of AI-driven legal automation in public sector workflows.

Summary and content fields are drawn from the document text and are pending editorial review.

Who issued it

State University of Ceará (UECE)Academic · BR
Lead issuer
University of FortalezaAcademic · BR
Co-issuer
Federal Institute of CearáAcademic · BR
Co-issuer
Legal forceLegally binding
Under whose authorityState law
Judged fromfull text

Who it governs

Public sector bodiesAI developers and providersAI deployers and usersResearchers and academics

Researchers, developers, and public sector administrators interested in the practical application of AI and robotic process automation for legal and administrative workflows.

Sectors
Justice · legal health case automationPublic administration · Brazilian public sectorHealthcare · public health legal demands

What the document contains

What's covered

The document covers the architecture, implementation, and empirical evaluation of an AI-driven automation system designed to process public health legal cases, interpret court documents, apply internal legal norms, and generate dispatches for government attorneys.

What's missing

The text does not provide binding regulatory mandates or formal statutory legislation, but rather describes a technical case study and research implementation of an automated legal assistant.

Key takeaways
  • An intelligent robotic process automation agent was designed to support health-related legal case management in the Brazilian public sector.
  • The system combines GPT-4o, prompt engineering, robotic process automation, and external regulatory database checks like ANVISA.
  • In evaluations, the model achieved high precision in applying internal legal ordinances and strong recall in medication detection.
  • Human-in-the-loop validation confirmed that 98.7% of generated legal dispatches required no revision.
  • The adoption of the intelligent agent produced notable productivity gains, saving an estimated 5,376 annual work hours.
Outline
· 1. Introduction
· 2. Related Works
· 3. Agent Workflow and Component Design
  - 3.1. Intimation Intake and Case Retrieval
  - 3.2. Document Selection and Summarization
  - 3.3. Prompt-Based Information Extraction
  - 3.4. Use of External Regulatory Sources
  - 3.5. Normative Rule Evaluation
  - 3.6. Dispatch Generation and Routing
  - 3.7. Technical Foundations
· 4. Methodology
  - 4.1. Use of Large Language Models
  - 4.2. Gold Standard Dataset
  - 4.3. Tasks and Metrics
· 5. Results
  - 5.1. Application of the internal ordinance
  - 5.2. Detection of Medication Requests
  - 5.3. Detection of Attorney's Fees Above R$1,500
  - 5.4. Validation of Dispatch Generation
· 6. Conclusion
IssuedNot recorded
Length4,887 words
FormatNot recorded
Scopesubnational

How it scores

Pending review

Each score is backed by a quote verified against the document text. Editorial review has not yet confirmed them.

Accountability

3/5

Clear responsibility for AI outcomes

The General State Attorney’s Office of Ceará (Procuradoria Geral do Estado do Ceará - PGE) is the state body responsible for representing the government in legal matters

1. Introduction

screening score · 2026-11-26

Fairness

0/5

Non-discrimination and equitable treatment

screening score · 2026-11-26

Human Dignity

0/5

Respect for the inherent worth of persons

screening score · 2026-11-26

Human Oversight

4/5

Humans remain in control of consequential decisions

In human-in-the-loop validation, 98.7% of dispatches required no revision.

Abstract

screening score · 2026-11-26

Privacy

0/5

Protection of personal data and private life

screening score · 2026-11-26

Transparency

3/5

Openness about how AI systems work and are used

The article is organized as follows. Section 3 introduces the architecture and core components of the intelligent agent

1. Introduction

screening score · 2026-11-26

Enforcement

3/5

Consequences and compliance mechanisms with real force

In human-in-the-loop validation, 98.7% of dispatches required no revision.

Abstract

screening score · 2026-11-26

Impact Assessment

3/5

Required assessment of an AI system's risks/impacts before or during use

The objective was to assess the system’s ability to extract relevant information and apply internal legal rules with high accuracy and consistency.

4. Methodology

screening score · 2026-11-26

Topics

intelligent robotic process automation legal automation public health large language models public sector