This guide will help you get the Support Bot project up and running in just a few minutes.
cd /Users/hosmann/Projects/Orka/support-bot-rag
# Install all dependencies
npm install# Create .env files
cp .env.example .env
cp apps/backend/.env.example apps/backend/.env
cp apps/frontend/.env.example apps/frontend/.envEdit apps/backend/.env:
OPENAI_API_KEY=sk-your-api-key-here# Start backend + frontend
npm run devOpen your browser: http://localhost:3000
# Create the .env file
echo "OPENAI_API_KEY=sk-your-api-key" > .env
# Start
docker-compose -f docker-compose.dev.yml up# Create the .env file
echo "OPENAI_API_KEY=sk-your-api-key" > .env
# Build and start
docker-compose up --buildcurl http://localhost:3001/api/support/healthExpected response:
{
"status": "healthy",
"timestamp": "2024-03-06T15:30:00.000Z"
}Open http://localhost:3000 - you should see the Support Bot welcome screen.
- Click "Start Chatting"
- Ask a question like:
- "How do I get started?"
- "What are the pricing plans?"
- "How do I reset my password?"
- The bot should respond using the knowledge base
Edit: apps/backend/src/support-bot/orka.service.ts
const supportDocuments = [
{
content: `# Votre nouveau contenu`,
metadata: { category: 'custom', topic: 'example' },
},
];Edit: apps/frontend/tailwind.config.ts
colors: {
primary: {
500: '#0ea5e9', // Change this color
},
}# Change the backend port
# Edit apps/backend/.env
PORT=3002
# Change the frontend port
# Edit apps/frontend/package.json
"dev": "next dev -p 3001"# Reinstall dependencies
rm -rf node_modules apps/*/node_modules
npm installMake sure:
- Your API key is valid
- You have OpenAI credits
- The key is in
apps/backend/.env
- Read the README.md complete
- Explore the Orka AI documentation
- Customize the knowledge base
- Add your own features
- Check the logs:
docker-compose logs -f - Consult the Orka AI documentation
- Open an issue on GitHub