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
- OpenAI Chat Model
- Daily Check Trigger
- Set Admin Dashboard URL
- Scrape User Data (AI Agent)
- Bright Data MCP Client
- Format User Login Data
- Convert Date to Days Since Login
- Convert Days to Integer
- Check Inactive Threshold (>=30 days)
- Send Re-engagement Email
- Do Nothing (User Active)
- Auto-fixing Output Parser
- OpenAI Chat Model1
- Structured Output Parser
Similar automations
Email AutomationRe-Engage Stale Users with Gemini Emails via Gmail12 stepsWeb Scraping & ResearchExtract LinkedIn Post Engagement Data with Airtop5 stepsEmail AutomationVet Instagram creators by engagement and reach with Apify, OpenAI and Sheets35 stepsLead Generation & EnrichmentSend Daily Outreach Emails and Log Engagement in HubSpot18 steps