You are helping me build the following AI agent workflow. ## Goal Jotform Survey Report Generator: Instantly sends personalized AI insights to survey respondents and weekly aggregate trend reports to admins via Jotform and Gemini. ## Specification - What it does: You receive instant, personalized email reports with AI-driven insights immediately after submitting your survey, while administrators get automated weekly summaries of aggregated trends and statistics sent directly to their inbox. - Trigger: Triggered by an event (Event · on new submission; Scheduled · weekly) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Jotform: Collecting survey responses via API - Google Gemini Chat Model: Generating insights and statistical analysis - Gmail: Sending personalized and aggregate reports - n8n: Orchestrating the workflow automation ## Known pitfalls, handle each one explicitly in your implementation 1. HTML formatting errors may break the email layout in some clients so validate the generated HTML structure before passing it to the Gmail node. 2. Sensitive personal data could be exposed in logs if you do not mask PII fields before sending them to the external AI model. ## Reference implementation https://n8n.io/workflows/9484 (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-jotform-survey-report-generator/ via usecasesforagents.com