---
title: "Diagnose Prompt Endpoint"
method: POST
path: "/assist/diagnose-prompt"
tags: ["assist"]
---

# Diagnose Prompt Endpoint

`POST /assist/diagnose-prompt`

## Request

- Base URL: `https://api.agent4.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agent4.io/assist/diagnose-prompt`
- Auth: none declared

## Request body

- DiagnosePromptIn
  - `field` 'persona' | 'task' | 'greeting' | 'storyline_task' | 'storyline_opening' | 'storyline_ai_trigger' | 'storyline_ai_criteria' | 'skill_description' | 'skill_instructions' | 'kb_description' | 'kb_instructions', required
  - `current` string: 该字段当前的文字；诊断需要有内容可读
  - `context` object

## Response `200`

Successful Response

- DiagnosePromptOut
  - `suggestions` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
