Authors:
Danilo Aguiar, Secretary-General at the Senado Federal of Brazil
João Lima, Legislative System Analyst at the Senado Federal of Brazil
Alisson Bruno de Queiroz, Coordinator of the e-citizenship Programme in the Senado Federal of Brazil
Luís Kimaid, Executive-Director at Bússola Tech
I. Introduction
The Federal Senate is the upper house of Brazil’s National Congress and has 81 Senators. Like other Legislatures, it handles a large volume of text under tight deadlines. Staff answer procedural questions using rules and precedents, prepare comparative tables for bills and publish sitting records. Citizens who wish to follow this work often find the formal language of legislative proposals difficult to understand.
In recent years, the Brazilian Senate has introduced Artificial Intelligence (AI) into several of these tasks. This article describes seven initiatives. Most are in regular use, among them the thematic classification of legislation and the transcription of proceedings. Others are still being tested or extended.
The initiatives differ in purpose, in the technology they use and in their stage of maturity. Human review is common to them. Staff check the results before they are used, and decisions remain with those who are institutionally responsible for them.
To understand how these applications became possible, this article first traces the Senate’s work to organise legislative information, develop shared data structures and connect parliamentary systems.
II. The Digital Foundations of Legislative Work
The Senate’s adoption of Artificial Intelligence follows decades of work to organise legislative information and bring parliamentary procedures into digital systems. PRODASEN, its Parliament Digital Service department, was established in 1972. Early systems used mainframes and textual databases to hold information on legislation, legislative proposals and jurisprudence. In 1992, a transition to client-server systems prompted a broader effort to model the data underpinning the legislative process. In 2008, Prodasen and the Secretariat-General began a further reform centred on the development of an electronic legislative process.
By 2015, however, successive generations of systems had accumulated ambiguities and inconsistencies. The Senate held a substantial body of information, including historical documents that had been digitised, but some records lacked the context needed to interpret them. Staff could not always establish a proposal’s sequence of procedural steps clearly from the systems alone. Different departments also used the same terms to mean different things, making it harder to connect their information.
Technology specialists and experienced legislative staff jointly defined the concepts that the systems needed to represent. They distinguished documents from their content and from the processes in which they were used, drawing on procedural rules, established practices and staff experience.
The resulting model became the basis for a new data structure and the development and connections between legislative systems. Committee events, such as a proposal’s approval, could feed into the system tracking its progress.
The COVID-19 pandemic brought an urgent need to adapt this digital infrastructure. The Senate’s Remote Deliberation System (SDR) combined secure videoconferencing, electronic submission of proposals and amendments, and remote voting.
This approach also shaped the preparation of legislative documents. LexEdit, developed within the LexML project, guides users through the drafting of documents and amendments, helps them follow formal drafting requirements and generates files containing reusable metadata. Information entered during drafting can therefore populate another system without being typed again. Integration with submission and electronic signature services connects document preparation, signature and receipt. Through Senado Digital, Senators can sign documents and access other parliamentary functions from their registered devices.
By the time the Senate began incorporating the AI applications described below, it had already invested in defining its information, structuring its documents and connecting its systems. The team responsible for the modelling work explicitly identified more consistent data as an advantage for automation and the training of AI models. The move towards AI thus continues a longer institutional effort to make legislative information usable throughout the parliamentary process.
III. Supporting Parliamentary Points of Order through RAG
Questions concerning the interpretation of parliamentary procedure require access to both the applicable rules and previous decisions. In the Brazilian Federal Senate, a Point of Order arises when a Parliamentarian questions the interpretation of a provision of the internal rules during a sitting or meeting. The Presiding Officer must resolve the question before proceedings continue.
To support this work, the Senate has developed an application using Retrieval Augmented Generation (RAG). The tool retrieves provisions from the Senate’s internal rules and the Constitution, alongside previous Points of Order relevant to the question submitted. It then uses this material to generate an analysis grounded in the retrieved sources.
The application allows parliamentary staff to explore a question in different ways. They may request a detailed response or an examination of competing interpretations. In the second case, the application sets out the arguments for and against a position, cites the provisions and precedents that support them and proposes a conclusion. One question examined in this way was whether a Parliamentarian could speak to guide voting during a preparatory meeting, which the application analysed using previous procedural decisions.
Staff supporting the Secretariat-General of the Board, equivalent to Commonwealth Clerks at the Table, use the application. Its output provides material for human review and assists staff in preparing advice for the Presiding Officer, who remains responsible for answering the Point of Order.
The Senate is completing Corporate RAG to extend the Points-of-Order solution to all of its other information systems. Those systems will then be able to draw on the same combination of retrieval from institutional sources and generation grounded in what is retrieved.
IV. Making Legislative Proposals Understandable
Launched on 17 December 2024, the clear language module uses Artificial Intelligence to explain legislative proposals in plain language. The service addresses a familiar difficulty: a proposal’s formal description may identify the legal provision being amended without making its practical meaning clear to the reader.
The explanations are generated from the initial text of the proposal and undergo human review. They describe what the proposal seeks to achieve and its possible consequences for those affected. The stated reference audience is a citizen with secondary education.
One example concerned a proposal relating to consumers who repay debts at a discount. Whereas the formal description referred to an amendment to an existing law, the plain-language explanation set out the intended effect: preventing that discounted repayment from being used to make access to new credit more difficult. It also explained possible consequences for consumers, financial institutions and the credit protection system.
The explanations are available through the Senate’s website, including on mobile devices. By making the content of proposals easier to understand, Senado Explica supports the Senate’s stated objective of enabling citizens to participate in the legislative process with better information.
V. LexComp: Comparing Legislative Texts
Comparative tables help parliamentary staff and Members identify how a legislative text has changed during its consideration. The Senate’s updated LexComp application supports this task by combining textual comparison with Artificial Intelligence.
Users enter the identifying information, description and legislative text of the versions that they wish to compare. These may include an original Bill and a substitute text presented by a rapporteur. The application identifies the constituent provisions of each text, including articles, paragraphs and subparagraphs, before comparing them in successive stages.
It first matches identical text, then examines syntactic similarity. For provisions that remain unmatched, it uses embeddings to identify semantic relationships. This allows the application to associate provisions whose wording or structure differs while their content remains related.
The resulting comparison highlights changes through colour. Users can undo an incorrect automatic match, establish a relationship manually and review provisions that have been added or have no corresponding match.
A new version of LexComp is being completed. It will allow comparative tables to be created with multiple columns and with multiple texts in each column. This is important when the legislation in force has to be compared with a provisional measure and with the Conversion Bill for that measure.
VI. Thematic Classification of Legislation and Proposals
The Senate’s predictive AI classification service has been in production since March 2025. It assigns thematic categories to legislation and legislative proposals, with staff reviewing the suggested classifications.
The classification scheme contains almost 180 categories. A document can belong to several categories simultaneously. For example, legislation amending the Maria da Penha Law to provide for electronic monitoring of an aggressor was classified under women, public security and criminal procedure. A human reviewer accepted all three suggestions.
The service receives the document’s text and parameters specifying the minimum confidence required and the maximum number of categories to return. In the Senate’s implementation, the maximum is four.
The service assigns categories to more than 70% of documents and withholds suggestions for approximately 30% because of insufficient confidence. Precision exceeds 93% for the classifications it produces. Staff retain responsibility for confirming, supplementing or correcting those suggestions.
VII. Supporting the Referral of Proposals to Committees
The Senate has also developed a proof of concept for recommending which Standing Committees should consider a legislative proposal. The application uses generative AI and instructions based on the Senate’s internal rules, including the provisions defining Committee responsibilities.
After receiving a proposal, the tool performs three tasks. It summarises the text, suggests the Committees to which it should be referred and explains each recommendation. The explanation identifies the relevant provision of the internal rules and reproduces the passage supporting the proposed referral.
The application examined its subject matter and produced recommendations grounded in the Committee responsibilities supplied to it.
The tool was configured as a specialised GPT. Its instructions specify the sequence of tasks, examples of the expected output and the information required for each recommendation. Additional instructions and relevant procedural provisions are supplied through a knowledge file.
VIII. Intelligent Transcription of Parliamentary Proceedings
The Senate’s Intelligent Transcription System, known as STI, supports the production of written records of plenary sittings and Committee meetings. Developed through a partnership between Prodasen and the parliamentary reporting service, it is integrated with Scriba, the application used by parliamentary editors.
The system processes recordings in four-minute audio segments. Automated components retrieve the audio, generate transcriptions and make the results available in Scriba for editors to examine. Staff can correct the AI-generated text before accepting it for inclusion in the published record.
STI also separates audio by speaker and attempts to identify the Parliamentarian speaking. The identification model was trained using audio samples from the Senate’s 81 serving Senators. Identifying speakers has proved more difficult than transcription. Results remain uneven and further training is required.
According to the Senate’s figures, STI has transcribed 78% of audio segments from plenary sittings and more than 88% from Committee meetings. The AI-generated text shows 88% similarity to the final published version. Editors report that the average time to publish the first version of the record has fallen from 35 to 26 minutes.
IX. AI in e-Cidadania: Connecting Participation with Feedback
The e-Cidadania programme is the Senate’s channel for citizen participation. Through it, citizens submit legislative ideas, vote in public consultations on Bills and send questions and comments to Committee hearings and other interactive events.
Before a Committee hearing, staff use AI to produce a short explanation of the subject from the relevant Bill, request or nomination file. The summary is published at the top of the event page. AI also helps staff identify citizens whose earlier participation indicates an interest in the theme, and these citizens receive personalised email invitations. The programme team reports that this approach has increased the number of questions fourfold and that contributions have become more focused.
After the hearing, a further application compares each question with the transcript to establish whether it was read aloud or addressed in the discussion. This includes responses addressing a question’s substance without reading it aloud or naming its author. The system records the relevant moments, and the event page lets citizens go directly to them in the video. Applied retrospectively to almost 2,000 events since 2013 with no recorded question readings, it identified addressed contributions and notified their authors.
AI also helps produce a two-page report on each hearing, which summarises the subjects discussed and the categories of questions and indicates whether comments were positive, negative or neutral. The report is shared with Senators and published on the event page. The programme has received 158,000 legislative ideas and more than 13 million expressions of support, and 82 ideas have become Bills. AI is used to search this database by subject, clarity and potential impact, so that proposals with relatively few expressions of support can also be found.
X. Guidelines for the Development and Use of AI
Act of the Directorate-General No. 28 of 2025, signed on 8 August 2025, establishes guidelines for AI systems in the Senate’s administrative activities and in support of the legislative process. Its stated purpose is to ensure that the technology is developed and used in an ethical, safe, efficient and sustainable manner.
The Act requires human oversight at every stage of the life cycle of an AI system. Systems must allow their results to be reviewed, altered and validated by people, and they must not make staff wholly dependent on them when taking decisions. Managers responsible for the processes using a system must continuously evaluate its results. They remain accountable for validating or correcting results or discontinuing the system’s use. Systems must also be explainable, with results and processes that can be traced and audited.
Secret information, personal data and sensitive personal data may be entered into external AI platforms only with the formal approval of the Senate’s Information Technology Governance Committee. Tests and experiments on such platforms should give priority to anonymised or synthetic data. Development teams are required to protect privacy from the design stage and to document each system in proportion to its complexity and risk. They must also adopt processes to detect and mitigate algorithmic bias that could lead to unlawful or abusive discrimination.
The Act also creates ApoIA, a programme technically subordinate to the Information Technology Governance Committee, to guide and coordinate the Senate’s AI initiatives, processes and policies. Its operating model will be defined in a later act.
XI. Conclusion
The initiatives described in this article are at different stages. Most are in regular use. Support for Committee referral is a proof of concept, while the Corporate RAG and the new version of LexComp are being completed.
Each tool addresses a defined step of legislative work and produces material that staff confirm or correct before it is used. The Presiding Officer still decides Points of Order, and editors still approve the text that enters the published record.
The foundations described in this article help explain how the Senate reached this stage. Shared conceptual modelling addressed ambiguities across departments, while connected systems allowed procedural events and documents to be reused throughout legislative work. LexEdit brought structured information into document preparation, and the open data API made legislative records available for wider reuse. These investments gave subsequent development a common information base, supported by collaboration between technical specialists and parliamentary staff. The planned extension of RAG across the Senate’s information systems continues this approach of making capabilities available beyond a single application.
The applications also extend the purpose of this work beyond internal processes. Senado Explica makes proposals more understandable, while e-Cidadania helps citizens identify where their contributions were addressed in parliamentary debate. Together, these services connect the organisation of legislative information with its practical use by the public, both to follow proposals and to receive feedback on participation.The views expressed in this article are derived from the analysis of the author and do not necessarily reflect the official policy or position of the represented institutions, nor should they be considered and should not be construed as an endorsement or recommendation of any kind. The information presented in this article is derived from multiple sources. We encourage readers to access official sources from the institution in question.







