utils

Improve Prompt

Improve a node prompt for clarity while preserving all details.

Uses Gemini to rewrite the prompt with clearer instructions, better organization, and more explicit action verbs. Preserves all ${variable} references exactly as-is.

post/api/v1/utils/improve-prompt

Request

  • Base URL: https://api.komos.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.komos.ai/api/v1/utils/improve-prompt
  • Auth: none declared

Headers

Authorizationstring nullable
X-Org-Idstring nullable

Request body

promptstring required

The prompt to improve

node_type'AGENT_ACTION' | 'PROCESS_DATA' | 'SKILL' required

Type of node the prompt is for

user_guidancestring nullable

Optional user guidance on what to improve

Response

Successful Response

improvedstring required
originalstring required

Changes

No recorded changes to this operation across all 1 revision of this API.