Stream a scoped AI chat response within a flow content node
Handles topic-restricted Q&A during scoped chat mode. The system prompt constrains the AI to the current flow topic. Supports pure LLM (default) or RAG mode per node configuration.
Authorizations
Azure AD access token obtained via MSAL
Body
Topic-restricted system prompt from the content node
User's question
Isolated conversation history (only scoped chat messages)
Chat configuration including id — validated server-side via chatSecurityGuard. Data sources and search endpoint are re-derived from the trusted chat record; client-supplied dataSources are accepted only as runtime overrides and must pass entitlement.
If true, use RAG with data sources; otherwise pure LLM
Optional runtime data-source overrides (must pass catalog ACL via buildSecuredDataSources)
Optional model endpoint override (server-registered endpoints only)
Response
SSE stream of scoped chat response
The response is of type string.