Spaces:
Sleeping
Sleeping
from modules.profile_matcher import match_profiles | |
from modules.interview_scheduler import suggest_slots | |
from modules.kyc_processor import extract_text_from_id, verify_id | |
from modules.onboarding_trainer import generate_quiz | |
from modules.performance_tracker import analyze_performance | |
from modules.agent_motivation import personalized_nudge | |
def main(): | |
print("\n--- Agent Recruitment & Management AI App ---") | |
# 1. Profile Matching | |
print("\n[1] Profile Matching:") | |
resume = "Experienced insurance agent with proven sales..." | |
job = "Insurance Sales Agent" | |
print("Match:", match_profiles(resume, job)) | |
# 2. Interview Scheduling | |
print("\n[2] Interview Scheduling:") | |
slots = suggest_slots({'2025-06-20': ['10:00 AM', '3:00 PM']}) | |
print("Suggested:", slots) | |
# 3. KYC Verification | |
print("\n[3] KYC Document Verification:") | |
text = extract_text_from_id("sample_id.jpg") | |
print("Verified:", verify_id(text)) | |
# 4. Onboarding Quiz | |
print("\n[4] AI Onboarding Quiz:") | |
quiz = generate_quiz("Insurance Policy") | |
print("Quiz:", quiz) | |
# 5. Performance Tracking | |
print("\n[5] Agent Performance Alerts:") | |
agents = [{'name': 'Ravi', 'sales': 3}, {'name': 'Priya', 'sales': 8}] | |
print("Alerts:", analyze_performance(agents)) | |
# 6. Motivation | |
print("\n[6] Motivation Nudges:") | |
print(personalized_nudge("Ravi", "10 client meetings")) | |
if __name__ == "__main__": | |
main() | |