You are helping me build the following AI agent workflow. ## Goal Employee Onboarding Document Generator: Triggers on new hire acceptance to generate role-specific PDFs. ## Specification - What it does: Get ready-to-send onboarding packages instantly when a new hire accepts their offer. You receive customized PDFs containing welcome letters, benefits guides, IT setup instructions, and required forms directly in Gmail with action items included. All documents are automatically stored in Google Drive while the system logs completion status for your audit trails. - Trigger: Triggered by an event (Event ยท on new hire offer acceptance or HR system trigger) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - HTTP Request: Trigger and API calls to external systems - Google Drive: Storing generated PDF documents in organized folders - Gmail: Sending onboarding packages to new hires - Code: Data validation, role detection, and document logic processing ## Known pitfalls, handle each one explicitly in your implementation 1. HTML-to-PDF converters often break with complex CSS grids so use simple table-based layouts for reliability. 2. Google Drive API quotas can be exceeded during bulk onboarding so implement retry logic with exponential backoff. 3. Email delivery may fail if the recipient address is malformed so validate email format before sending. 4. Sensitive employee data must not be logged in plain text so sanitize all audit trail entries. ## Reference implementation https://n8n.io/workflows/10686 (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/automated-employee-onboarding-document-generator/ via usecasesforagents.com