---
title: "Improve Prompt"
method: POST
path: "/v1/agents/improve-prompt"
tags: ["Agents"]
---

# Improve Prompt

`POST /v1/agents/improve-prompt`

Use an LLM to rewrite / improve a user-provided agent prompt.

## Request body

- ImprovePromptRequest
  - `prompt` string, required
  - `context` 'conversation_prompt' | 'general_instructions' | 'sales_script' | 'business_description' | 'business_offer' | 'filtering_prompt'

## Response `200`

Successful Response

- ImprovePromptResponse
  - `improved_prompt` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/orsay/apis/fastapi.md) · [All operations](https://skmtc.net/orsay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orsay/fastapi/revisions/3274aa9b0e51/schema)
