You are helping me build the following AI agent workflow. ## Goal Customer Onboarding Request Automation: New Typeform onboarding request? The agent logs it to Sheets, validates the email, generates a branded HTML welcome message via AI. ## Specification - What it does: You instantly receive a branded HTML welcome email whenever someone submits a new onboarding request through Typeform. This automation logs their details to Google Sheets, verifies their address for deliverability, and handles any submission errors automatically via Gmail. - Trigger: Triggered by an event (Event ยท on new Typeform submission) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Typeform: Trigger on form submissions - Google Sheets: Log customer details and audit tracking - Gmail: Send branded welcome emails - Azure OpenAI Chat Model: Generate dynamic HTML email content ## Known pitfalls, handle each one explicitly in your implementation 1. HTML injection attacks can compromise security, so sanitize all user inputs before passing them to the LLM or embedding them in the email body. 2. LLM outputs may occasionally contain malformed HTML tags, implement a try-catch block to validate the generated code before sending. 3. Typeform webhooks can fail silently due to network issues, add logging and alerting for any unprocessed submissions to ensure no data is lost. ## Reference implementation https://n8n.io/workflows/8753 (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/customer-onboarding-request-automation/ via usecasesforagents.com