Meeting Helper (long audio, async)

A meeting recording of one or two hours becomes a clean transcript and a structured summary with decisions, action items and open questions. This recipe is also the reference example of the asynchronous transcription pattern, which you need whenever a recording is too long for a synchronous call.

The workflow at a glance

┌──────────────┐    ┌────────────┐    ┌──────────┐
│ Meeting tool │    │ Your app   │    │ xander   │
│ (Teams, Zoom)│    │            │    │          │
└──────┬───────┘    └─────┬──────┘    └─────┬────┘
       │ recording        │                 │
       │─────────────────>│                 │
       │                  │ 1. upload       │
       │                  │────────────────>│
       │                  │   audioId       │
       │                  │<────────────────│
       │                  │                 │
       │                  │ 2. start async  │
       │                  │    transcribe   │
       │                  │────────────────>│
       │                  │   202 + jobId   │
       │                  │<────────────────│
       │                  │                 │
       │                  │ 3. poll jobs/   │
       │                  │    {jobId}      │
       │                  │ ──────────────> │
       │                  │   202 (running) │
       │                  │ <────────────── │
       │                  │   ... wait ...  │
       │                  │ ──────────────> │
       │                  │   200 + result  │
       │                  │ <────────────── │
       │                  │                 │
       │                  │ 4. summarise    │
       │                  │────────────────>│
       │                  │   meeting notes │
       │                  │<────────────────│

Why async?

The synchronous endpoints (POST /prompt/audioTranscription and POST /prompt/audioTranscription-large) hold the HTTP connection open for the whole duration of the transcription. For short audio that is fine. For an hour-long meeting a single request takes minutes, and proxies, load balancers, your framework's request timeout and HTTP/2 idle limits all become risks. The async pattern avoids all of that: the start returns immediately and you fetch the result on your own schedule.

Rule of thumb: over 10 minutes of audio, prefer async. Over 30 minutes async is mandatory in practice; a synchronous call of that length hits a timeout somewhere on the network path even though it would technically work end-to-end.

Step 1: Upload the audio file and get an ID

For long audio you do not want to base64-encode the whole file into the JSON body. Upload it once via POST /audiostore/upload as multipart form-data and use the returned ID in the transcription request.

curl -X POST "$XANDER_BASE_URL/audiostore/upload" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -F "audio=@team-meeting-2026-04-11.m4a;type=audio/mp4"

The response is the audio ID as text:

"7d41a0c9-…"

Step 2: Start the async transcription job

Call POST /prompt-async/audioTranscription-large with the audio ID and a segment duration. The endpoint returns immediately with 202 Accepted, a Location header pointing at the polling endpoint and the jobId in the body.

curl -i -X POST "$XANDER_BASE_URL/prompt-async/audioTranscription-large" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "audioInput": { "audioId": "7d41a0c9-…" },
    "segmentDurationSeconds": 140,
    "options": {
      "promptIdentification": {
        "projectId": "<your project>",
        "promptname": "meeting-helper/audio_transcription"
      },
      "sessionMetadata": {
        "useCaseName": "meeting-helper",
        "useCaseSessionId": "<your meeting id>"
      }
    }
  }'

Response:

HTTP/1.1 202 Accepted
Location: https://<host>/prompt-async/audioTranscription-large/jobs/abc-123-def

{ "jobId": "abc-123-def" }

Choosing the segment duration

segmentDurationSeconds tells xander how to chop the recording up internally before sending the segments to the speech-to-text model. Sensible values:

  • 60 to 140 seconds for typical meetings, a good balance of throughput and segment quality.
  • 10 to 30 seconds if speaker overlap is heavy or audio quality is poor; smaller segments give the model less to confuse, but reduce throughput slightly.
  • 240 seconds and more if audio is clean and you want maximum throughput.

Language of the recording

Without transcriptionOptions the default is German. Set audioLanguage only if the language is known for sure; for mixed or unknown languages use the value auto. A wrong hint degrades the whole transcript.

Step 3: Poll for the result

Call GET /prompt-async/audioTranscription-large/jobs/{jobId} repeatedly until you get 200 OK. While the job is running you get 202 Accepted with a status field.

curl -i "$XANDER_BASE_URL/prompt-async/audioTranscription-large/jobs/abc-123-def" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

While running:

HTTP/1.1 202 Accepted
Content-Type: application/json

{ "jobId": "abc-123-def", "status": "Running" }

When complete:

HTTP/1.1 200 OK
Content-Type: application/json

{
  "transcription": "Begrüssung. Heute besprechen wir die Roadmap für Q3 ...",
  "originalTranscript": "...",
  "gptResult":      { "plainResponse": "..." },
  "metaInformation": { "retries": 0, "appliedModel": "...", "transparency": null }
}

If the job fails, the status endpoint answers 400, 422 or 500 with a body { "error", "message" }; an unknown jobId returns 404.

Recommended polling pattern

Poll at a fixed interval of about 3 seconds, with no exponential backoff. The transcription is the bottleneck, not the polling. Implement a hard timeout (for example four times the expected duration) so a stuck job does not block your worker forever.

// Pseudocode
function pollTranscriptionJob(jobId, timeout = 30 minutes):
  start = now()
  while now() - start < timeout:
    response = GET $XANDER_BASE_URL/prompt-async/audioTranscription-large/jobs/{jobId}
    if response.status == 200: return response.body.transcription
    if response.status != 202: fail("Job failed: " + response.body.message)
    wait(3 seconds)
  fail("Transcription timed out")

Step 4: Summarise the transcript

With the transcript in hand, generate the summary via POST /prompt/informationextraction. What it contains is determined by the prompt template; typical content is decisions, action items with owner and due date, open questions, attendees and a short TL;DR.

curl -X POST "$XANDER_BASE_URL/prompt/informationextraction" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userQuery": {
      "userQueryText": "<the transcript from step 3>"
    },
    "options": {
      "promptIdentification": {
        "projectId": "<your project>",
        "promptname": "meeting-helper/meeting_notes_summary"
      },
      "sessionMetadata": {
        "useCaseName": "meeting-helper",
        "useCaseSessionId": "<same meeting id>"
      }
    }
  }'

If you want strictly structured output (for example action items as a JSON list your task tracker ingests directly), use POST /prompt/informationextraction-structured and pass an outputStructure with a JSON schema. How to design the schema is shown in the Document Extraction recipe. If the summary takes long as well, it is available asynchronously at POST /prompt-async/informationextraction with the same polling pattern.

Gotchas and tips

  • The job lives on the server, not in your client. If your worker crashes between step 2 and 3, store the jobId in your own persistence and resume polling from a new process. The job keeps running on our side regardless of whether you poll.
  • Do not poll too aggressively. Sub-second polling is wasteful. 3 seconds is a good default.
  • But not too slowly either. With 60-second polling, a 10-second job is reported back to you 50 seconds late on average.
  • Limits apply to polling too. Every poll is an API call. Read calls have a more generous window than uploads and job starts, but 100 concurrent transcriptions polled every 3 seconds are about 33 calls per second. Watch the rate-limit headers and space out your polls if you approach the limit. See Limits & Quotas.
  • Do not fall back to the synchronous endpoint. Yes, POST /prompt/audioTranscription-large accepts long audio too. But it holds the connection open the whole time, a recipe for timeouts on the network path. Over 10 minutes, use the async endpoint.
  • Speaker diarisation. The transcription does not output speaker labels (Speaker 1, Speaker 2). If you need them, tell your xander contact; we prioritise by demand.

Next

For shorter recordings (under 20 minutes) the synchronous transcription endpoint from step 1 of Field Service Voice Intake is enough, simpler because there is no polling.