Multi-step agent workflow: classify → draft → polish using DNotifier defineAgent, Workflow, and runWorkflow.
- Three named agents with
ctx.sendAI - Observable workflow (
observability: true) for the dashboard - CLI to run any request (or
/demo) through the pipeline
Create an app at app.dnotifier.com, copy .env.example → .env, set credentials.
cd typescript
cp .env.example .env
npm install
npm startcd python
cp .env.example .env
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python main.pycd dart
cp .env.example .env
dart pub get
dart run bin/main.dartExample session:
you> /demo
Running workflow: classify → draft → polish …
{
"result": { "category": "support", "urgency": "high", "final": "…" }
}
| Language | Path | Run |
|---|---|---|
| TypeScript | typescript/ | npm start |
| Python | python/ | python main.py |
| Dart | dart/ | dart run bin/main.dart |