Flowise · Schema
Prediction
Request and response shape for POST /prediction/{id}.
AgentsAgent WorkflowsArtificial IntelligenceLarge Language ModelsLow CodeVisual BuilderLangChainRAGRetrieval Augmented GenerationChatbotsOpen SourceNode.jsTypeScript
Properties
| Name | Type | Description |
|---|---|---|
| question | string | |
| streaming | boolean | |
| overrideConfig | object | |
| history | array | |
| uploads | array | |
| form | object | |
| text | string | Returned in the response body. |
| json | object | Structured output (response side). |
| chatId | string | |
| chatMessageId | string | |
| sourceDocuments | array | |
| usedTools | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/flowise/main/json-schema/flowise-prediction-schema.json",
"title": "Prediction",
"description": "Request and response shape for POST /prediction/{id}.",
"type": "object",
"properties": {
"question": { "type": "string" },
"streaming": { "type": "boolean", "default": false },
"overrideConfig": { "type": "object" },
"history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": { "type": "string", "enum": ["user", "assistant", "system"] },
"content": { "type": "string" }
},
"required": ["role", "content"]
}
},
"uploads": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["file", "url", "audio"] },
"name": { "type": "string" },
"data": { "type": "string" },
"mime": { "type": "string" }
}
}
},
"form": { "type": "object" },
"text": { "type": "string", "description": "Returned in the response body." },
"json": { "type": "object", "description": "Structured output (response side)." },
"chatId": { "type": "string" },
"chatMessageId": { "type": "string" },
"sourceDocuments": { "type": "array", "items": { "type": "object" } },
"usedTools": { "type": "array", "items": { "type": "object" } }
},
"required": ["question"]
}