Skip to main content
POST
Generate dialogue graph nodes via AI

Path Parameters

graph_id
string
required

Body

application/json

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

Replaces all existing nodes in the graph with newly-generated ones. Existing nodes are deleted on completion (best-effort, app-layer cascade).

project_context
string | null
instruction
string | null

Free-text instruction (e.g. 'gruff merchant pitching wares').

Maximum string length: 2000
target_node_count
integer
default:8

Hint to the LLM for how many nodes to generate.

Required range: 1 <= x <= 50

Response

Generation accepted - poll session status

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