Moringa

Agent Engine for the "MoringaScript" Scripting Language

Moringa is a hybrid conversational AI platform that pairs the reliability of rule-based logic with the flexibility of modern AI. When a pattern matches exactly you get a predictable, debuggable response; when it doesn't, optional AI steps in to help. You can run it with local AI, cloud AI, or no AI at all.

Highlights

  • Hybrid intelligence. A deterministic rule core gives responses you can trust and debug, while optional AI enhancement improves fuzzy matching and development speed.
  • MoringaScript. A readable scripting language for bots: priority-based recognizers, rich typed variables with transformations, conditional logic, contexts, and state-machine conversation flows.
  • Visual development studio. A web-based IDE with real-time chat testing, live script validation, and an AI assistant that generates patterns from natural-language descriptions.
  • Your choice of AI. Local, privacy-first models via Ollama (Llama, Gemma, CodeLlama), or cloud models including OpenAI GPT-4 and Anthropic Claude.
  • Plugin architecture. Extend bots with custom actions and integrations, and wire them to external systems through a REST API.
  • Production ready. Docker deployment, a built-in testing framework, session management, and no external database dependency.

A taste

recognizer "hello" priority=10
    say "Hi there! How can I help you?"

recognizer "my name is [name]" priority=8
    remember "user name is [name|title_case]" type="string" scope="session"
    say "Nice to meet you, [name|title_case]!"

Installation

Clone the repository and start the studio (requires Node.js 16+):

git clone https://github.com/Solifugus/Moringa.git
cd Moringa
npm install
npm start

# then open http://localhost:3000 in your browser

Prefer containers? Run docker run -p 3000:3000 moringa/studio, or bring up the stack with docker-compose up -d.

Downloads & installation

Builds are coming soon. Grab the source from GitHub for now.