Shashank Pandey

Developer / Builder

Featured Project

Sarvam CommunityOS

An AI-powered community operations platform that combines a Discord AI assistant, knowledge management, human escalation, community intelligence, and an operational dashboard.

Technology

PythonFastAPINext.jsMongoDBDiscord.pySarvam AITailwind CSS
Sarvam CommunityOS

Overview

Sarvam CommunityOS is an AI-powered operating layer for developer communities. It connects everyday Discord conversations with structured community knowledge, AI-powered support, feedback collection, human escalation, analytics, and contributor intelligence. Rather than attempting to replace community managers, the platform handles repetitive support while preserving context and surfacing issues that require human attention. The system is built around a continuous loop of listening to community activity, understanding what is happening, and turning those signals into actionable operations.

The Problem

Developer communities generate large amounts of valuable information through questions, discussions, feedback, events, and support conversations, but much of that information remains trapped inside chat platforms. Community managers also have to repeatedly answer similar questions, identify unresolved issues, review feedback, and keep track of contributors. A simple chatbot can answer questions, but it does not provide the operational workflow needed when an answer is uncertain or when conversations need to become structured community intelligence.

The Solution

CommunityOS connects a Discord-based AI assistant with a knowledge layer, Sarvam AI services, MongoDB-backed community memory, a FastAPI backend, and a Next.js management dashboard. Developers can ask questions, search approved knowledge, submit feedback, and receive grounded responses directly inside Discord. When the system cannot confidently resolve a question, it creates a structured escalation and continues the conversation through a Discord thread. Community managers can then review escalations, reply directly from the dashboard, manage knowledge and documents, analyze community activity, and track meaningful contributor signals.

What It Does

01

AI-powered technical and community support directly inside Discord

02

Knowledge-grounded question answering using approved documentation and community knowledge

03

Human escalation when available knowledge is insufficient

04

Two-way escalation workflow between the dashboard and Discord threads

05

Structured community feedback collection and review

06

Community analytics covering questions, interactions, feedback, contributors, and escalations

07

Contributor intelligence based on meaningful community activity rather than message count

08

Document and knowledge management with processing and ingestion workflows

09

Sarvam AI integration for conversational AI, speech-to-text, text-to-speech, and document intelligence

010

Modular Discord bot architecture using isolated Cogs

011

REST APIs for dashboard operations and community data

012

Persistent escalation history and conversation context stored in MongoDB

Architecture

01

Discord Interaction Layer

The Discord bot acts as the primary community-facing interface and is organized into independent Cogs for question answering, feedback, escalations, API integration, and contributor functionality. This keeps individual workflows modular while allowing them to operate as part of a shared community platform.

02

AI & Knowledge Layer

A shared Sarvam service centralizes AI interactions instead of creating separate model clients across different components. Community questions are processed through the knowledge layer, allowing the system to search available information before determining whether a response can be generated automatically.

03

Operational API Layer

FastAPI provides the backend service layer and exposes REST APIs for analytics, contributors, knowledge, documents, feedback, interactions, support, speech-to-text, and text-to-speech functionality.

04

Community Memory & Data

MongoDB stores community knowledge, conversation history, feedback, escalations, contributor information, and other structured operational data. This gives different parts of the platform access to a shared source of community context.

05

Operations Dashboard

A Next.js dashboard consumes the FastAPI APIs and gives the community team a dedicated operational interface for analytics, knowledge management, documents, feedback, contributors, and unresolved escalations.

06

Human Escalation Workflow

When the AI cannot confidently resolve a community question, the request moves through a human-in-the-loop escalation workflow. A Discord question is checked against the knowledge layer, unresolved requests create an escalation and Discord thread, the case is stored in MongoDB and surfaced in the dashboard, and a manager response is sent back to the original Discord conversation while preserving the interaction history.

Engineering Challenges

Challenge 1

Designing an AI support workflow that does not blindly hallucinate when the available community knowledge is insufficient.

Challenge 2

Keeping human escalation connected to the original Discord conversation and preserving the complete context.

Challenge 3

Building a two-way communication path where dashboard responses can be delivered back into Discord threads.

Challenge 4

Structuring community conversations, feedback, interactions, and escalations as reusable operational data.

Challenge 5

Keeping Discord bot responsibilities modular through isolated Cogs while sharing common AI infrastructure.

Challenge 6

Integrating multiple Sarvam AI capabilities as components of one system instead of treating them as isolated API demonstrations.

Challenge 7

Keeping API credentials and service integrations server-side while allowing the frontend to interact through the FastAPI backend.

Challenge 8

Designing the platform so future capabilities such as trend detection, recurring issue detection, community health scoring, and automated reporting can be added without restructuring the core system.

Final Result

Outcome

CommunityOS turns a developer community's conversations into an operational workflow. Instead of simply answering questions, the system connects knowledge, support, feedback, escalation, analytics, and contributor activity into one platform. Its current capabilities include Discord support, Sarvam AI integration, knowledge-based Q&A, feedback collection, human escalation, Discord escalation threads, dashboard-to-Discord communication, escalation management, community analytics, contributor functionality, document management, and STT/TTS API routes. The resulting architecture provides the foundation for an AI-native operating layer where community managers remain the decision-makers while the system provides the context, intelligence, and automation needed to operate at scale.

sleepy cat assistant