Skip to main content
POST
Refine dialogue graph nodes via AI

Path Parameters

graph_id
string
required

Body

application/json

Body for POST /v1/projects/{pid}/game-narrative/dialogues/{id}/refine.

Refinement loads the existing graph as context; the LLM emits a revised set of nodes. Existing nodes are replaced wholesale on success.

instruction
string
required

Required free-text instruction (e.g. 'make Aldric more sarcastic').

Required string length: 3 - 2000
project_context
string | null

Response

Refinement accepted - poll session status

The response is of type Response Refine Dialogue Graph V1 Projects Project Id Game Narrative Dialogues Graph Id Refine Post · object.