v3
ai-helper

Ai Helper

AI-assisted content generation for the frontend.

Send a JSON body with a type field to select the helper:

  • prompt_generator — generates a system prompt for an AI agent.
  • prompt_rewriter — rewrites an existing prompt based on user instructions.
  • transcript_feedback_generator — analyzes a conversation transcript and suggests feedback.
post/v3/ai-helper/

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

mentium-workspace-idstring nullable

Request body

OR
OR
OR

Response

Successful Response

type'prompt_generator' | 'prompt_rewriter' | 'transcript_feedback_generator' | 'code_rewriter' required

Echoes the request type.

resultstring required

The generated text content.

chat_responsestring

Conversational reply from the agent (code_rewriter only).

code_changedboolean

True iff the agent emitted a new python block (code_rewriter only).

Changes

No recorded changes to this operation across all 2 revisions of this API.