tiledesk-server
AgentFreeTiledesk Server is the main API component of the Tiledesk platform 🚀 Tiledesk is an open-source alternative to Voiceflow, allowing you to build advanced LLM-powered agents with easy human-in-the-loop (HITL) when necessary.
Capabilities12 decomposed
rest api-driven request lifecycle management with department routing
Medium confidenceTiledesk exposes a comprehensive REST API built on Express.js that manages the full lifecycle of customer support requests (tickets) from creation through closure. The system implements configurable department-based routing logic that automatically assigns incoming requests to appropriate departments based on rules, availability, and skill matching. Request state transitions (open → assigned → closed) are tracked in MongoDB with real-time WebSocket notifications to connected agents, enabling synchronous multi-agent awareness of request status changes without polling.
Combines REST API for CRUD operations with WebSocket event streaming for real-time request state synchronization across agents, using MongoDB as the single source of truth and dependency injection to share routing logic across services
Tighter real-time synchronization than REST-only systems like Zendesk API, with lower latency than polling-based alternatives due to native WebSocket integration in the core request service
multi-channel message routing and persistence with chat21 integration
Medium confidenceTiledesk implements a message handling layer that abstracts multiple communication channels (web chat, WhatsApp, Telegram, Facebook Messenger) through a unified message model stored in MongoDB. Messages are routed through the Chat21 integration layer, which normalizes incoming messages from different channels into a standard format, persists them with full conversation history, and broadcasts them to connected agents via WebSocket. The system maintains channel-specific metadata (phone numbers, user IDs, platform-specific fields) while presenting a unified conversation interface to support agents.
Uses Chat21 as a dedicated message normalization layer that abstracts channel-specific protocols, allowing Tiledesk to remain channel-agnostic while maintaining full conversation history in a single MongoDB collection with channel metadata preserved for audit and compliance
More modular than monolithic platforms like Intercom (which embed channel logic), allowing independent Chat21 updates without Tiledesk server changes; simpler than building custom channel adapters for each platform
system services and background job execution with event-driven triggers
Medium confidenceTiledesk implements a system services layer that executes background jobs triggered by internal events or scheduled intervals. Services include request cleanup (archiving old closed requests), email digest generation, webhook retry processing, and knowledge base indexing. Services are implemented as Node.js modules that subscribe to events (via EventEmitter or RabbitMQ) or run on schedules (via node-cron or similar). Services are decoupled from the main request processing path, allowing long-running operations to complete without blocking API responses. The system maintains a service registry that tracks which services are running and their health status, enabling monitoring and restart capabilities.
Services are decoupled from request processing using event-driven architecture, allowing long-running operations to complete asynchronously; services can be triggered by events (request closed) or schedules (daily at midnight), with optional RabbitMQ for distributed execution
Simpler than external job queues like Bull or Celery (no separate infrastructure), more flexible than cron-only scheduling (event-driven triggers), and more integrated than webhook-based job processing (native event system)
docker containerization with environment-based configuration
Medium confidenceTiledesk provides a Dockerfile and Docker Compose configuration for containerized deployment. The Docker image includes Node.js 16.17.0, all npm dependencies, and the Tiledesk application code. Configuration is managed through environment variables (loaded from .env file or Docker secrets), allowing the same image to be deployed across development, staging, and production without rebuilding. The Dockerfile supports both standalone deployment (with embedded MongoDB) and integration with external MongoDB and Redis instances. Docker Compose templates are provided for quick local development with MongoDB and Redis services pre-configured.
Dockerfile uses environment-based configuration (no hardcoded values), allowing the same image to be deployed across environments; Docker Compose templates provide quick local setup with MongoDB and Redis pre-configured, reducing onboarding friction
More portable than source-based deployment (no dependency on local Node.js version), more flexible than hardcoded Docker images (environment-based config), and more convenient than manual Docker setup (Compose templates included)
jwt and passport.js-based authentication with role-based access control
Medium confidenceTiledesk implements a multi-strategy authentication system using Passport.js that supports JWT tokens, basic authentication, and OAuth (including Google OAuth). The system validates credentials against MongoDB user records and issues JWT tokens for stateless API access. Role-based access control (RBAC) is enforced at the middleware level, with roles including admin, agent, and guest, combined with project-level permissions to create fine-grained authorization rules. Each protected route checks both the user's role and their project membership before allowing access.
Combines Passport.js strategy pattern with project-level permission scoping, allowing a single user to have different roles across multiple projects; JWT tokens are signed with a server secret and validated on every request without database lookups, reducing auth latency
More flexible than API-key-only systems (supports OAuth for SSO), more scalable than session-based auth (no server-side session storage), and more granular than simple role-based systems due to project-level permission isolation
faq and general knowledge base retrieval with semantic search integration
Medium confidenceTiledesk provides a dual knowledge base system: FAQ knowledge bases (structured Q&A pairs) and general knowledge bases (unstructured documents). Both are stored in MongoDB and indexed for retrieval. The system integrates with retrieval-augmented generation (RAG) capabilities, allowing bots and agents to query knowledge bases semantically to find relevant answers before responding to customers. Knowledge base entries are tagged, categorized, and versioned, with support for enabling/disabling entries without deletion. The retrieval layer supports both keyword matching and semantic similarity (via embeddings) to find the most relevant knowledge base articles.
Separates FAQ (structured Q&A) from general knowledge bases (unstructured documents) in MongoDB, allowing different retrieval strategies for each; integrates with RAG pipelines by exposing knowledge base queries as a service that bots can call during response generation
More flexible than static FAQ lists (supports semantic search and versioning), more lightweight than dedicated vector databases like Pinecone (uses MongoDB for storage), and more integrated than external knowledge base tools (native to Tiledesk API)
bot handler execution with llm integration and context injection
Medium confidenceTiledesk implements a bot handler system that executes custom bot logic in response to incoming messages. Bot handlers are JavaScript functions that receive the full request context (customer message, conversation history, request metadata) and can call external LLMs (OpenAI, Anthropic, etc.) or execute custom logic. The system injects context from the request (customer name, department, previous messages) into the bot handler, allowing bots to make context-aware decisions. Bot handlers can query knowledge bases, call external APIs, or escalate to human agents based on custom conditions. The execution is asynchronous and supports timeout handling to prevent hung bots from blocking request processing.
Bot handlers receive full request context (conversation history, customer metadata, department info) injected at execution time, allowing bots to make decisions based on conversation state without explicit context passing; handlers are JavaScript functions deployed to the server, enabling rapid iteration without separate bot deployment infrastructure
Tighter integration with request context than webhook-based bot systems (no HTTP round-trip latency), more flexible than template-based bots (supports arbitrary JavaScript logic), and simpler than agent frameworks like LangChain (no framework overhead, just functions)
real-time websocket communication with event-driven message broadcasting
Medium confidenceTiledesk uses WebSockets (via Socket.io or native WebSocket) to enable real-time bidirectional communication between the server and connected clients (agents, customers, dashboards). The system implements an event-driven architecture where message events, request state changes, and agent status updates are broadcast to all subscribed clients. Events are published through a central event emitter (Node.js EventEmitter or RabbitMQ if configured), and clients subscribe to specific event channels (e.g., 'request:123:message', 'agent:status'). The WebSocket layer maintains a registry of connected clients and their subscriptions, allowing selective broadcasting to avoid flooding all clients with irrelevant events.
Implements event-driven broadcasting where clients subscribe to specific event channels (request-scoped, agent-scoped) rather than receiving all events, reducing bandwidth and latency; uses Node.js EventEmitter for single-instance deployments with optional RabbitMQ for horizontal scaling
Lower latency than polling-based REST APIs (no request/response overhead), more selective than broadcast-all systems (channel-based subscriptions), and more scalable than in-memory event emitters (RabbitMQ integration for multi-instance deployments)
email notification system with template rendering and smtp integration
Medium confidenceTiledesk includes an email notification system that sends transactional emails to customers and agents based on request events (new message, request assigned, request closed, etc.). The system uses HTML email templates stored in the filesystem (template/email/ directory) and renders them with dynamic data (customer name, request ID, message content) using a template engine. Emails are sent via SMTP using configurable credentials (Gmail, SendGrid, custom SMTP servers). The notification system is event-driven, triggered by request state changes or message arrivals, and supports conditional sending (e.g., only email if agent is offline). Email sending is asynchronous to avoid blocking request processing.
Integrates email notifications directly into the request lifecycle using event-driven triggers, with filesystem-based HTML templates that are rendered with request context; SMTP configuration is centralized in environment variables, allowing easy switching between email providers without code changes
Simpler than external email services like SendGrid (no API integration overhead), more flexible than hardcoded email logic (template-based), and more integrated than webhook-based notifications (native to request event system)
webhook management and outbound event delivery with retry logic
Medium confidenceTiledesk implements a webhook system that allows external systems to subscribe to internal events (message received, request assigned, request closed, etc.). Webhooks are configured per-project with a target URL and event filters. When a subscribed event occurs, Tiledesk sends an HTTP POST request to the webhook URL with a JSON payload containing the event data. The system implements retry logic with exponential backoff for failed webhook deliveries, and maintains a webhook delivery log for debugging and compliance. Webhooks are delivered asynchronously to avoid blocking request processing, and support signature verification (HMAC) to allow webhook consumers to validate that requests originated from Tiledesk.
Webhooks are configured per-project with event filtering, allowing different external systems to subscribe to different event types; delivery includes HMAC signature verification and exponential backoff retry logic, with full delivery logs for debugging and compliance audits
More reliable than simple HTTP POST (includes retry logic and delivery logs), more flexible than polling external systems (push-based), and more secure than unverified webhooks (HMAC signature support)
project and user management with multi-tenancy and permission scoping
Medium confidenceTiledesk implements a multi-tenant architecture where each project is an isolated workspace with its own requests, knowledge bases, agents, and settings. Users are assigned to projects with specific roles (admin, agent, guest) that determine their permissions within that project. The system maintains a project-to-user mapping in MongoDB, allowing a single user to have different roles across multiple projects. Project settings (name, description, settings) are stored separately from user data, enabling project-level configuration without affecting other projects. The permission system is enforced at the middleware level, checking both user role and project membership before allowing access to project resources.
Projects are first-class entities in the data model with their own configuration, knowledge bases, and agent assignments; users are mapped to projects with role-based permissions, enabling fine-grained access control without creating separate Tiledesk instances
More efficient than separate Tiledesk instances per customer (single database, shared infrastructure), more flexible than simple role-based access (project-scoped roles), and more scalable than hardcoded multi-tenancy (project-agnostic API design)
quota management and rate limiting with per-project enforcement
Medium confidenceTiledesk implements a quota system that limits resource usage per project, including API requests, message volume, and knowledge base entries. Quotas are configured per project and enforced at the API middleware level, returning HTTP 429 (Too Many Requests) when limits are exceeded. The system tracks quota usage in Redis (for fast lookups) and MongoDB (for persistence), with configurable quota windows (per minute, per hour, per day). Quota enforcement is transparent to the application logic; middleware checks quota before processing requests and increments counters after successful completion. The system supports different quota tiers (free, pro, enterprise) with different limits per tier.
Quotas are enforced at the middleware level before request processing, using Redis for fast counter lookups and MongoDB for persistent quota configuration; supports multiple quota tiers with different limits per tier, enabling SaaS pricing models
More granular than simple rate limiting (per-project quotas with multiple dimensions), more efficient than database-only quota tracking (Redis caching), and more flexible than fixed limits (configurable per tier)
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with tiledesk-server, ranked by overlap. Discovered automatically through the match graph.
Chatness AI
Revolutionize customer engagement: live chat, automation, lead generation, extensive...
Smitty
AI-powered chatbots streamline support, sales, and...
Asktro
AI-powered chatbots enhancing communication and automating workflows...
Synthflow AI
Unleash productivity with AI-powered workflow...
Whelp
Revolutionize customer support with AI, omnichannel...
Gali Chat
*[reviews](#)* - Your 24/7 AI Support Assistant that helps you grow your business!
Best For
- ✓Customer support teams building custom ticketing integrations
- ✓Developers building omnichannel support platforms with multiple communication channels
- ✓Teams migrating from REST-only systems to real-time-aware request management
- ✓Omnichannel customer support teams managing conversations across 3+ platforms
- ✓Developers building unified messaging dashboards that abstract channel complexity
- ✓Organizations needing channel-agnostic message archival and compliance
- ✓Teams needing background job processing without external job queues (Celery, Bull)
- ✓Developers building event-driven systems with asynchronous task processing
Known Limitations
- ⚠Department routing logic is server-side only — no client-side routing preview or simulation
- ⚠Request assignment algorithms are fixed (no custom ML-based assignment without server modification)
- ⚠WebSocket notifications require persistent client connections; no fallback to polling for disconnected clients
- ⚠Channel-specific features (e.g., WhatsApp media templates, Telegram inline keyboards) require custom handler code
- ⚠Message normalization loses some platform-specific metadata; full channel data available only in raw message object
- ⚠Chat21 integration requires separate Chat21 deployment; no built-in fallback for Chat21 unavailability
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 22, 2026
About
Tiledesk Server is the main API component of the Tiledesk platform 🚀 Tiledesk is an open-source alternative to Voiceflow, allowing you to build advanced LLM-powered agents with easy human-in-the-loop (HITL) when necessary.
Categories
Alternatives to tiledesk-server
Are you the builder of tiledesk-server?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →