Cookbook
The API Reference describes every endpoint on its own. The Cookbook shows how the endpoints combine into the workflows our customers run in production. Each recipe walks through the whole sequence: when it fits, what you send, how you process the result and where the pitfalls are.
How to read the recipes
Every recipe has the same structure: the use case in one sentence, a sequence diagram with all
calls, then step by step with concrete curl examples and payloads. Where xander makes
a deliberate design decision that shapes your integration (for example: xander is stateless
and does not know your master data), the recipe explains why and how to deal with it.
Recipes
Field Service Voice Intake
A service technician records a voice note after a job; xander turns it into a structured work report with services, materials and tools matched against your catalogue. Covers the catalogue-reduction pattern.
Care Entry Workflow
The same shape applied to nursing documentation: a caregiver's voice note becomes a care report with interventions, medications and consumables.
Document Extraction
Upload a PDF or Word document (delivery note, invoice, contract) and pull structured fields out of it against your own JSON schema. Two calls, no audio.
Meeting Helper (long audio, async)
An hour-long meeting recording becomes a transcript and a summary. Covers the asynchronous pattern with job polling and its pitfalls.
Conventions used in the recipes
-
Examples use
curlwith placeholders such as$ACCESS_TOKENand$XANDER_BASE_URL. The base URL is listed in the API Reference. - JSON property names are written in camelCase, as in the reference; the API also accepts PascalCase. Field names in your own output schema are yours to choose, in German, French or Italian too, as long as prompt template and schema agree.
- The recipes assume you have completed the Onboarding and have a working Service Principal.
- All examples run against the same production environment as your Service Principal. There is no sandbox; trying the recipes produces real, billed calls.
Prompt templates and your xander contact
Your application sends no prompt text to xander. We set up the prompt templates
server-side in your project, your code references them via promptname in
options.promptIdentification. This lets us improve prompts without you redeploying.
The promptname values in the recipes are examples. If you want to use a recipe in
production, have the matching templates set up by your xander contact first; that is also where
you agree on the queryParameter names and the catalogue format.