AI overview
DNotifier AI covers managed prompts, multi-turn sessions, knowledge-base (RAG), and semantic search β all through official SDK methods like sendAI and search. AI calls are request/response: use transport: "http" (or "http" in Dart) so responses return directly from the async method.
What you get
Simple prompts
sendAI
One-shot questions and instructions
Providers / models
sendAI({ provider, model })
Pick OpenAI, Anthropic, Gemini, etc. after you wire them in the portal
Chat-style messages
sendAI with messages[]
System/user/assistant roles, optional RAG
Sessions
sendAI + sessionId
Continue a conversation across turns
AI history
saveHistory + fetchAIHistory, deleteAIHistoryMessage
Store and load AI turns for your product UI
Workflow observability
observability: true on Workflow
Dashboard Workflows step graph
Knowledge base
addDocument, updateDocument, getDocument, listDocuments, deleteDocument
Index content for RAG
Semantic search
search
Vector similarity over indexed documents
Tools & MCP
tools.register, mcp.connect, runAgent
Tool-calling agents (local + MCP) β see Tools & MCP
Architecture
Your app (HTTP transport)
β
β connect() β auth token + plan limits
β
ββ sendAI βββββββββββββββΊ AI runtime β response JSON
ββ search βββββββββββββββΊ vector index β ranked hits
ββ addDocument / β¦ ββββββΊ knowledge base
ββ runWorkflow ββββββββββΊ agents + observabilityUnlike realtime messaging, AI responses do not arrive on onMessage. Each method returns (or resolves) with the server payload.
Prerequisites
App credentials β
appIdandsecretfrom app.dnotifier.com. See Credentials.AI enabled on plan β after
connect(), checknotifier.aiEnabledandgetPlanLimits().HTTP transport β see Choose your transport.
Topic guides
Send a prompt
Providers & models
Chat-style messages
Sessions (sessionId)
AI history
Session logging (logs: true)
Observability hub (logs / saveHistory / observability)
Knowledge base (RAG)
Manage documents
Semantic search
Vector stores and embeddings
Example: AI assistant
Example: RAG Q&A bot
Typical integration patterns
Backend API route
A Node.js or Dart server connects with HTTP, calls sendAI, and returns JSON to your frontend. The frontend chat UI can use WebSocket separately for human-to-human messaging.
RAG assistant
Index documents with
addDocument(batch jobs or admin tools).Answer questions with
sendAI({ message: { useKnowledgeBase: true, messages: [...] } })or combinesearch+sendAIin a workflow.
Multi-turn support bot
First
sendAIcall creates a session id.Pass
sessionIdon follow-up calls for the same ticket.Enable
logs: truein production for dashboard auditing.
Plan limits
After connect(), call getPlanLimits():
aiEnabled
Whether AI is available
maxAIRequestsPerMonth
Monthly AI request cap
maxAIWordsPerMonth
Monthly word/token budget
knowledgeBaseMaxWords
Total indexed content limit
β Pricing & plans
Next steps
Last updated