Skip to main content

Scenario

Pull disputes, categorize by reason code (product_not_received, duplicate, fraudulent, etc.), and use Mavera’s structured-output chat to rewrite product descriptions and checkout copy. JSON output feeds directly into a CMS or A/B test.

Architecture

Code

Example Output

Error Handling

Older disputes may have sparse evidence. Skip empty product_description examples — reason code and amount alone produce useful recommendations.
Simplify the schema and retry. Set "strict": true inside json_schema to force adherence (may increase latency).