Article

How to Turn Court Publications into Service Orders: 5 Low-Code Automations

16 min read

A practical framework for legal teams that need to convert procedural updates into service orders while reducing duplicate work and deadline risk.

Explore a practical automation workflow
How to Turn Court Publications into Service Orders: 5 Low-Code Automations

Why turning court publications into service orders matters

Turning court publications into service orders is more than a data transfer exercise. A publication may contain a deadline, an assigned attorney, a required document, a client communication, or a decision that changes the next step in a case. If someone reads the notice, copies information into a task system, sends an email, and updates a spreadsheet, the legal team is performing the same work several times.

The operational risk grows with volume. A legal department monitoring hundreds or thousands of cases cannot rely on memory or manual triage to identify which publications require action. The problem is not only missed deadlines. It also includes incomplete context, inconsistent priority labels, duplicate tasks, and orders created without a reliable link to the original publication.

A service order should therefore be treated as a controlled operational object. It needs a unique key, a clear action, an owner, a due date, a source record, a priority, and a status history. The publication remains the evidence, while the order becomes the mechanism for execution.

This distinction is especially useful in Brazil, where legal teams may monitor different courts, electronic journals, names, terms, and procedural identifiers at the same time. The National Council of Justice DataJud documentation illustrates how judicial data is structured and exposed across a national ecosystem, but each organization still needs its own rules for turning a procedural event into work.

The goal is not to automate every publication. The goal is to automate the predictable decisions, route exceptions to a person, and preserve enough evidence to explain what happened later.

A reliable workflow starts with a minimum data contract. Before connecting a feed to an ERP, CRM, case manager, or service desk, define which fields are mandatory and which may be enriched later. This prevents a low-code scenario from creating a technically valid order that a lawyer cannot actually use.

The source identity should include the case number, court or journal, instance when available, publication date, availability date, and a stable publication identifier. If the source system supplies a URL, document reference, or event identifier, preserve it. A title such as "new publication" is not enough to support deduplication or later audit.

The action layer should contain the extracted obligation, suggested task type, responsible team, legal owner when known, due date, time zone, priority, and escalation rule. Store the confidence level of any AI extraction as a separate field. A deadline identified with low confidence should go to review rather than directly to execution.

Context is equally important. Include the party or monitored name, matter identifier, client or business unit, a short summary, the relevant excerpt, and links to the full publication and process history. Avoid placing sensitive content into systems that do not need it, and define retention and access rules in line with the Brazilian General Data Protection Law.

A practical minimum schema looks like this: source_id, process_number, publication_date, available_date, event_type, action, due_date, owner, priority, confidence, source_url, source_hash, order_version, and audit_status. The exact names can vary, but the meaning must remain stable across integrations.

Five low-code automations for court publications to service orders

  1. 1

    Publication intake and normalization

    Use a webhook or scheduled connector to receive new publications, then normalize dates, process numbers, parties, and event types before creating any order. The first automation should reject incomplete records, standardize the Brazilian process number format, and attach a source identifier that remains unchanged throughout the workflow.

  2. 2

    AI-assisted summary and action extraction

    Send the publication text and controlled instructions to ChatGPT, Claude, or Gemini through an approved connector or MCP workflow. Ask the model to return structured fields such as action, deadline, documents required, and confidence, then apply a rule that sends uncertain or ambiguous results to human review.

  3. 3

    Priority, ownership, and escalation routing

    Use conditional branches to assign orders based on court, client, matter type, deadline proximity, financial exposure, and business unit. For example, a response deadline within three business days can receive high priority, while a routine procedural update can create a monitoring task instead of an urgent order.

  4. 4

    Idempotent order creation and synchronization

    Before creating an order in TOTVS, ServiceNow, or a local ERP, search for an existing record using a deterministic idempotency key. A useful key combines the source system, publication identifier, process number, action type, and order version, so a repeated webhook does not create a second task.

  5. 5

    Calendar, notification, and audit automation

    After an order is approved or created, schedule the due date in the team calendar, notify the owner, and record the payload, rule result, timestamp, and user or automation identity. When a deadline changes or a false positive is discovered, create a new version or reversal event rather than silently overwriting the original decision.

