Skip to content

BOE Norm Agent

BOE Norm Agent answers legal questions about the norms of the Boletín Oficial del Estado (BOE), Spain’s official state gazette, that you choose. It reads the consolidated text of those norms, finds the articles that deal with what you ask and, with a language model, writes an answer that cites the articles. It can also return only the articles found, for another agent to use, or check whether a norm is still in force.

Use it when you want answers based on the official text of specific laws, not on what the model remembers.

When to use it

  • An audit team often asks what the Audit Act says about a topic and wants the answer with the articles cited.
  • An internal HR assistant has to answer questions about the Workers’ Statute.
  • Another agent needs the exact text of the articles on a topic to prepare a report.
  • You want to know whether a norm you cite in a document is still in force or has been repealed.

Configuration

FieldWhat it does
OperationWhat the component does. See Operations. Default: Answer.
Norm IDs (required)The norms the question is about, separated by commas: their BOE identifier, for example BOE-A-2015-8147, or their address on boe.es. It does not appear in Vigencia.
QuestionThe question. In Vigencia, write here the identifiers or addresses of the norms you want to check.
LLMThe language model that writes the answer in Answer and Retrieve, and that runs the check in Vigencia. Connect a model component here.
LLM (Extract)Optional, not shown in Vigencia. A second, fast and inexpensive model that extracts what is relevant from each article before the answer is written. If you don’t connect it, the articles go as they are to the LLM model.

Operations

OperationWhat it does
AnswerFinds the articles related to the question in the norms and writes an answer that cites them.
RetrieveFinds the articles related to the question and returns their text, without writing an answer. Useful to pass them to another agent.
VigenciaChecks whether the norms given in Question are still in force, following repeals up to the norm in force.

Advanced options

FieldWhat it does
KeywordsSearch keywords separated by commas. If you write them, the component searches with them instead of taking them from the question. Empty by default.
Scope / RoleThe professional context of whoever asks, for example Auditor specialised in independence. It helps find the right articles and focus the answer. Empty by default.
Max ArticlesMaximum number of articles used in the answer. Default: 20.
Timeout (seconds)How many seconds to wait for each answer from the BOE. Default: 60.
Heuristic DecomposeWhen on, the keywords are taken from the question without using the model, which is faster; if no keywords come out, the model is used. Turn it off to always let the model extract them. On by default.

Keywords, Scope / Role, Max Articles and Heuristic Decompose are used in Answer and Retrieve.

Output

The Result output is a text message: the written answer in Answer, the text of the articles found in Retrieve, or the conclusion about whether the norm is in force in Vigencia. In Answer and Retrieve the message also carries the list of sources consulted.

If the question or the norms are missing, or the BOE does not answer, the result is a message starting with Error:.

You can connect the result to a chat output, to another agent or to an email component. The component can also be connected to an Agent as a tool, so the agent asks it whenever it needs to consult the norms. See Tool Mode.

Example

A firm wants an assistant that answers questions about the Spanish Audit Act.

  1. Add BOE Norm Agent with the Answer operation.
  2. In Norm IDs write BOE-A-2015-8147.
  3. Connect the user’s question to Question and a model component to LLM.
  4. In Scope / Role, under the advanced options, write Auditor.
  5. Connect Result to the chat output and try a question such as “How long can an auditor audit the same company?”.

Good practices

  • Give only the norms you need: the more norms, the longer the answer takes.
  • If another agent will read the result, use Retrieve: you give it the official text and it writes the answer.
  • Always review the answer on sensitive matters: it cites the articles so you can check them.