---
title: "Generate Intents"
method: POST
path: "/api/admin/captures/{capture_id}/generate-intents"
tags: ["admin"]
---

# Generate Intents

`POST /api/admin/captures/{capture_id}/generate-intents`

Generate intent-to-action mappings for a capture using vision LLM.

This endpoint:
1. Fetches the capture data (screenshot + DOM)
2. Sends to GPT-4o with vision capabilities
3. Returns structured intent mappings

## Path parameters

- `capture_id` string, required

## Headers

- `authorization` string, required

## Response `200`

Successful Response

- GenerateIntentsResponse — Response from intent mapping generation.
  - `page_purpose` string, required
  - `element_labels` object, required
  - `intent_actions` IntentActionResponse[], required
    - `id` string, nullable
    - `intents` string[], required
    - `actions` object[], required
    - `notes` string, nullable
    - `condition` string, nullable
  - `vocabulary` VocabularyMappingResponse[], required
    - `id` string, nullable
    - `term` string, required
    - `canonical` string, required
  - `warnings` string[], required
  - `questions_for_human` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas.md) · [All operations](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/llms.txt) · [OpenAPI document](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/revisions/dafdd6b267c4?raw)