A practical low-code blueprint using API, MCP, Zapier, Make, or Power Automate

The workflow can be implemented in five layers: capture, enrich, decide, execute, and observe. Capture receives the publication from the monitoring platform. Enrich adds the process history, documents, AI summary, and extracted fields. Decide applies business rules. Execute creates or updates the service order. Observe records what the workflow did and whether a person changed the result.

For a webhook-based setup, the trigger can be a new publication event from the Pocket Jurídico API. In a Make scenario, the webhook receives the event, a JSON parser validates the schema, an AI module extracts action fields, and an HTTP module calls the target ERP. In Power Automate, the same pattern can use an HTTP trigger, condition blocks, an approval action, and a custom connector. Make documents its webhook behavior in its official webhook documentation, which is useful when deciding between instant and scheduled processing.

MCP can add a conversational control layer without replacing governance. An authorized user might ask an AI assistant to find all publications with response deadlines within five business days, summarize the relevant process history, or propose an order. The MCP connector should expose only the operations the user needs, and order creation should require structured validation or approval when the consequence is material.

A normalized payload sent to a service-order endpoint could look like this:

{
 "idempotency_key": "pocket-2026-abc123-response-v1",
 "source": "pocket_juridico",
 "source_publication_id": "abc123",
 "process_number": "0001234-56.2026.8.26.0100",
 "event_type": "deadline_identified",
 "action": "Prepare and file response",
 "summary": "The court publication requires a response within the applicable procedural deadline.",
 "available_date": "2026-10-29",
 "due_date": "2026-11-05",
 "priority": "high",
 "owner_group": "Corporate Litigation",
 "confidence": 0.93,
 "source_url": "https://example.invalid/publication/abc123",
 "order_version": 1,
 "requires_human_review": false
}

The URL above is illustrative and should be replaced with the real source URL supplied by the monitoring system. A TOTVS adapter may map action to the service description, process_number to a custom matter field, and idempotency_key to an external reference. A ServiceNow adapter may map the same values to short_description, description, due_date, assignment_group, priority, and correlation_id.

For a ServiceNow-style request, the body could be shaped as follows:

{
 "short_description": "Prepare response, case 0001234-56.2026.8.26.0100",
 "description": "Publication summary: The court publication requires a response. Source ID: abc123. Review the attached process context before filing.",
 "correlation_id": "pocket-2026-abc123-response-v1",
 "due_date": "2026-11-05",
 "priority": "2",
 "assignment_group": "Corporate Litigation",
 "u_process_number": "0001234-56.2026.8.26.0100",
 "u_source_publication_id": "abc123",
 "u_order_version": 1
}

Do not send a publication directly to a create endpoint without a lookup step. The low-code scenario should first query by correlation or external reference, branch if a match exists, and only then create a new order. For updates, compare the incoming hash and version against the stored record to distinguish a repeated event from a meaningful change.

