Skip to content

richglez/chatbot-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot Engine with Persistent Memory

A robust backend developed with Node.js and TypeScript that implements a user state and memory management system. It uses a service architecture for basic natural language processing (NLP), allowing it to maintain conversation context and persistently store user data using a local file system.

Key Features

  • Context Awareness: The bot recognizes if it has already greeted the user.
  • User Persistence: Automatically saves user name in each profiles.
  • UUID Session Management: Unique user identification for separate conversations.
  • Clean Architecture: Code organized into controllers, services, and repositories.

Tech Stack

  • Backend: Node.js, Express
  • Language: Typescript
  • API: RESTful API with data exchange in JSON format
  • Architecture: Clean Architecture (Controllers, Services, and Repositories)
  • Persistence: File System (FS) for local storage of sessions and profiles

Project Structure

├───data/
├───src/
    ├───controllers/        # Middleware para manejar el endpoint de chat, manejo de peticiones y validación de datos
    ├───models/             # Definicion de interfaces (Message, UserData)
    ├───repositories/       # Repositorios de almacenamiento en memoria (memory, user)
    ├───routes/             # Organizacion de (endpoints) de la API
    └───uervices/           # Logica de manejador de mensajes (handleChat, getRecentMessages, detectIntent)

About

IA (NLP) Chatbot Backend (Node.js/TS) 🤖 Advanced AI memory management and user state system for contextual NLP applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors