Field Service Voice Intake

A service technician finishes a job (an HVAC unit installation, a machine repair, an on-site inspection) and dictates a short voice note: what they did, which materials and tools they used, what is still open. Your ERP turns that into a structured work report ready for invoicing, with services, materials and tools matched to your catalogue.

The workflow at a glance

┌──────────────┐    ┌────────────┐    ┌──────────┐
│ Technician   │    │ Your ERP   │    │ xander   │
└──────┬───────┘    └─────┬──────┘    └─────┬────┘
       │ voice note       │                 │
       │─────────────────>│                 │
       │                  │ 1. transcribe   │
       │                  │────────────────>│
       │                  │   transcript    │
       │                  │<────────────────│
       │                  │                 │
       │                  │ 2. summarise +  │
       │                  │    classify     │
       │                  │────────────────>│
       │                  │   summary +     │
       │                  │   coarse cats   │
       │                  │<────────────────│
       │                  │                 │
       │                  │ 3. SELECT FROM  │
       │                  │    catalog WHERE│
       │                  │    cat IN (...) │
       │                  │ (your DB)       │
       │                  │                 │
       │                  │ 4a. identify    │
       │                  │     services    │
       │                  │────────────────>│
       │                  │ 4b. identify    │
       │                  │     materials   │
       │                  │────────────────>│
       │                  │ 4c. identify    │
       │                  │     tools       │
       │                  │────────────────>│
       │                  │   3 results     │
       │                  │<────────────────│
       │                  │                 │
       │                  │ persist work    │
       │                  │ report          │
Why this workflow looks the way it does

xander is intentionally stateless and does not connect to your catalogue or master data. Match quality scales inversely with the size of the candidate set: give us 50,000 catalogue items in step 4 and the model guesses or hallucinates; give us 80 items pre-filtered by the category identified in step 2 and accuracy goes up noticeably.

That is why the recommended pattern is: (1) transcribe, (2) let xander do a coarse classification, (3) use that classification in your own system to narrow the catalogue, (4) hand the reduced catalogue back to xander as context for the precise identification. Skipping the reduction in step 3 works, but precision drops noticeably as your catalogue grows.

Step 1: Transcribe the voice note

For a typical field-service voice note (under 20 MB, under 20 minutes) use the synchronous POST /prompt/audioTranscription endpoint. Short recordings can be sent inline as base64; the alternative via POST /audiostore/upload and audioId is shown in the Meeting Helper recipe.

curl -X POST "$XANDER_BASE_URL/prompt/audioTranscription" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "audioInput": {
      "audioFile": {
        "base64AudioFile": "<base64-encoded audio bytes>",
        "fileName": "job-4711.m4a",
        "audioType": "audio/mp4"
      }
    },
    "options": {
      "promptIdentification": {
        "projectId": "<your project>",
        "promptname": "field-service/audio_transcription"
      },
      "sessionMetadata": {
        "useCaseName": "field-service-voice-intake",
        "useCaseSessionId": "<your correlation id, e.g. job ticket id>"
      }
    }
  }'

Response:

{
  "transcription": "Wartung Lüftungsanlage abgeschlossen, Filter F7 ersetzt, ...",
  "originalTranscript": "Wartung Lüftungsanlage abgeschlossen, Filter F7 ersetzt, ...",
  "gptResult": { "plainResponse": "..." },
  "metaInformation": { "retries": 0, "appliedModel": "...", "transparency": null }
}

Set useCaseSessionId to your own ticket or job ID and reuse the same value in every subsequent call of this workflow. That is how all calls of one voice intake hang together in our logs, which makes support requests much faster to debug.

Language of the recording

Without transcriptionOptions the default is German. Set audioLanguage only if you know the language for sure; a wrong hint degrades every transcript. If the language is unknown, use { "languageCodeIso639": "auto" }.

When the audio is long

If the recording is longer than about 20 minutes, switch to the async endpoint POST /prompt-async/audioTranscription-large and poll for the result. The pattern is shown in the Meeting Helper recipe.

Step 2: Generate a summary and identify coarse categories

Send the transcript to POST /prompt/informationextraction. The template returns a human-readable work report and a coarse classification of which catalogue categories are likely relevant (e.g. "HVAC maintenance, filter replacement; air handler"). You use that classification in step 3 to filter your own catalogue.

curl -X POST "$XANDER_BASE_URL/prompt/informationextraction" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userQuery": {
      "userQueryText": "Wartung Lüftungsanlage abgeschlossen, Filter F7 ersetzt, ..."
    },
    "options": {
      "promptIdentification": {
        "projectId": "<your project>",
        "promptname": "field-service/work_report_summary"
      },
      "sessionMetadata": {
        "useCaseName": "field-service-voice-intake",
        "useCaseSessionId": "<same correlation id as step 1>"
      }
    }
  }'

The exact shape of the response is determined by the prompt template your xander contact sets up for you. Typical output is a Markdown report in the result field plus a list of category hints; if you need strictly machine-readable categories, use the structured endpoint with a small schema instead.

Step 3: Reduce your catalogue (in your own system)

This step does not involve xander. In your ERP, query your service, materials and tools catalogues, filtered by the categories from step 2. Pseudocode:

SELECT articleNumber, name, unit
FROM service_catalog
WHERE category IN ('hvac.maintenance', 'hvac.filter_replacement');

SELECT articleNumber, name, unit
FROM material_catalog
WHERE category IN ('hvac.consumables', 'hvac.filters');

SELECT articleNumber, name
FROM tool_catalog
WHERE category IN ('hvac.handheld', 'hvac.measurement');

Aim for a few dozen to a few hundred candidates per category, not the entire catalogue. The reduced lists are what you pass back to xander in step 4 as queryParameter values, for example under the names Leistungskatalog, Materialkatalog and Werkzeugkatalog. The names are defined by the template.

Step 4: Identify services, materials and tools (in parallel)

Three independent POST /prompt/informationextraction-structured calls, one per category. They have no dependency on each other and you can fire them in parallel. Each call gets the transcript, the relevant reduced catalogue and a JSON schema describing the shape you want.

Step 4a: Identify services

curl -X POST "$XANDER_BASE_URL/prompt/informationextraction-structured" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userQuery": { "userQueryText": "<the transcript from step 1>" },
    "queryParameter": [
      { "name": "Leistungskatalog", "value": "<reduced services catalogue as text, CSV or TOON>" }
    ],
    "options": {
      "promptIdentification": {
        "projectId": "<your project>",
        "promptname": "field-service/identify_services"
      },
      "sessionMetadata": {
        "useCaseName": "field-service-voice-intake",
        "useCaseSessionId": "<same correlation id>"
      }
    },
    "outputStructure": {
      "jsonSchemaDefinition": "{\"type\":\"object\",\"properties\":{\"services\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/$defs/Service\"}}},\"required\":[\"services\"],\"additionalProperties\":false,\"$defs\":{\"Service\":{\"type\":\"object\",\"properties\":{\"articleNumber\":{\"type\":\"string\",\"description\":\"Unique identifier of the service from the reduced catalogue\"},\"name\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\",\"description\":\"Why this service was identified\"},\"confidence\":{\"type\":\"number\",\"description\":\"1=low, 5=medium, 10=high\"},\"quantity\":{\"type\":\"number\"}},\"required\":[\"articleNumber\",\"name\",\"reason\",\"confidence\",\"quantity\"],\"additionalProperties\":false}}}"
    }
  }'

Response:

{
  "result": {
    "services": [
      {
        "articleNumber": "SVC-HVAC-MAINT-STD",
        "name": "Standard HVAC maintenance visit",
        "reason": "The technician explicitly mentioned a complete maintenance run.",
        "confidence": 9,
        "quantity": 1
      },
      {
        "articleNumber": "SVC-HVAC-FILTER-F7",
        "name": "Filter replacement F7",
        "reason": "Mentioned 'F7 ersetzt' in the transcript.",
        "confidence": 10,
        "quantity": 1
      }
    ]
  },
  "gptResult":      { "plainResponse": "..." },
  "metaInformation": { "retries": 0, "appliedModel": "...", "transparency": null }
}

Step 4b: Identify materials

Same shape as 4a, with Materialkatalog as the catalogue parameter and its own template and schema.

"queryParameter": [
  { "name": "Materialkatalog", "value": "<reduced materials catalogue>" }
],
"options": { "promptIdentification": { "projectId": "<your project>", "promptname": "field-service/identify_materials" }, ... },
"outputStructure": { "jsonSchemaDefinition": "{... same shape as services, with 'materials' instead of 'services' ...}" }

Step 4c: Identify tools

Same again, with the tools catalogue and a tools-specific schema. Three calls in parallel, the order they finish in does not matter.

Putting it all together: pseudocode

correlationId = ticket.id

// Step 1
transcript = xander.transcribe(audio, correlationId)

// Step 2
summary = xander.summarise(transcript, correlationId)

// Step 3: your own database
reducedServices  = db.servicesIn(summary.categories)
reducedMaterials = db.materialsIn(summary.categories)
reducedTools     = db.toolsIn(summary.categories)

// Step 4: parallel fan-out
[services, materials, tools] = parallel(
  xander.identifyServices(transcript, reducedServices, correlationId),
  xander.identifyMaterials(transcript, reducedMaterials, correlationId),
  xander.identifyTools(transcript, reducedTools, correlationId)
)

persistWorkReport(ticket, transcript, summary, services, materials, tools)

Gotchas and tips

  • The correlation ID is your friend. Always set sessionMetadata.useCaseSessionId to the same value across all calls of one workflow. Otherwise debugging a failed workflow with our support becomes a needle-in-haystack exercise.
  • Catalogue format. The catalogue in the queryParameter can be JSON, CSV, plain text or TOON, anything the template knows how to read. Agree the format with your xander contact when the template is set up. The name user_query is reserved.
  • Confidence is advisory. The confidence field in the schema is what the model claims about its own certainty. Use it to hide weak matches in your UI ("only items with confidence 6 or more"), not to make legal claims.
  • Do not skip the reduction in step 3. Even with a catalogue of only 500 entries, sending the full set on every call costs tokens (and therefore money) and degrades match quality. Reduction is the single most effective lever for both quality and cost.
  • Parallel fan-out and limits. Step 4 fires three calls at once. That is well within the limits, but if you process many workflows simultaneously you may reach them. How the API tells you is described under Limits & Quotas.

Next

The Care Entry Workflow recipe walks through the same shape in a different domain (nursing documentation). If your use case is more about documents than voice notes, see Document Extraction.