Use when someone asks to write a cover letter, draft a cover letter, generate a cover letter for a job, or tailor a cover letter for an internship application.
Pulls an application from the Google Sheet, fetches the full JD via Playwright, and generates a tailored cover letter using Groq AI (Ollama fallback). Saves the draft to the CoverLetters tab.
pip install groq gspread google-auth playwright
playwright install chromium
Environment variables required:
GROQ_API_KEY — Groq API keyGOOGLE_CREDS_PATH — path to Google service account credentials.jsonGOOGLE_SHEET_ID — Google Sheet IDExtract the company name or App ID from $ARGUMENTS. If not provided, ask: "Which company or App ID do you want to generate a cover letter for?"
Run the script:
cd c:/Users/dnialhziem/career-toolkit
python scripts/cover_letter.py $ARGUMENTS
The script will:
After output, ask: "Want me to refine any section — tone, opening, or specific project highlight?"
Applications tab first — run /app-tracker add if not