How to prevent duplicates, prioritize orders, and reverse false positives

  • ✓Use idempotency keys: Build a deterministic key from source publication ID, process number, action type, and version. If the same event arrives twice, the integration updates or ignores it instead of creating a second order.
  • ✓Keep source and operational IDs separate: The publication identifier proves where the work came from, while the ERP or service-desk ID identifies the order. Never use the destination ID as the only audit reference.
  • ✓Hash the relevant content: Store a hash of the publication text or normalized event fields. A changed hash can trigger review, while an identical hash confirms that a repeated webhook is safe to suppress.
  • ✓Apply deadline-based priority: Define thresholds such as urgent for deadlines within two business days, high for three to five business days, and normal for longer horizons. Account for holidays, court rules, local calendars, and the organization's review buffer.
  • ✓Escalate by business impact: A publication involving an injunction, payment block, regulatory issue, strategic client, or high-value claim should escalate even when the calculated deadline is not immediate.
  • ✓Separate extraction confidence from legal approval: An AI confidence score is not a legal conclusion. Low-confidence extraction, conflicting dates, or missing process context should create a review task rather than a filing order.
  • ✓Use versioning instead of overwriting: If a new publication changes the action or due date, create version 2 linked to version 1. Keep the earlier payload, decision, and timestamps available for audit.
  • ✓Design a reversal playbook: Mark a false positive as cancelled or reversed, record the reason, notify the owner, and prevent downstream calendar events or notifications from remaining active. Never delete the original record without preserving the audit event.
  • ✓Use 360-degree validation: Before execution, confirm the process identity, parties, instance, historical movements, documents, and publication source. A broader process view can reveal that a seemingly new event belongs to an existing task or a different matter.
  • ✓Measure operational outcomes: Track publications received, orders created, duplicate attempts blocked, human reviews, false positives, average handling time, and overdue orders. A useful baseline compares manual hours and duplicate tasks before and after automation.

Two practical before-and-after scenarios

Consider a retail legal department monitoring a high volume of consumer and commercial litigation. Before automation, an analyst reviews publications, copies process numbers into a spreadsheet, emails regional counsel, and later checks whether someone created a task in the corporate system. In a representative workflow measurement, 180 publications may produce 42 actionable items, consume about 18 analyst hours per week, and generate six duplicate tasks when the same matter appears through different channels.

After normalization and idempotent routing, each actionable item receives one external reference, one owner group, one deadline, and one source link. The analyst reviews only low-confidence or high-impact items, reducing the modeled workload to roughly seven hours per week and eliminating the six duplicate tasks from the measured sample. These figures are planning examples, not a universal benchmark, so each department should establish its own baseline.

A boutique litigation firm presents a different pattern. Its lawyers may handle fewer matters but need richer context, including procedural history, documents, client comments, and internal decisions. The main waste often comes from reading the same publication several times and creating parallel reminders in email, a calendar, and a case spreadsheet.

In a controlled pilot involving 60 new publications, the firm can route routine updates to a monitoring queue and reserve service orders for concrete actions such as filing, collecting documents, or contacting a client. If 15 of those publications require work, the team can compare the time spent manually creating 15 tasks with the time spent reviewing 15 prefilled orders. The meaningful success measure is not simply fewer clicks. It is fewer duplicated decisions and a clearer audit trail.

Pocket Jurídico is suited to this validation layer because it monitors publications and procedural movements across more than 490 journals and courts, validates the process across instances, and presents history, documents, and movements around the publication. Its API, AI connections, and MCP options can feed the low-code workflow, while comments and alerts keep operational context with the process instead of scattering it across email and spreadsheets.

How to implement the workflow in 30 days

  1. 1

    Days 1 to 5: Map the decision points

    List the publication types that create work, the teams that own them, the deadline rules, and the systems currently used. Select one narrow use case, such as response deadlines, instead of attempting to automate every procedural event at once.

  2. 2

    Days 6 to 10: Define the data contract

    Agree on mandatory source fields, destination fields, status values, priority thresholds, confidence rules, and the idempotency key. Ask the destination-system owner to confirm which fields are standard and which require custom configuration.

  3. 3

    Days 11 to 17: Build a review-first scenario

    Connect the publication feed to a staging table or approval queue before creating production orders. Test missing process numbers, repeated webhooks, changed deadlines, ambiguous language, multiple instances, and publications that do not require action.

  4. 4

    Days 18 to 24: Add execution and notifications

    After the review rules work, activate the ERP or service-desk create and update actions. Add calendar scheduling, owner alerts, escalation messages, and a controlled mechanism to cancel or reverse an order.

  5. 5

    Days 25 to 30: Measure and govern

    Compare baseline and pilot results using hours spent, duplicate attempts, review rate, false positives, overdue orders, and user corrections. Document who can change rules, how versions are approved, and how the team investigates an audit question.

