Get CitizenAI up and running in minutes with this comprehensive quick start guide.
Ensure you have completed the Installation process before proceeding.
CitizenAI offers two versions to suit different needs:
=== “Demo Version (Recommended for Testing)” The demo version runs without AI dependencies and is perfect for testing the interface and basic functionality.
```bash
# Navigate to project directory
cd Citizen-AI
# Run demo version
python app_demo.py
```
!!! success "Demo Features"
- Full UI experience
- Mock chat responses
- Sample analytics data
- No external API dependencies
=== “Full AI Version” The full version includes IBM Watson integration and requires API credentials.
```bash
# Run full AI version
python app.py
```
!!! warning "AI Version Requirements"
Requires IBM Watson API credentials. See [Configuration](/Citizen-AI/getting-started/configuration.html) for setup details.
python app_demo.py
Open Your Browser
Navigate to: http://localhost:5000
adminpasswordAfter logging in, you’ll see the main dashboard with:
| Section | Description |
|---|---|
| Dashboard | Main analytics and overview |
| Chat | AI-powered citizen assistance |
| Concerns | Issue reporting and tracking |
| Services | Available government services |
| About | Platform information |
sequenceDiagram
participant C as Citizen
participant AI as ChatBot
participant S as System
C->>AI: Ask question
AI->>S: Process query
S->>AI: Generate response
AI->>C: Provide answer
Try these sample questions:
The dashboard displays:
!!! example “Sample Metrics” - Citizen Interactions: Daily conversation counts - Sentiment Analysis: Positive/negative feedback trends - Popular Topics: Most frequently asked questions - Response Times: Average AI response performance
Test the concern reporting system:
Create a .env file for configuration:
```bash title=”.env”
FLASK_ENV=development FLASK_DEBUG=True SECRET_KEY=your-secret-key-here
WATSON_API_KEY=your-watson-api-key WATSON_URL=your-watson-url WATSON_VERSION=2021-06-14
### Default Settings
```python title="Default Configuration"
# Server Settings
HOST = '127.0.0.1'
PORT = 5000
DEBUG = True
# Session Settings
SESSION_TYPE = 'filesystem'
PERMANENT_SESSION_LIFETIME = 1800 # 30 minutes
!!! tip “Optimization Recommendations” - Use the demo version for development and testing - Enable caching for production deployments - Monitor memory usage with large datasets - Configure proper logging levels
flowchart LR
A[Login] --> B[View Dashboard]
B --> C[Check Analytics]
C --> D[Review Concerns]
D --> E[Respond to Citizens]
E --> F[Update Status]
flowchart LR
A[Visit Platform] --> B[Ask Question]
B --> C[Get AI Response]
C --> D{Satisfied?}
D -->|Yes| E[End Session]
D -->|No| F[Report Concern]
F --> G[Track Progress]
Now that you have CitizenAI running:
!!! success “You’re All Set!” CitizenAI is now running and ready for use. Explore the platform and see how AI can transform citizen engagement!