---
title: "Extract Setup Intent Now"
method: POST
path: "/v1/templates/{template_id}/setup-intent/extract"
tags: ["templates"]
---

# Extract Setup Intent Now

`POST /v1/templates/{template_id}/setup-intent/extract`

Admin/debug endpoint: replay Phase 4 intent extraction on the onboarding
conversation that created this template, WITHOUT waiting for a new session.

Useful for testing what the extraction would produce for existing templates
(e.g. the most recent embedded-onboarding result). Records generation_ms so
we can gauge whether extraction is fast enough for the end-of-session
critical path or needs to move async.

Writes the result to template.settings.setup_intent (replaces existing).

## Path parameters

- `template_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
