> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask every usability session one question

> Ask one question across all your usability sessions and get every participant's answer, opened at the moment they said it, beside the screen they were on.

![Ask every usability session one question](https://mixpeek.com/templates/ux-session-analysis/session.webp)

Ask one question across all your usability sessions and get every participant's answer, opened at the moment they said it, beside the screen they were on.

> [card] [Deploy in Studio](https://studio.mixpeek.com/manifests/apply?url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fux-session-analysis.namespace.yaml\&manifest_url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fux-session-analysis.namespace.yaml\&src=template-ux-session-analysis\&template=ux-session-analysis\&template_name=Ask+every+usability+session+one+question\&sync=1\&utm_source=docs\&utm_medium=template_deploy\&utm_campaign=mvs_onramp)
>
> Creates every resource below in your organization, with sample data.

> [card] [Download the manifest](https://mixpeek.com/templates/ux-session-analysis.namespace.yaml)
>
> `ux-session-analysis.namespace.yaml`, the file Studio and the API apply.

> [card] [Template page](https://mixpeek.com/templates/ux-session-analysis)
>
> The demo and the use case on mixpeek.com.

## At a glance

| | |
| - | - |
| **Creates** | 1 namespace, 1 bucket, 2 collections, 3 retrievers, 1 alert |
| **Extractors** | [`multimodal_extractor`](https://docs.mixpeek.com/docs/extract/extractors#multimodal) v1, [`text_extractor`](https://docs.mixpeek.com/docs/extract/extractors#text) v1 |
| **Models** | [Multilingual E5 Large Instruct](https://mixpeek.com/models/multilingual-e5-large-instruct), [Vertex AI multimodalembedding@001](https://mixpeek.com/models/multimodalembedding) |
| **Daily spend budget** | 0.1 USD, set on the namespace. Queries are not capped. |
| **Version** | 1.0, updated 2026-09-13 |

## How the pieces connect

Buckets hold what you upload, collections turn it into searchable documents, and retrievers answer queries over the collections.

```mermaid theme={null}
flowchart LR
  b0[("sessions")]
  c1["session-scenes<br/>multimodal_extractor v1"]
  c2["session-transcripts<br/>text_extractor v1"]
  r3{{"find-the-moment"}}
  r4{{"task-roll-up"}}
  r5{{"frustration-monitor"}}
  b0 --> c1
  c1 --> c2
  c1 --> r3
  c2 --> r3
  c2 --> r4
  c1 --> r4
  c2 --> r5
```

## Deploy it

> [tab] API
>
> **1. Get the manifest**
>
> ```bash theme={null}
> curl -sO https://mixpeek.com/templates/ux-session-analysis.namespace.yaml
> ```
>
> **2. Validate it**
>
> Validate runs every check apply runs and creates nothing. Fix each entry in `errors`, then run it again.
>
> ```bash theme={null}
> curl -X POST https://api.mixpeek.com/v1/manifest/validate \
>   -H "Authorization: Bearer $MIXPEEK_API_KEY" \
>   -F "manifest_file=@ux-session-analysis.namespace.yaml"
> ```
>
> **3. Apply it**
>
> Apply creates every resource in one call and answers when they exist.
>
> ```bash theme={null}
> curl -X POST "https://api.mixpeek.com/v1/manifest/apply" \
>   -H "Authorization: Bearer $MIXPEEK_API_KEY" \
>   -F "manifest_file=@ux-session-analysis.namespace.yaml"
> ```
>
> The response lists each resource with its outcome in `resources`. Apply refuses a resource that already exists and rolls the whole apply back, so to apply the file again over this namespace add `?mode=create_missing`, which creates only what is missing.

> [tab] Studio
>
> Open [Deploy in Studio](https://studio.mixpeek.com/manifests/apply?url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fux-session-analysis.namespace.yaml\&manifest_url=https%3A%2F%2Fmixpeek.com%2Ftemplates%2Fux-session-analysis.namespace.yaml\&src=template-ux-session-analysis\&template=ux-session-analysis\&template_name=Ask+every+usability+session+one+question\&sync=1\&utm_source=docs\&utm_medium=template_deploy\&utm_campaign=mvs_onramp), sign in, choose where to deploy, and select **Apply to my workspace**. Studio shows each resource as it is created.

## Run the first query

Look up the namespace id by name, then run `find-the-moment`. Check `status` and `warnings` along with `documents`: a run that times out still answers 200, with `status` `degraded`.

```bash cURL theme={null}
NAMESPACE_ID=$(curl -s https://api.mixpeek.com/v1/namespaces/ux-session-analysis \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" | jq -r .namespace_id)

curl -X POST https://api.mixpeek.com/v1/retrievers/find-the-moment/execute \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"query": "where did people hesitate on the checkout step"}}' \
  | jq '{status, warnings, documents: [.documents[] | {document_id, score}]}'
```

```python Python theme={null}
import os, requests

AUTH = {"Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}"}
ns = requests.get("https://api.mixpeek.com/v1/namespaces/ux-session-analysis", headers=AUTH).json()

run = requests.post(
    "https://api.mixpeek.com/v1/retrievers/find-the-moment/execute",
    headers={**AUTH, "X-Namespace": ns["namespace_id"]},
    json={"inputs": {"query": "where did people hesitate on the checkout step"}},
).json()

print(run["status"], run["warnings"])  # "completed" on a clean run
for doc in run["documents"]:
    print(doc["document_id"], doc["score"])
```

```javascript JavaScript theme={null}
const auth = { Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}` };
const ns = await fetch("https://api.mixpeek.com/v1/namespaces/ux-session-analysis", { headers: auth }).then((r) => r.json());

const run = await fetch("https://api.mixpeek.com/v1/retrievers/find-the-moment/execute", {
  method: "POST",
  headers: { ...auth, "X-Namespace": ns.namespace_id, "Content-Type": "application/json" },
  body: JSON.stringify({"inputs": {"query": "where did people hesitate on the checkout step"}}),
}).then((r) => r.json());

console.log(run.status, run.warnings); // "completed" on a clean run
for (const doc of run.documents) console.log(doc.document_id, doc.score);
```

## Add your own data

Each object you add to a bucket is processed by every collection that reads it. This adds one object to `sessions`. `NAMESPACE_ID` is the id from the namespace lookup above.

```bash cURL theme={null}
curl -X POST "https://api.mixpeek.com/v1/buckets/sessions/objects?auto_process=true" \
  -H "Authorization: Bearer $MIXPEEK_API_KEY" \
  -H "X-Namespace: $NAMESPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{"study_id": "example", "participant_id": "example", "study_task_id": "example", "rig_id": "example", "blobs": [{"property": "content", "type": "video", "data": "https://example.com/clip.mp4"}]}'
```

```python Python theme={null}
import os, requests

HEADERS = {"Authorization": f"Bearer {os.environ['MIXPEEK_API_KEY']}", "X-Namespace": os.environ["NAMESPACE_ID"]}

obj = requests.post(
    "https://api.mixpeek.com/v1/buckets/sessions/objects",
    params={"auto_process": "true"},
    headers=HEADERS,
    json={
        "study_id": "example",
        "participant_id": "example",
        "study_task_id": "example",
        "rig_id": "example",
        "blobs": [
            {
                "property": "content",
                "type": "video",
                "data": "https://example.com/clip.mp4"
            }
        ]
    },
).json()
print(obj["object_id"], obj["status"])  # PENDING until processing finishes
```

```javascript JavaScript theme={null}
const headers = {
  Authorization: `Bearer ${process.env.MIXPEEK_API_KEY}`,
  "X-Namespace": process.env.NAMESPACE_ID,
  "Content-Type": "application/json",
};

const obj = await fetch("https://api.mixpeek.com/v1/buckets/sessions/objects?auto_process=true", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "study_id": "example",
    "participant_id": "example",
    "study_task_id": "example",
    "rig_id": "example",
    "blobs": [
      {
        "property": "content",
        "type": "video",
        "data": "https://example.com/clip.mp4"
      }
    ]
  }),
}).then((r) => r.json());
console.log(obj.object_id, obj.status); // PENDING until processing finishes
```

The object is `PENDING` until processing finishes, then `COMPLETED` or `FAILED`. [Buckets and objects](https://docs.mixpeek.com/docs/ingest/buckets.md) covers object states, retries and duplicates.

## Retrievers

### `find-the-moment`

Searches session-scenes, session-transcripts across 2 feature indexes with rrf fusion.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search)

**Searches:** `session-scenes`, `session-transcripts`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |

### `task-roll-up`

Searches session-transcripts, session-scenes across 1 feature index. Groups documents by participant\_id.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search) → [`group_by`](https://docs.mixpeek.com/docs/retrieve/stages#group-by)

**Searches:** `session-transcripts`, `session-scenes`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |

### `frustration-monitor`

The alert's check: does the transcript just written show a participant frustrated or giving up. Scoped to that one transcript. Materialises into participant-frustration.

**Stages:** [`feature_search`](https://docs.mixpeek.com/docs/retrieve/stages#feature-search)

**Searches:** `session-transcripts`

| Input | Type | Required | Description |
| - | - | - | - |
| `query` | text | yes | What to look for; searched across every index below |
| `document_id` | text | yes | The written document this run is scoped to, supplied by the alert attachment |

## Collections

Each collection runs one extractor over a bucket, or over another collection's documents.

> [accordion] session-scenes
>
> multimodal\_extractor\@v1 over bucket sessions. Feeds session-transcripts, find-the-moment, task-roll-up.
>
> **Reads** bucket `sessions` with [`multimodal_extractor`](https://docs.mixpeek.com/docs/extract/extractors#multimodal) v1.
>
> **Inputs:** `video` ← `content`
>
> **Copied onto each document:** `study_id`, `participant_id`, `rig_id`, `study_task_id`, `file_location`, `segment_id`, `start_time`, `end_time`
>
> | Document field | Type |
> | - | - |
> | `study_id` | string |
> | `participant_id` | string |
> | `rig_id` | string |
> | `study_task_id` | string |
> | `file_location` | any |
> | `segment_id` | any |
> | `start_time` | number |
> | `end_time` | number |
> | `start_frame` | integer |
> | `end_frame` | integer |
> | `fps` | number |
> | `source_fps` | number |
> | `analysis_fps` | number |
> | `width` | integer |
> | `height` | integer |
> | `aspect_ratio` | number |
> | `duration` | number |
> | `transcription` | string |
> | `description` | string |
> | `ocr_text` | string |
> | `json_output` | object |
> | `thumbnail_url` | string |
> | `source_video_url` | string |
> | `video_segment_url` | string |
> | `multimodal_extractor_v1_multimodal_embedding` | array\<number> |
> | `multimodal_extractor_v1_transcription_embedding` | array\<number> |
> | `internal_metadata` | object |

> [accordion] session-transcripts
>
> text\_extractor\@v1 over collection session-scenes. Feeds frustration-monitor, participant-frustration, find-the-moment, task-roll-up.
>
> **Reads** collection `session-scenes` with [`text_extractor`](https://docs.mixpeek.com/docs/extract/extractors#text) v1.
>
> **Inputs:** `text` ← `transcription`
>
> **Copied onto each document:** `study_id`, `participant_id`, `study_task_id`, `segment_id`, `video_segment_url`, `start_time`, `end_time`
>
> | Document field | Type |
> | - | - |
> | `study_id` | string |
> | `participant_id` | string |
> | `study_task_id` | string |
> | `segment_id` | any |
> | `video_segment_url` | string |
> | `start_time` | number |
> | `end_time` | number |
> | `text` | string |
> | `text_extractor_v1_embedding` | array\<number> |
> | `video_id` | string |
> | `title` | string |
> | `channel` | string |
> | `video_url` | string |
> | `duration_seconds` | integer |
> | `publish_date` | string |
> | `start_ms` | integer |
> | `end_ms` | integer |
> | `segment_index` | integer |
> | `heading_path` | string |
> | `chunk_kind` | string |
> | `code_language` | string |
> | `total_segments` | integer |

## Also created

**[Alerts](https://docs.mixpeek.com/docs/enrich/alerts-and-triggers.md)**

* `participant-frustration`: Emails the org notifications address (Settings -> Notifications; unset means opted out) when a new session transcript shows a participant frustrated or giving up on a task.

> [accordion] Cost estimate at list price
>
> At 10,000 items a month (2 minutes or 10 pages each) and 100,000 queries, this template costs about **7,272.57 USD a month** (727.24 USD per 1,000 items). The namespace's daily spend budget pauses new batches before you pass it.
>
> | Part | USD a month |
> | - | - |
> | Processing | 7,272.00 |
> | Storage | 0.37 |
> | Queries | 0.20 |
> | Processing in `session-scenes` | 7,272.00 |

## The manifest

Every resource above comes from this file. Change it and apply it again with `?mode=upsert` to update what exists. [Manifests](https://docs.mixpeek.com/docs/manage/manifests.md) documents each field.

```yaml ux-session-analysis.namespace.yaml expandable theme={null}
# ux-session-analysis: one manifest spins up the namespace.
# Platform manifest schema (GET /v1/discovery/schema). Validate with POST /v1/manifest/validate,
# apply with POST /v1/manifest/apply or the Deploy button. Wiring comes from the flow diagram:
# edges are bucket -> collection sources, collection -> retriever scope, retriever -> view.
# Applying a SECOND time, over a namespace this template already created: use
# POST /v1/manifest/apply?mode=create_missing, which creates what is missing and leaves
# what exists alone. The default, create_only, fails the WHOLE apply and rolls it back if
# any resource already exists, so an upgrade looks like a dead end without this. Use
# mode=upsert to also patch resources that exist but have drifted from this file.
version: '1.0'
metadata:
  name: ux-session-analysis
  description: "Namespace template ux-session-analysis. Generated from the flow diagram on mixpeek.com/templates/ux-session-analysis."
namespaces:
  - name: ux-session-analysis
    description: "Everything below lives in this namespace."
    feature_extractors:
      - name: multimodal_extractor
        version: v1
      - name: text_extractor
        version: v1
    # Daily spend budget, in dollars of what you are charged (1,000 credits a dollar).
    # New batches pause once the namespace has spent this much today; queries are not capped.
    # Raise it later on the namespace: PATCH /v1/namespaces/<id> {"spend_budget": {"daily_usd": N}}.
    budget:
      daily_usd: 0.1

# Data sources. A storage connection carries credentials, so it is created in Studio
# (or POST /v1/organizations/connections) and synced into the bucket named here.
#   clinic-recordings: s3, continuous, moderated session recordings from your rig, in your account -> bucket sessions
buckets:
  - name: sessions
    namespace: ux-session-analysis
    description: "Meant to be fed by clinic-recordings (s3, continuous). No source is connected yet: applying this manifest creates the bucket only. Connect the source to this bucket in Studio (Syncs) to start the feed."
    schema:
      properties:
        content:
          type: video
          required: true
        study_id:
          type: string
          required: true
        participant_id:
          type: string
          required: true
        study_task_id:
          type: string
        rig_id:
          type: string

# Connect your own storage. Create the secrets named below, uncomment, and apply again;
# apply live-tests the connection, so it must have real credentials to succeed.
# Until then the buckets above accept direct uploads.
# storage_connections:
#   - name: clinic-recordings-connection
#     provider: s3
#     description: "Read-only access to the s3 location holding moderated session recordings from your rig, in your account."
#     config:
#       region: us-east-1
#       credentials:
#         type: access_key
#         access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
#         secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

# bucket_syncs:
#   - name: clinic-recordings-sync
#     bucket: sessions
#     connection: clinic-recordings-connection
#     source_path: "sessions/"
#     sync_mode: continuous
#     polling_interval_seconds: 300
#     skip_duplicates: true
#     file_filters:
#       include_patterns: ["*.mp4", "*.mov"]
#     schema_mapping:
#       mappings:
#         content:
#           target_type: blob
#           source: {type: file}
#           blob_type: video

collections:
  - name: session-scenes
    namespace: ux-session-analysis
    description: "multimodal_extractor@v1 over bucket sessions. Feeds session-transcripts, find-the-moment, task-roll-up."
    source:
      type: bucket
      bucket: sessions
    feature_extractor:
      name: multimodal_extractor
      version: v1
      parameters:
        run_transcription: true
        run_ocr: true
      input_mappings:
        video: content
      field_passthrough:
        - source_path: study_id
        - source_path: participant_id
        - source_path: rig_id
        - source_path: study_task_id
        - source_path: file_location
        - source_path: segment_id
        - source_path: start_time
        - source_path: end_time
    enabled: true
  - name: session-transcripts
    namespace: ux-session-analysis
    description: "text_extractor@v1 over collection session-scenes. Feeds frustration-monitor, participant-frustration, find-the-moment, task-roll-up."
    source:
      type: collection
      collection: session-scenes
    feature_extractor:
      name: text_extractor
      version: v1
      input_mappings:
        text: transcription
      field_passthrough:
        - source_path: study_id
        - source_path: participant_id
        - source_path: study_task_id
        - source_path: segment_id
        - source_path: video_segment_url
        - source_path: start_time
        - source_path: end_time
    alert_applications:
      - alert: participant-frustration
        input_mappings:
          - input_key: query
            source: {source_type: constant, value: "user expresses frustration or gives up"}
          - input_key: document_id
            source: {source_type: document_field, path: _internal.document_id}
    enabled: true
retrievers:
  - name: find-the-moment
    namespace: ux-session-analysis
    description: "Searches session-scenes, session-transcripts across 2 feature indexes with rrf fusion."
    collections:
      - session-scenes
      - session-transcripts
    input_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage_name: search
        stage_id: feature_search
        parameters:
          searches:
            - feature_uri: "mixpeek://text_extractor@v1"
              query:
                input_mode: text
                value: "{{INPUT.query}}"
              top_k: 25
            - feature_uri: "mixpeek://multimodal_extractor@v1/vertex_multimodal_embedding"
              query:
                input_mode: text
                value: "{{INPUT.query}}"
              top_k: 25
          fusion: rrf
          final_top_k: 25
    tags:
      - template:ux-session-analysis
  - name: task-roll-up
    namespace: ux-session-analysis
    description: "Searches session-transcripts, session-scenes across 1 feature index. Groups documents by participant_id."
    collections:
      - session-transcripts
      - session-scenes
    input_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
    stages:
      - stage_name: search
        stage_id: feature_search
        parameters:
          searches:
            - feature_uri: "mixpeek://text_extractor@v1"
              query:
                input_mode: text
                value: "{{INPUT.query}}"
              top_k: 200
          fusion: rrf
          final_top_k: 200
      - stage_name: group
        stage_id: group_by
        parameters:
          group_by_field: participant_id
    tags:
      - template:ux-session-analysis
  - name: frustration-monitor
    namespace: ux-session-analysis
    description: "The alert's check: does the transcript just written show a participant frustrated or giving up. Scoped to that one transcript. Materialises into participant-frustration."
    collections:
      - session-transcripts
    input_schema:
      query:
        type: text
        required: true
        description: "What to look for; searched across every index below"
      document_id:
        type: text
        required: true
        description: "The written document this run is scoped to, supplied by the alert attachment"
    stages:
      - stage_name: search
        stage_id: feature_search
        pre_filters:
          AND:
            - field: _internal.document_id
              operator: eq
              value: "{{INPUT.document_id}}"
        parameters:
          searches:
            - feature_uri: "mixpeek://text_extractor@v1"
              query:
                input_mode: text
                value: "{{INPUT.query}}"
              top_k: 5
              min_score: 0.82
          fusion: rrf
          final_top_k: 5
    tags:
      - template:ux-session-analysis
alerts:
  - name: participant-frustration
    namespace: ux-session-analysis
    description: "Emails the org notifications address (Settings -> Notifications; unset means opted out) when a new session transcript shows a participant frustrated or giving up on a task."
    source: retriever
    retriever: frustration-monitor
    trigger_on: results
    notification_config:
      channels:
        - channel_type: email
      include_matches: true
      include_scores: true
    enabled: false

# What a run of this template must show (plan 11.14). One realtime step only:
# the sessions bucket requires metadata fields on every object, and a seed
# object carries blobs alone, so no document can be seeded and the document,
# query and alert steps the other templates run have nothing to read here.
acceptance:
  max_cost_usd: 0.1
  steps:
    - name: query-embedding-served
      kind: realtime
      feature_uri: mixpeek://text_extractor@v1
      inputs: {text: "the participant could not find the checkout button"}
      # No dims: the step checks the length the index declares where it runs
      # (1024 under e5, 384 under the standalone's MiniLM).
      expect: {}
```

## Hand it to an agent

Paste this prompt into Claude Code, Cursor or another coding agent. To give the agent this whole page instead, use **Copy page** in the menu at the top of the page, or point it at the page's Markdown at `https://mixpeek.com/docs/templates/ux-session-analysis.md`.

```text Prompt theme={null}
Set up the Mixpeek "Ask every usability session one question" template in my organization. My API key is in MIXPEEK_API_KEY.
1. Download https://mixpeek.com/templates/ux-session-analysis.namespace.yaml to ux-session-analysis.namespace.yaml.
2. POST it to https://api.mixpeek.com/v1/manifest/validate as the multipart field manifest_file, with the header Authorization: Bearer $MIXPEEK_API_KEY. Fix every entry in errors and validate again.
3. POST the same file to https://api.mixpeek.com/v1/manifest/apply. Every entry in resources should be created.
4. GET https://api.mixpeek.com/v1/namespaces/ux-session-analysis and keep namespace_id. Send it as the X-Namespace header on every call below.
5. POST {"inputs": {"query": "where did people hesitate on the checkout step"}} to https://api.mixpeek.com/v1/retrievers/find-the-moment/execute. Read documents, check that status is completed, and print warnings.
Reference for this template: https://mixpeek.com/docs/templates/ux-session-analysis.md
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.