First-line AI customer support on DNotifier: strong system + knowledge prompts, RAG via the knowledge base, and session-aware chat.
- System prompt — tone, steps, safety, escalation rules for proper support
- Knowledge prompt — grounds answers in indexed support docs when RAG is on
addKnowledgeBase— indexes a document through DNotifieraddDocument- Sample FAQs — password reset, refunds, shipping, contact hours
- CLI chat — ask questions, seed/add docs, toggle KB, fetch history
Create an app at app.dnotifier.com, then copy .env.example → .env and set DNOTIFIER_APP_ID / DNOTIFIER_SECRET.
cd typescript
cp .env.example .env
npm install
npm startcd python
cp .env.example .env
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python main.pycd dart
cp .env.example .env
dart pub get
dart run bin/main.dartOnce running, try:
you> How do I reset my password?
agent> …
you> What is your return window?
agent> …
CLI commands: /seed, /add Title | content, /kb on|off, /history, /help, /quit.
| Capability | API |
|---|---|
| Connect | connect() with transport: "http" |
| Answer | sendAI / send_ai with messages, useKnowledgeBase, sessionId, saveHistory |
| Index docs | addDocument / add_document (wrapped as addKnowledgeBase) |
| History | fetchAIHistory / fetch_ai_history |
| Observability | logs: true → dashboard sessions |
Use HTTP for AI + RAG request/response. Use WebSocket when you need live multi-user messaging.
- Create an app at app.dnotifier.com (AI-enabled plan).
- Install the SDK for your language.
- Connect with
appId,secret,transport: "http". - Call
addKnowledgeBase/addDocumentwith your FAQs and policies (recordIdrequired in Python and Dart). - Call
sendAIwith the support system prompt (+ knowledge prompt when RAG is on),useKnowledgeBase: true, and a stablesessionIdfor follow-ups. - Optionally enable
logs: trueand inspect the run in the dashboard.
| Language | Status | Path | Run |
|---|---|---|---|
| TypeScript (Node) | Ready | typescript/ | npm start |
| Python | Ready | python/ | python main.py |
| Dart | Ready | dart/ | dart run bin/main.dart |