Overview
Nadoo AI provides a unified chat system that powers all application types — Chat Apps, Workflow Apps, and Channel Apps. The system handles real-time streaming, conversation memory, suggested questions, and analytics through a consistent interface.Key Features
Real-Time Streaming
Server-Sent Events (SSE) with 19 event types deliver tokens, tool calls, and status updates in real time.
Conversation Memory
Three memory strategies — Buffer, Summary, and Knowledge Graph — keep your agent context-aware across turns.
Suggested Questions
AI-powered follow-up question generation helps users discover what they can ask next.
Chat Analytics
Track token usage, response times, and costs per conversation, application, or workspace.
Canvas
Rich content editing canvas for collaborative document creation within chat.
WebSocket Support
Bidirectional WebSocket communication for low-latency, interactive use cases.
Streaming with Server-Sent Events (SSE)
Chat responses are streamed in real time using SSE. The client opens a connection and receives a sequence of typed events as the response is generated.Event Types
| Event | Description |
|---|---|
message_start | Response generation has begun |
text_chunk | A chunk of the response text |
text_end | Text generation is complete |
tool_call_start | The model is invoking a tool |
tool_call_args | Streaming tool call arguments |
tool_call_end | Tool call is complete |
tool_result | Result returned from the tool |
retrieval_start | Knowledge base retrieval has begun |
retrieval_result | Retrieved documents from knowledge base |
retrieval_end | Knowledge base retrieval is complete |
thinking_start | Model reasoning/thinking has begun |
thinking_chunk | A chunk of model reasoning |
thinking_end | Model reasoning is complete |
suggested_questions | AI-generated follow-up questions |
usage | Token usage statistics for this response |
error | An error occurred during generation |
done | Stream is complete |
ping | Keep-alive signal |
metadata | Additional metadata about the response |
Example SSE Stream
Conversation Memory
Memory allows your agent to recall previous messages within a conversation. Nadoo AI supports three memory strategies.Buffer Memory
Retains the last N messages in their original form. Simple and effective for short conversations.Summary Memory
Condenses older messages into a running summary while keeping recent messages intact. Good for long conversations where full history would exceed the model’s context window.Knowledge Graph Memory
Extracts entities and relationships from the conversation and stores them as a knowledge graph. The agent can recall facts about people, topics, and their connections across conversations.Knowledge Graph memory is the most advanced option. It enables agents to maintain long-term memory about users and topics that persists beyond a single conversation session.
Chat Session Management
Create a Session
Send a Message
List Sessions
Get Conversation History
Archive a Session
Suggested Questions
After each response, the agent can generate follow-up questions that guide the user toward productive next steps. This feature is powered by the same LLM and takes into account the full conversation context. Suggested questions are delivered as an SSE event:Chat Analytics
The analytics dashboard tracks the following metrics per conversation, application, and workspace:| Metric | Description |
|---|---|
| Token Usage | Prompt tokens, completion tokens, and total tokens consumed |
| Response Time | Time to first token (TTFT) and total response time |
| Cost | Estimated cost based on the model’s pricing |
| Messages | Total messages sent and received |
| Sessions | Active, completed, and archived session counts |
WebSocket Communication
For use cases that require bidirectional communication — such as real-time collaborative editing or voice-based interaction — Nadoo AI supports WebSocket connections.WebSocket support is recommended for interactive applications. For standard chatbots, SSE streaming via the REST API is simpler and sufficient.