Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Detect Inactive Users and Send Re-Engagement Emails

Every day, an OpenAI agent scrapes user login data from your admin dashboard through Bright Data MCP, finds inactive users and emails them through Gmail.

What it does

# ✅ Workflow Title: Inactive User Detection & Re-engagement Email Automation --- ## 🧩 Section 1: Trigger & Dashboard Input 🔁 Schedule Trigger → 📝 Edit Fields ### 🔹 What Happens Here: * ⏰ Schedule Trigger runs the workflow automatically (e.g., daily). * 📝 Edit Fields manually sets the URL of the admin dashboard containing user data. ### 💡 Beginner Tip: This section starts everything. You define *where* the user data lives by setting the dashboard URL. You don’t need coding—just copy-paste the dashboard URL. ### 🔧 Icons Summary: * ⏰ Schedule Trigger = Starts the automation * ✏️ Edit Fields = Inputs the dashboard URL --- ## 🤖 Section 2: AI-Powered Scraping & Date Transformation 🧠 AI Agent + MCP Client → {} Code → OpenAI Message Model → 📝 Edit Fields1 ### 🔹 What Happens Here: * 🤖 AI Agent uses Bright Data MCP to scrape user data from the URL (like last login info). * 🧩 MCP Client + Structured Output Parser help the agent fetch and structure the scraped data. * {} Code Node formats this data and isolates the last_login_date (e.g., "2024-06-01"). * 🧠 OpenAI Message Model is used smartly to convert "2024-06-01" into "30" (number of days since last login). * 📝 Edit Fields1 converts the data type from string to integer. ### 💡 Beginner Tip: You're combining web scraping with AI here. Even if you don’t know code, the AI agent and OpenAI node are doing the heavy lifting—transforming raw dates into meaningful values. ### 🔧 Icons Summary: * 🤖 AI Agent = Fetches the data * 🛜 MCP Client = Connects to Bright Data’s mobile proxy * 🧩 Structured Parser = Makes scraped data usable * {} Code Node = Cleans and prepares the data * 🧠 OpenAI = Converts date to “days ago” * ✏️ Edit Fields1 = Converts to a number --- ## ✉️ Section 3: Smart Notification Logic ⚖️ IF Node → 📧 Gmail OR ➡️ No Operation ### 🔹 What Happens Here: * ⚖️ IF Node checks if the number of days since last login is greater than or equal to 30. * If True ➡️ send an email using 📧 Gmail Node. * If False ➡️ just do nothing with ➡️ No Operation Node. ### 💡 Beginner Tip: This section automates your decision-making! You’re now reaching out only to inactive users—this is powerful for re-engagement. ### 🔧 Icons Summary: * ⚖️ If Node = Makes the decision * 📧 Gmail = Sends the message * ➡️ No Operation = Ignores the user if they rece

The steps

  1. OpenAI Chat Model
  2. Daily Check Trigger
  3. Set Admin Dashboard URL
  4. Scrape User Data (AI Agent)
  5. Bright Data MCP Client
  6. Format User Login Data
  7. Convert Date to Days Since Login
  8. Convert Days to Integer
  9. Check Inactive Threshold (>=30 days)
  10. Send Re-engagement Email
  11. Do Nothing (User Active)
  12. Auto-fixing Output Parser
  13. OpenAI Chat Model1
  14. Structured Output Parser

Similar automations