
5 Python Scripts That Run My Entire Consulting Business
I run a solo AI consulting practice. My total tooling cost is $47/month. Here are the 5 Python scripts that keep everything running. Script 1: The Email Classifier Reads every email, categorizes it, drafts a response. import anthropic import imaplib import email client = anthropic . Anthropic () CATEGORIES = { " urgent_client " : " Respond within 1 hour " , " routine_client " : " Respond within 24 hours " , " prospect " : " Route to sales pipeline " , " vendor " : " Auto-file, respond if action needed " , " newsletter " : " Archive " , " spam " : " Delete " } def classify_email ( subject : str , body : str , sender : str ) -> dict : response = client . messages . create ( model = " claude-sonnet-4-20250514 " , max_tokens = 512 , messages = [{ " role " : " user " , " content " : f """ Classify this email and draft a response. From: { sender } Subject: { subject } Body: { body [ : 1000 ] } Return JSON: - category: one of { list ( CATEGORIES . keys ()) } - priority: 1-5 (1=highest) - summ
Continue reading on Dev.to Python
Opens in a new tab




