Skip to content

urdadx/chatsy

Repository files navigation

Padyna: AI customer support bot for everyone

Padyna is an AI-powered customer support for businesses. Train your AI agent using your own business data (files, document, FAQs, Youtube etc) and let the AI agent handle support for you. Escalate to human when agent cant respond to questions by customers.

Prerequisites

Quick Start

# Install dependencies
pnpm install

# Start local database (Docker required)
pnpm -F server db:start

# Run all apps (server + web)
pnpm dev

# Or run individually
pnpm dev:server  # Backend on port 3000
pnpm dev:web     # Frontend on port 3001

Environment Setup

Copy the example environment files and fill in your values:

# Root project
cp .env.whatsapp.example .env.whatsapp

# Server config (apps/server/.env)
cp apps/server/.env.example apps/server/.env

# Web config (apps/web/.env)
cp apps/web/.env.example apps/web/.env

Required Variables

apps/server/.env:

  • DATABASE_URL — PostgreSQL connection string
  • BETTER_AUTH_SECRET — Random 32+ character string for auth
  • BETTER_AUTH_URL — Your app URL (e.g., http://localhost:3001)

apps/web/.env:

  • VITE_SERVER_URL — Server API URL (e.g., http://localhost:3000)
  • DATABASE_URL — Same as server DATABASE_URL

Tech Stack

  • Web: React, Vite, Shadcn/ui, Better Auth, Drizzle
  • Server: Express, Drizzle ORM, WebSockets
  • Database: PostgreSQL + Redis (for rate limiting)
  • AI: Google Gemini, OpenAI

Available Commands

Command Description
pnpm dev Run all apps
pnpm dev:server Run server only
pnpm dev:web Run web only
pnpm build Build all apps
pnpm check Format & lint
pnpm check-types Type check

Database Commands (server)

pnpm -F server db:start    # Start local DB
pnpm -F server db:push    # Push schema to DB
pnpm -F server db:studio  # Open DB studio
pnpm -F server db:stop    # Stop local DB

About

opensource ai agents for your business

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors