You are helping me build the following AI agent workflow. ## Goal Contract Analysis and Risk Scoring: Upload a PDF contract to get a plain English translation, a 0-100 risk score, and an HTML email report of hidden traps. ## Specification - What it does: Upload your PDF contract to instantly receive a plain English translation, a 0-100 risk score, and an email report highlighting hidden traps. You get these insights compiled into a clear HTML summary without needing to decipher complex legal jargon yourself. - Trigger: Run manually (Manual ยท on new contract upload) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Anthropic Chat Model: Legal translation to plain English - OpenAI Chat Model: Risk scoring and trap detection - Gmail: Sending analysis report email - HTTP Request: VirusTotal malware scanning ## Known pitfalls, handle each one explicitly in your implementation 1. Gmail API quotas are strict for new accounts, so queue emails or use batch sending if processing multiple contracts simultaneously. 2. Different PDF structures can break text extraction, so test with various document layouts and handle empty fields gracefully. ## Reference implementation https://n8n.io/workflows/14659 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/contract-analysis-and-risk-scoring/ via usecasesforagents.com