Blueprint: 12 Low-Code Automations to Connect Pocket Jurídico with Google Calendar, Slack, Salesforce, and ERPs
A practical blueprint for routing publications, extracted deadlines, urgent alerts, and process updates through the tools your legal team already uses.
Explore Pocket Jurídico integrations
In this article8 sections
- Why low-code automation matters for legal operations
- The architecture behind reliable low-code automations
- The 12 low-code automations to build first
- How Pocket Jurídico and MCP fit into the workflow
- A practical implementation runbook for the 12 automations
- Webhook templates, prompts, and cost controls
- Validation checklist and mistakes to avoid
- How to scale from a pilot to an integrated legal operation
Why low-code automation matters for legal operations
Low-code automation for legal publications connects the moment a court update appears with the next operational step: reviewing a deadline, assigning an owner, creating a calendar event, or alerting a responsible team. Instead of copying information between a monitoring platform, spreadsheets, email, chat, and a case management system, the workflow moves structured data between those systems automatically.
The problem is especially visible in Brazilian legal departments and law firms that monitor high volumes of names, terms, and proceedings. A publication may require interpretation before anyone can act, while the same information may need to reach a lawyer, a paralegal, a business owner, and an external firm without creating four separate records.
A sound automation does not simply forward every publication. It filters by relevance, enriches the record with process data, uses artificial intelligence to suggest a deadline or urgent action, and asks a human to validate what could affect a legal right. This balance reduces repetitive work without treating an automated extraction as a final legal decision.
The business case can be measured in operational terms. If a team spends 20 minutes reviewing and routing each relevant publication, 30 items per day represent roughly 10 hours of manual handling before the substantive legal work begins. Even when the exact saving varies, eliminating repeated entry and uncontrolled forwarding creates more capacity for analysis.
The best starting point is a clear event model. Define what counts as a new publication, what makes it urgent, which fields must be synchronized, and when a record should be updated rather than created. Then choose the simplest connector that can enforce those rules.
The architecture behind reliable low-code automations
Most workflows can be represented as five layers: trigger, filter, enrichment, action, and audit. The trigger receives a webhook or periodically reads a publication endpoint. The filter decides whether the item is relevant, while enrichment adds a summary, deadline, responsible person, or related account.
Actions should be separated by purpose. Calendar events handle time-bound obligations, Slack or Teams handles attention, Salesforce or an ERP handles business ownership, and a legal management system remains the operational source for the matter itself. Sending the same raw text to every destination usually creates noise and inconsistent records.
Use a stable external identifier for every publication and process. A practical idempotency key can combine the source identifier, process number, publication date, and movement identifier, for example: publication_id plus process_number plus publication_date. The exact fields depend on the data returned by the source, but the principle is constant: the same event must produce the same key every time.
Before creating a calendar item, search for that key in the destination or store it in a small data table maintained by Zapier, Make, an automation platform, or your own API layer. If the key exists, update the event or stop the run. This single control prevents most duplicate tasks caused by retries, polling intervals, or a webhook being delivered twice.
For Google Calendar, a workflow should distinguish an all-day deadline from a review appointment. The first represents the legal date that must not be missed; the second gives the team time to analyze the publication. Google’s official Calendar events insert documentation describes the API fields used to create events, including dates, attendees, reminders, and extended properties.
Security belongs in the design, not in a later phase. Pass only the data each destination needs, keep API keys in the connector’s secret storage, restrict Slack channels and CRM permissions, and define how long payloads and logs are retained. For Brazilian operations, map these controls to the team’s LGPD governance, especially when publications contain personal or sensitive information.
The 12 low-code automations to build first
- 1
New publication to a normalized webhook
Trigger the workflow when a new publication is available and map it into consistent fields such as publication ID, process number, court, party, source date, URL, full text, and monitoring term. Normalize dates and remove empty values before sending the record to the next connector.
- 2
Relevant publication to a review queue
Use filters for monitored process numbers, parties, courts, matter types, and keywords. Route only records that meet the legal team’s criteria to a review queue, while recording excluded items for quality checks instead of silently discarding them.
- 3
Publication to an AI summary
Send the publication text to an approved LLM connector and request a short factual summary with no invented procedural facts. Store the original text beside the summary so a reviewer can compare the output before relying on it.
- 4
Publication to deadline and action extraction
Ask the model to identify a possible deadline, the triggering event, the proposed action, confidence level, and missing information. Treat the result as a recommendation that requires validation, particularly when the text is ambiguous or the applicable procedural rule is not explicit.
- 5
Validated deadline to Google Calendar
After a human confirms the date, create an all-day event in the correct legal team calendar and include the process number, source publication ID, responsible lawyer, and link to the original record. Use the idempotency key as an event property or in a maintained lookup table.
- 6
Deadline to Outlook or a shared office calendar
Replicate the validated deadline to the team’s secondary calendar only when governance requires it. Keep one system as the source of truth, and label the replicated event clearly so that a change or cancellation can be propagated instead of creating a competing appointment.
- 7
Critical publication to Slack
Send urgent items to a restricted channel with a compact message: urgency, process number, suggested action, due date, assigned owner, and link. Slack’s official incoming webhooks documentation explains how to post messages securely to a specific channel without exposing a general-purpose bot token.
- 8
Critical publication to Microsoft Teams
Use the same decision rule for Teams, but adapt the message to the organization’s approved connector and channel structure. Do not broadcast identical alerts to Slack and Teams unless both groups have distinct responsibilities, or the team will experience alert fatigue.
- 9
Publication to Salesforce
Match the process or legal matter to an account, opportunity, case, or custom object using a deterministic external ID. Create a new activity only when no matching publication key exists, and update the existing record when the publication receives a correction or additional document.
- 10
Publication to an ERP or legal management system
Map only the fields needed by the ERP, such as process number, business unit, external firm, risk category, deadline, and status. Use an API endpoint, CSV handoff, or middleware queue according to the ERP’s capabilities, and return a success or error response to the automation log.
- 11
Daily report with documents and spreadsheets
At a scheduled time, group publications by responsible person, business unit, court, urgency, or deadline horizon. Generate a spreadsheet or document attachment for operational review, while preserving links back to the live records instead of creating a static report that can become outdated.
- 12
Comments and escalation to the matter history
When a user comments on a publication or marks an issue as unresolved, notify the responsible group and append the decision to the process history. This keeps context beside the publication and reduces parallel email threads and private spreadsheets.
How Pocket Jurídico and MCP fit into the workflow
Pocket Jurídico is most useful in this architecture as the event and context layer for legal publications. It monitors names and terms across more than 490 newspapers and courts, validates the process across instances, and brings together the cover, history, movements, and available documents so an automation does not operate on an isolated text fragment.
The practical sequence is straightforward: a new publication enters the feed, the automation receives the publication data through an endpoint or webhook, and an AI connector evaluates the text before a calendar event, alert, or CRM record is created. The Pocket Jurídico API can also support synchronization with internal legal software, CRMs, ERPs, and custom platforms, subject to the endpoint and access configuration used by the organization.
MCP can provide a controlled bridge between an AI assistant and the publication or process context. In a low-code flow, the connector can ask the model to inspect the relevant publication, produce a structured result, and return that result to the automation. The model should not directly create a deadline or send an escalation without a rule that checks the output.
A useful extraction prompt is: “Read the publication below. Return valid JSON with possible_deadline, deadline_basis, proposed_action, urgency, responsible_role, confidence, and missing_information. Do not infer a date that is not supported by the text. If the deadline cannot be determined, set possible_deadline to null and explain why.”
A second prompt can support review: “Summarize this publication in no more than 80 words. Identify the procedural event, the party affected, the action that may be required, and the evidence in the text. Separate facts from recommendations and preserve the process number exactly.”
The automation should reject malformed JSON, null dates, confidence below the organization’s threshold, and dates that fall outside configured business rules. A low-confidence result can create a review task without creating a legal deadline. This is where human judgment remains essential.
A practical implementation runbook for the 12 automations
- 1
Choose one narrow workflow
Start with critical publications that require a calendar review, rather than attempting to automate every movement. A focused pilot makes it easier to measure duplicate rate, false alerts, extraction accuracy, and time saved.
- 2
Confirm the source fields
Document the Pocket Jurídico endpoint or webhook payload available to your account, including identifiers, timestamps, process data, document links, and publication text. Do not build mappings from screenshots or manually copied examples.
- 3
Define the ownership model
Create rules for assignment by office, business unit, court, matter type, or monitored term. Every actionable item should have one accountable owner, even when several people receive a notification.
- 4
Add deduplication before actions
Calculate an idempotency key and check it before creating an event, CRM activity, ERP record, or chat alert. Store the destination ID after success so later updates can modify the original record.
- 5
Add AI only where it improves triage
Use AI for summarization, classification, and suggested extraction, not as a substitute for procedural validation. Set a fallback route for unclear text, missing documents, unsupported courts, and low-confidence outputs.
- 6
Test adverse cases
Replay duplicate payloads, delayed publications, corrected documents, multiple parties, missing process numbers, and publications that contain more than one possible date. The workflow is ready only when these cases have an intentional outcome.
- 7
Launch with a review period
For the first two to four weeks, keep a human approval step before calendar and external system writes. Compare automation results with the team’s manual review and adjust filters before increasing volume.
Webhook templates, prompts, and cost controls
A compact webhook payload helps every downstream connector work from the same contract. The following example is intentionally generic because field names and authentication depend on the Pocket Jurídico endpoint enabled for the account: {"event":"publication.created","publication_id":"pub_123","process_number":"0000000-00.0000.0.00.0000","published_at":"2026-10-15T09:30:00-03:00","court":"Court name","text":"Publication text","source_url":"https://example.com/record","monitoring_term":"Company name"}.
In production, add a schema version, tenant identifier, received timestamp, and a signature or authenticated transport. Avoid placing access tokens in the payload. If a connector must retry, use the publication ID and schema version to ensure the receiving workflow can safely process the same message again.
Usage cost depends on the number of monitored names and terms, publication volume, workflow runs, API calls, and LLM tokens. A simple estimate is: monthly cost equals source events plus filter runs plus AI calls plus destination writes, multiplied by each platform’s unit price. The exact Pocket Jurídico charge is based on the volume of names and terms monitored, while external automation and AI providers may charge by tasks, operations, or tokens.
A useful optimization is to filter before calling an LLM. If only 15% of incoming publications concern active litigation or urgent terms, classify with deterministic rules first and reserve AI calls for that smaller set. Also cache summaries by publication ID and avoid sending the same full document to multiple models.
Make failures visible. A failed Salesforce write, expired calendar token, or rejected Slack request should enter an error queue with the original event ID, response code, retry count, and owner. Silent failures are more dangerous than slow workflows because they create false confidence.
Validation checklist and mistakes to avoid
- ✓Confirm that every publication has a stable identifier and that the identifier is preserved across the webhook, AI result, calendar event, Slack message, CRM activity, and ERP record.
- ✓Run the same payload twice and verify that the second run updates or stops instead of creating another event, task, alert, or account activity.
- ✓Check time zones explicitly. Brazilian legal teams may operate across regions, and an ISO timestamp without a configured time zone can shift a calendar date.
- ✓Separate publication date, availability date, procedural deadline, internal review date, and client reporting date. These are different business concepts and should not share one ambiguous field.
- ✓Require a human approval step for extracted deadlines until the organization has measured accuracy across its own courts, matter types, and publication patterns.
- ✓Keep the original publication and source link beside the AI summary. A concise summary is useful for triage but cannot replace the underlying record.
- ✓Use routing rules to prevent alert fatigue. Send critical events to Slack or Teams, moderate items to a queue, and routine publications to the feed or daily report.
- ✓Create external IDs in Salesforce and ERP objects rather than matching only on process number. A single process may have multiple parties, business units, or related matters.
- ✓Limit personal data in chat messages and reports. Put sensitive documents behind authenticated links instead of copying their full content into broad channels.
- ✓Measure four indicators during the pilot: duplicate rate, percentage of items requiring manual correction, time from publication to owner assignment, and percentage of urgent items acknowledged within the target window.
- ✓Document ownership for connector credentials, error handling, rule changes, and calendar administration. An automation without an operational owner becomes technical debt.
- ✓Review the workflow after changes to court sources, internal matter structures, ERP fields, or AI prompts. Small schema changes can break a previously reliable mapping.
How to scale from a pilot to an integrated legal operation
After the pilot, group automations by the team’s operating model rather than by software brand. A small firm may need a shared calendar, one urgent Slack channel, and a daily spreadsheet. A corporate legal department may need separate routing by business unit, Salesforce ownership, ERP cost center, and external law firm.
Pocket Jurídico can serve organizations that already use other software because the objective is not to replace every system. Its role can be to provide timely, organized publication and process data, while the CRM, ERP, or legal management platform continues to manage relationships, financial information, work allocation, or reporting.
For outsourced litigation, centralize the publication feed and preserve the responsible external office in the routing fields. This lets the corporate legal team maintain a consolidated view of its portfolio while sending only the relevant action to each firm. Comments and decisions can remain attached to the process context instead of being scattered across email chains.
Availability and support become more important as volume grows. A workflow that handles ten publications per day may fail when it receives thousands of events, especially if every item triggers several API calls. Use queues, rate limits, retry policies, and monitoring dashboards before expanding to every monitored term.
The mature state is not maximum automation. It is a controlled flow in which publications arrive early, urgent work is visible, deadlines have an accountable owner, external systems remain synchronized, and every decision can be traced to the source publication. That is the standard against which each of the 12 automations should be evaluated.
Frequently Asked Questions
Which Pocket Jurídico triggers can turn a publication into a Google Calendar event?▼
The usual trigger is a new publication event received through an available webhook or publication endpoint. The workflow should then filter the publication, extract or retrieve the process context, and require a validated date before creating the calendar event. A new publication should not automatically become a deadline because some items are informational, ambiguous, or missing the procedural basis for a date.
How can I prevent duplicate events when syncing publications with Salesforce or an ERP?▼
Create a deterministic idempotency key from the publication identifier and other stable fields, then search for that key before every create action. Store the destination record ID after a successful write so later runs can update the existing record. Also design for webhook retries, polling overlap, corrected publications, and partial failures rather than assuming each event will arrive only once.
How do I send critical legal alerts automatically to Slack or Teams?▼
First define a criticality rule based on factors such as a validated deadline, short response window, matter risk, court, or responsible business unit. After filtering, send a concise message containing the process number, action, date, owner, and authenticated link to the source record. Use restricted channels and avoid sending every publication, because excessive alerts cause people to ignore the messages that require immediate attention.
How can MCP and AI extract a deadline before creating a task?▼
Use MCP or another approved AI connector to provide the model with the publication and relevant process context, then request structured output with a possible date, basis, proposed action, confidence, and missing information. The automation should validate the returned schema and apply business rules before creating a task. Low-confidence or unsupported results should go to human review rather than directly to a calendar or ERP.
Can a low-code workflow connect Pocket Jurídico to Salesforce and TOTVS at the same time?▼
Yes, when the available APIs, authentication methods, and data mappings support the required objects and fields. The safer design uses one normalized publication event and separate destination branches, each with its own filters, external ID, retry policy, and error queue. Do not assume that a successful Salesforce write means the ERP write also succeeded.
What information should a legal publication webhook contain?▼
At minimum, include a stable publication ID, process number, publication timestamp, court or source, monitored term, full text or a secure reference, source URL, and schema version. Add tenant, received timestamp, and authentication metadata when the integration requires them. The receiving workflow should be able to identify the event, retrieve its context, and safely process it again without creating duplicates.
How much do these legal automations cost to operate?▼
There is no single price because cost depends on monitored names and terms, publication volume, automation operations, destination API usage, and AI token consumption. Pocket Jurídico uses a model based on the volume of names and terms monitored, while external tools may charge by tasks, operations, or requests. Estimate each stage separately and reduce cost by filtering before AI calls, caching results, and avoiding unnecessary writes.
Should AI create legal deadlines without human approval?▼
It should generally suggest and structure a deadline rather than make the final decision without review. Court publications can be incomplete, ambiguous, or dependent on procedural context that is not present in the text. A human approval step is especially important during rollout, and the organization should measure correction rates before deciding whether any low-risk category can follow a lighter approval path.