help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
anthropic-claude-chatbot
RSK World
anthropic-claude-chatbot
Anthropic Claude Chatbot - Python + Flask + Claude API + JavaScript + AI Chatbot + Conversational AI
anthropic-claude-chatbot
  • __pycache__
  • .env578 B
  • .gitignore669 B
  • ADVANCED_FEATURES.md6.6 KB
  • CHECKLIST.md3 KB
  • GITHUB_RELEASE_GUIDE.md4.6 KB
  • LICENSE1.3 KB
  • PROJECT_INFO.md2.2 KB
  • QUICK_START.md2.8 KB
  • README.md8.5 KB
  • RELEASE_NOTES.md6.6 KB
  • SETUP_ENV.md1.9 KB
  • TROUBLESHOOTING.md5.1 KB
  • advanced-features.js24.9 KB
  • app.py9.7 KB
  • config.py2.4 KB
  • env.example550 B
  • index.html11.4 KB
  • requirements.txt440 B
  • run.bat782 B
  • run.sh713 B
  • script.js21.2 KB
  • setup.py2.5 KB
  • start-frontend.bat683 B
  • start.bat1.6 KB
  • styles.css20.2 KB
run.shQUICK_START.md
run.sh
Raw Download
Find: Go to:
#!/bin/bash
# Anthropic Claude Chatbot - Linux/Mac Start Script
# Project: Anthropic Claude Chatbot
# Year: 2026
# 
# Developer Details:
# - Website: https://rskworld.in
# - Email: help@rskworld.in, support@rskworld.in
# - Phone: +91 93305 39277
# - Organization: RSK World

echo "Starting Anthropic Claude Chatbot..."
echo ""

# Check if virtual environment exists
if [ -d "venv" ]; then
    echo "Activating virtual environment..."
    source venv/bin/activate
else
    echo "Virtual environment not found. Creating one..."
    python3 -m venv venv
    source venv/bin/activate
    echo "Installing dependencies..."
    pip install -r requirements.txt
fi

echo ""
echo "Starting Flask server..."
python app.py

31 lines•713 B
bash
QUICK_START.md
Raw Download

QUICK_START.md

# Quick Start Guide - Fix "Failed to fetch" Error

**Developer Details:**
- Website: https://rskworld.in
- Email: help@rskworld.in, support@rskworld.in
- Phone: +91 93305 39277

---

## The Problem
You see this error when trying to chat:
```
Failed to fetch. Please check your API configuration.
```

## The Solution (3 Simple Steps)

### Step 1: Start the Backend Server

Open a terminal/command prompt in the project folder and run:

```bash
python app.py
```

**You should see:**
```
==================================================
Anthropic Claude Chatbot Server
==================================================
Starting server on http://0.0.0.0:5000
API Health Check: http://localhost:5000/api/health
✅ Anthropic API client initialized successfully
```

**⚠️ IMPORTANT:** Keep this terminal window open! The server must stay running.

---

### Step 2: Open HTML in a Web Server

**Don't double-click `index.html`!** Use one of these:

#### Option A: Python HTTP Server (Recommended)
Open a NEW terminal/command prompt and run:
```bash
python -m http.server 8000
```

Then open browser: `http://localhost:8000`

#### Option B: VS Code Live Server
1. Install "Live Server" extension
2. Right-click `index.html`
3. Click "Open with Live Server"

---

### Step 3: Check Status Indicator

In the chatbot interface, look at the top-right:
- ✅ Green "Ready" = Everything is working!
- ❌ Red "Server Offline" = Server not running (go back to Step 1)

---

## Still Not Working?

### Check 1: Is Server Running?
Open browser and go to: `http://localhost:5000/api/health`

You should see:
```json
{"status":"healthy","anthropic_configured":true}
```

If you see "This site can't be reached" → Server is NOT running (Step 1)

### Check 2: Is API Key Set?
1. Create `.env` file in project folder
2. Add this line:
```
ANTHROPIC_API_KEY=sk-ant-your-key-here
```
3. Get your key from: https://console.anthropic.com/
4. Restart the server (Step 1)

### Check 3: Port Conflict?
If port 5000 is busy, change it:
1. Edit `.env` file: `PORT=5001`
2. Edit `script.js` line 17: `const API_BASE_URL = 'http://localhost:5001/api';`
3. Restart server

---

## Complete Setup (First Time)

```bash
# 1. Install dependencies
pip install -r requirements.txt

# 2. Create .env file
copy env.example .env
# (Edit .env and add your ANTHROPIC_API_KEY)

# 3. Start Flask server (Terminal 1)
python app.py

# 4. Start HTTP server (Terminal 2)
python -m http.server 8000

# 5. Open browser
# Go to: http://localhost:8000
```

---

## Need More Help?

See `TROUBLESHOOTING.md` for detailed solutions.

**Contact:**
- Email: help@rskworld.in
- Website: https://rskworld.in

---

© 2026 RSK World. All rights reserved.

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer