Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Transport: AI, RAG, and workflow APIs are designed for HTTP transport. WebSocket is for realtime 1:1 messaging β€” not for AI/RAG request/response flows.

What you get

Capability
SDK methods
Purpose

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

Session logging

logs: true on DNotifier

Dashboard Logs telemetry β€” see Observability

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

Workflows

defineAgent, Workflow, runWorkflow

Multi-step AI pipelines β€” see Workflows overview

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 + observability

Unlike realtime messaging, AI responses do not arrive on onMessage. Each method returns (or resolves) with the server payload.

Prerequisites

  1. App credentials β€” appId and secret from app.dnotifier.com. See Credentials.

  2. AI enabled on plan β€” after connect(), check notifier.aiEnabled and getPlanLimits().

  3. HTTP transport β€” see Choose your transport.

Topic guides

Topic
Hub page

Providers & models

Sessions (sessionId)

Session logging (logs: true)

Observability hub (logs / saveHistory / observability)

Knowledge base (RAG)

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

  1. Index documents with addDocument (batch jobs or admin tools).

  2. Answer questions with sendAI({ message: { useKnowledgeBase: true, messages: [...] } }) or combine search + sendAI in a workflow.

Multi-turn support bot

  1. First sendAI call creates a session id.

  2. Pass sessionId on follow-up calls for the same ticket.

  3. Enable logs: true in production for dashboard auditing.

Plan limits

After connect(), call getPlanLimits():

Field
Meaning

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