Skip to main content

Scenario

Find long-term customers (12+ months of invoices, growing amounts) and use Mavera’s chat endpoint to draft case study narratives from their payment trajectory.

Architecture

Code

Example Output

Error Handling

Returns up to 100 per call. Python auto-paging handles this; in JavaScript, loop with starting_after set to the last invoice ID.
Increase max_tokens (up to 4,096) or split into two calls and concatenate.