SShortSingh.
Back to feed

Four JSON Schema Invariants for Reliable LLM Tags in CRM Workflows

0
·6 views

The article argues that when an LLM's classification output triggers a CRM action, it should be governed by a JSON Schema rather than prompt-based text parsing. It proposes four invariants to check before accepting a result: a closed label vocabulary, correct value types, required fields, and explicit handling of uncertainty. Using a logistics sales call as the example, it shows a structured record with intent, urgency, follow-up flag, confidence, and supporting evidence. The author contends that a JSON parser alone only verifies decodability, while a schema defines legal values and mandatory fields. Schema validation does not guarantee correctness, but it makes malformed or out-of-contract outputs visible so they can be rejected or routed for review.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

France to levy download tax of €0.055 per GB on content providers

France is preparing to introduce a levy on content providers, set at €0.055 per gigabyte of data delivered to users in the country. The charge would apply to data sent to French users, placing the cost burden on the companies distributing content. The item was shared on Hacker News and linked to a discussion thread on ResetEra, where users debated the proposal. The source material provided is limited, so further details on the timeline, legal basis, and exact scope of the tax are not available.

0
ProgrammingDEV Community ·

Developer open-sources four MIT-licensed tools for AI-driven e-commerce work

Naser Sadrmanesh, an AI product engineer and store founder, has released four small open-source projects, all under the MIT license. The tools were built from utilities he repeatedly needed for client online stores. One is llm-search-eval, which compares search system changes using a shared label pool, LLM judges, and statistical tests. Another is woocommerce-mcp, which gives AI agents access to WooCommerce stores with read-only defaults, preview-and-confirm writes, and audit logging. A third, commerce-agent-skills, is a library of 29 Markdown skills that guide coding agents toward correct e-commerce implementation details.

0
ProgrammingDEV Community ·

Debugging a failing Docker container by committing it and overriding the entrypoint with a shell

A developer using Docker Compose found that a Django container kept exiting shortly after launch, showing exit code 127 in the docker ps output. To investigate, they committed the failed container to a new image so its state could be preserved. They then started that image with the entrypoint overridden to launch an interactive shell, using /bin/bash or /bin/sh if bash is unavailable. This gives access to run diagnostic commands inside the container's environment, with the specific checks depending on the problem.

0
ProgrammingDEV Community ·

Planning Active Directory Protected Users membership and managing its exceptions

Microsoft's Protected Users group applies fixed protections against credential theft, such as blocking credential caching, NTLM and Digest delegation, and limiting Kerberos to newer encryption. Because these restrictions cannot be toggled per account, adding a user is a compatibility decision as well as a security one. The article recommends first inventorying authentication dependencies through logs, then running a small pilot that tests interactive sign-in, administration, Kerberos tickets and delegation. Organizations should keep a tested break-glass account, record approvals and rollback steps, and review membership regularly so the group stays small and current. Protection only applies on supported hosts and domain controllers, so the platform should be verified before reporting an account as protected.