Quick Start¶
Get CitizenAI up and running in minutes with this comprehensive quick start guide.
Before You Begin¶
Ensure you have completed the Installation process before proceeding.
Running CitizenAI¶
CitizenAI offers two versions to suit different needs:
The demo version runs without AI dependencies and is perfect for testing the interface and basic functionality.
Demo Features
- Full UI experience
- Mock chat responses
- Sample analytics data
- No external API dependencies
The full version includes IBM Watson integration and requires API credentials.
AI Version Requirements
Requires IBM Watson API credentials. See Configuration for setup details.
First Access¶
-
Start the Application
-
Open Your Browser Navigate to:
http://localhost:5000
-
Login Use the default credentials:
- Username:
admin
- Password:
password
Interface Overview¶
Main Dashboard¶
After logging in, you'll see the main dashboard with:
- 📊 Analytics Cards: Key metrics and statistics
- 📈 Charts: Interactive visualizations
- 🔄 Real-time Updates: Live data refresh
- 📱 Responsive Design: Works on all screen sizes
Navigation Menu¶
Section | Description |
---|---|
Dashboard | Main analytics and overview |
Chat | AI-powered citizen assistance |
Concerns | Issue reporting and tracking |
Services | Available government services |
About | Platform information |
Key Features Demo¶
1. AI Chat Assistant¶
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:
- "What services are available for new residents?"
- "How do I report a street light issue?"
- "What are the office hours for city hall?"
2. Analytics Dashboard¶
The dashboard displays:
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
3. Concern Reporting¶
Test the concern reporting system:
- Navigate to Concerns section
- Click "Report New Concern"
- Fill out the form with sample data
- Submit and track the concern status
Configuration Basics¶
Environment Variables¶
Create a .env
file for configuration:
# Basic Configuration
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY=your-secret-key-here
# IBM Watson Configuration (for full AI version)
WATSON_API_KEY=your-watson-api-key
WATSON_URL=your-watson-url
WATSON_VERSION=2021-06-14
Default Settings¶
# Server Settings
HOST = '127.0.0.1'
PORT = 5000
DEBUG = True
# Session Settings
SESSION_TYPE = 'filesystem'
PERMANENT_SESSION_LIFETIME = 1800 # 30 minutes
Testing the Features¶
Chat Functionality¶
- Navigate to Chat: Click on the "Chat" menu item
- Start Conversation: Type a message in the input field
- View Response: See AI-generated or demo responses
- Test Different Queries: Try various question types
Analytics Features¶
- View Dashboard: Check real-time metrics
- Interact with Charts: Hover and click on chart elements
- Filter Data: Use date pickers and filters
- Export Data: Download charts and reports
Concern Management¶
- Submit Concern: Use the concern reporting form
- Track Status: Monitor concern progress
- View History: Check past submissions
- Receive Updates: Get notification updates
Performance Tips¶
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
Common Workflows¶
For Government Staff¶
flowchart LR
A[Login] --> B[View Dashboard]
B --> C[Check Analytics]
C --> D[Review Concerns]
D --> E[Respond to Citizens]
E --> F[Update Status]
For Citizens¶
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]
Next Steps¶
Now that you have CitizenAI running:
- Explore Features: Try all available functionality
- Configure Settings: Set up Configuration for your needs
- Read User Guide: Dive deeper into Features
- API Integration: Check out API Reference
Getting Help¶
- Issues: Check Troubleshooting
- Questions: See FAQ
- Community: Join discussions on GitHub
You're All Set!
CitizenAI is now running and ready for use. Explore the platform and see how AI can transform citizen engagement!