githubEdit

Prediction

Send message to flow and get AI response

post

Send a message to your flow and receive an AI-generated response. This is the primary endpoint for interacting with your flows and assistants.Authentication: API key may be required depending on flow settings.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Flow ID - the unique identifier of your flow

Example: your-flow-id
Body
questionstringOptional

The question/message to send to the flow

Example: What is artificial intelligence?
streamingbooleanOptional

Enable streaming responses for real-time output

Default: falseExample: false
Responses
chevron-right
200

Successful prediction response

application/json
textstringOptional

The AI-generated response text

Example: Artificial intelligence (AI) is a branch of computer science that focuses on creating systems capable of performing tasks that typically require human intelligence.
jsonobject · nullableOptional

The result in JSON format if available (for structured outputs)

questionstringOptional

The original question/message sent to the flow

Example: What is artificial intelligence?
chatIdstringOptional

Unique identifier for the chat session

Example: chat-12345
chatMessageIdstringOptional

Unique identifier for this specific message

Example: msg-67890
sessionIdstring · nullableOptional

Session identifier for conversation continuity

Example: user-session-123
memoryTypestring · nullableOptional

Type of memory used for conversation context

Example: Buffer Memory
post
/prediction/{id}

Last updated