You are helping me build the following AI agent workflow. ## Goal Marketing Campaigns with CRM and Email Tracking: Sends personalized emails via Brevo to targeted companies in Airtable and updates interaction records with real-time delivery, open. ## Specification - What it does: Get targeted companies from your Airtable CRM and send them personalized emails via Brevo while automatically tracking every open, click, and unsubscribe in real time. This keeps your campaign records updated instantly as engagement happens. - Trigger: Triggered by an event (Manual ยท on demand) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Airtable: CRM data storage and interaction logging - Brevo: Email sending and event tracking ## Known pitfalls, handle each one explicitly in your implementation 1. Brevo webhooks may arrive out of order so you should implement idempotency checks using unique message IDs to prevent duplicate status updates in Airtable. 2. Airtable API rate limits can block the run, add exponential backoff logic to your script when processing high-volume webhook batches. 3. Personalization tokens might fail if a contact record lacks specific data fields, so always include default fallback values in your email template code. 4. Unsubscribe requests must be processed immediately to avoid compliance violations, so prioritize webhook handling for unsubscribe events over other interaction types. ## Reference implementation https://n8n.io/workflows/7318 (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-marketing-campaigns-with-crm-and-email-tracking/ via usecasesforagents.com