You are helping me build the following AI agent workflow. ## Goal School Trip Consent Forms: Receives parent consent submissions via webhook, verifies the email, generates a PDF, stores it in Google Drive, and notifies the teacher. ## Specification - What it does: You get parent consent forms processed instantly as they arrive via webhook, ensuring every email is verified before a legally formatted PDF is created. The document is automatically saved to Google Drive for easy access while your class teacher receives an immediate notification with all verification details. - Trigger: Triggered by an event (Event ยท on webhook POST request) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - HTTP Request: Receive parent consent data via webhook - Code: Verify email and generate unique IDs - Google Drive: Store generated PDF consent forms - Gmail: Notify teachers with verification details ## Known pitfalls, handle each one explicitly in your implementation 1. Webhook payloads may contain HTML entities or special characters so sanitize all input fields before inserting them into the PDF template to prevent rendering errors. 2. Google Drive API quotas can be exceeded during bulk processing so add a small delay between upload requests if multiple forms are submitted simultaneously. 3. PDF generation services often fail silently on malformed JSON so implement explicit error handling in your code step to catch and log HTTP status codes greater than 400. 4. Email notifications might land in spam folders if the sender address lacks proper SPF/DKIM records so verify your Gmail service account authentication settings before going live. ## Reference implementation https://n8n.io/workflows/10454 (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/automate-school-trip-consent-forms/ via usecasesforagents.com