tentoi7corp Project: Rebuilding Black-Box Sales Automation & Drastic API Cost Reduction
💬 Client Feedback
“Mr. Kominato rebuilt a buggy, black-box system from scratch without extra charges. The system is extremely stable and running costs dropped significantly. I am thoroughly impressed!”
Challenges: Black-Box Code from Previous Contractor & Heavy API Costs
The client, tentoi7corp, operated an automated sales workflow for gathering corporate leads, identifying official websites/SNS accounts, and submitting contact forms or Instagram DMs.
However, the legacy system created by a previous contractor suffered from critical technical defects:
- 【Black-Box Code (.pyc Files)】:
The Instagram DM component was delivered as compiled
.pycfiles without source code, making bug fixes or maintenance physically impossible. - 【Heavy Paid LLM API Costs】: The tool relied exclusively on expensive paid LLM APIs for resolving website and SNS URLs, creating heavy recurring costs.
- 【Freezing on CAPTCHA Challenges】: When encountering unpassable CAPTCHAs on contact forms, the script froze completely, preventing unattended overnight execution.
Solutions: Full-Scratch Rebuilding & Free Search + AI Hybrid Architecture
Rather than applying temporary patches to unmaintainable code, I restructured the system architecture from the ground up:
- 【Eliminating Black Boxes via Playwright Rebuild】:
Replaced hidden
.pycbinaries by engineering a modern Playwright automation engine from scratch. Implemented local session caching and human-like interaction patterns to avoid bot detection while enabling ultra-fast execution. - 【Hybrid Architecture: Free Search ✕ AI Fallback】: Engineered a two-tier resolution engine. Free DuckDuckGo searches combined with local address/phone scoring resolve 95%+ of queries for free, triggering paid AI (Gemini) only for ambiguous edge cases. This maintained 95%+ accuracy while slashing API costs.
- 【Fail-Safe Exception Handling】: Built automated detection for CAPTCHA barriers that safely skips problematic forms before freezing, achieving 100% continuous unattended operation.
Results: Flawless Operational Stability & Path to Future GUI Expansion
The rebuilt system delivered superior stability and cost efficiency, winning high praise from the client.
- 【100% Code Transparency & Maintainability】: Eliminated all compiled black-box code, establishing a clean, modular codebase easily expandable in the future.
- 【Strategic Value-Add Proposal for Future GUI/WebUI】: Along with final delivery, I presented a roadmap for adding a one-click WebUI, laying a strong foundation for long-term technical consulting.