The first mistake is treating every publication as a task. Many publications provide information but do not require an immediate operational action. A better design distinguishes informational events, monitoring events, review events, and execution events, each with a different level of automation.

The second mistake is trusting an extracted deadline without checking the source and the organization's calendar rules. Date calculation can depend on availability, business days, suspensions, local holidays, and procedural interpretation. Automation should surface the proposed date and its source, not hide the assumptions behind it.

Another common failure is creating a new order whenever a feed event arrives. Feeds may resend records, different instances may reference the same case, and a publication may be enriched after its first delivery. Idempotency, content hashes, and versioned updates are essential safeguards.

Access control also deserves attention. A connector should pass only the data required by the destination and should use service accounts with the smallest practical permissions. Review the NIST Cybersecurity Framework 2.0 for a useful structure covering governance, identification, protection, detection, response, and recovery.

Finally, do not measure automation only by the number of orders created. A system that creates more tasks can increase noise. The stronger indicators are actionable-order precision, duplicate suppression, time saved, review quality, deadline reliability, and whether lawyers can reconstruct the decision from the publication through completion.

Frequently Asked Questions

Which fields are essential to generate a service order from a court publication?▼

At minimum, store the process number, court or journal, publication identifier, publication and availability dates, event type, required action, due date, owner, priority, source URL, and confidence level. Include the original text or a secure reference to it so the team can verify the extraction. A stable source ID and idempotency key are especially important because they prevent duplicate orders.

How can I prevent duplicate orders when synchronizing publications with TOTVS, ServiceNow, or a local ERP?▼

Create a deterministic idempotency key before calling the destination system, then search for that key in an external reference or correlation field. Combine the source publication ID, process number, action type, and order version so repeated webhooks resolve to the same order. Also store a content hash and distinguish a repeated event from a materially changed publication.

What priority rules should be used for orders created from legal publications?▼

Start with deadline proximity, then add business impact and legal complexity. For example, deadlines within two business days may be urgent, while injunctions, regulatory matters, strategic clients, and high-value claims may receive elevated priority regardless of the date. The rule should also include a human review buffer and the correct court or organizational calendar.

Can an automated service order be audited or reversed after a false positive?▼

Yes, if the workflow preserves the source publication, extracted fields, rule results, payload, timestamps, and user or automation identity. A false positive should be marked as reversed or cancelled with a reason, while downstream calendar entries and notifications are closed or withdrawn. Keep the original record and create a reversal event instead of deleting evidence.

Should AI create legal service orders without human approval?▼

It depends on the action and the organization's risk tolerance. Routine, well-defined actions with high-confidence extraction can follow an automatic path, while ambiguous deadlines, sensitive matters, and filings should use an approval step. AI should structure and summarize the information, but legal responsibility and exception handling should remain clearly assigned to people.

How does MCP help connect court publications to legal workflows?▼

MCP can give an authorized AI assistant controlled access to publication, process, and order functions. This allows users to ask questions about deadlines, request a summary, or propose an order without manually searching several systems. MCP should expose limited tools, require structured outputs, and apply permissions and approval rules before any consequential write operation.

Is it necessary to replace an existing legal management system?▼

No. A publication-to-order workflow can complement an existing ERP, CRM, service desk, or legal case manager through API or low-code connectors. The important design choice is to establish one source reference, one ownership model, and one synchronization rule so the integration does not create parallel spreadsheets or competing task records.

Build a cleaner path from publication to action

Learn how Pocket Jurídico connects to your workflow

Share this article

Pocket Jurídico (lawsuits in Brazil)Pocket Jurídico (lawsuits in Brazil)

Pocket Jurídico is legal software for monitoring lawsuits and court publications in Brazil, featuring automation, AI, and an integrated view of case workflows.

Pocket Jurídico (lawsuits in Brazil)

Discover Pocket Jurídico

Discover Pocket Jurídico

© 2026 Pocket Jurídico