PERSON JOP PIPELINE EMAIL — JOB REQUEST RESPONDER WORKFLOW

PERSON JOP PIPELINE EMAIL — JOB REQUEST RESPONDER WORKFLOW

Here is a summary of an email responder system looking for remote only jobs

--- GMAIL SETUP

4 folders + inbox:
1-DreamRole: Working folder. All inbound job emails land here via filter.
2-Responded: Thread is done. #5 sent, or User is managing it.
3-ApplyOnline: Email confirmations from online applications.
4-Other: Everything else that doesn't fit above.

Gmail filter:
Catches job-related emails by keyword before they hit the inbox.
Routes directly into 1-DreamRole.
Script never touches the inbox or any other folder.

--- AUTOMATED SCRIPT (job-email.py — runs every 5 minutes via cron)

On each run the script does two things: process new emails, process follow-ups.
New emails:
1. Scan 1-DreamRole only. All other folders are ignored.
2. If thread is already tracked in the DB — skip it.
3. If thread has any label beyond 1-DreamRole — skip it. User is managing it.
4. Detect criteria (example: onsite/hybrid vs remote) from email
5. Send response #1 (not interested) or #2 (tell me more, validate).
6. Record the thread in the DB.

Follow-ups (24 hours after last response):
1. Check each tracked, unresolved thread.
2. If thread has any label beyond 1-DreamRole
3. If User has manually replied — stop automation on that thread.
4. If recruiter has replied — leave unread for User
5. If last sent was #1 → send #5, move thread to 2-Responded.
6. If last sent was #2 → send #4.
7. If last sent was #4 → send #5, move thread to 2-Responded.

--- RESPONSE SEQUENCE (looking for remote only roles example)

#1 Onsite/hybrid role detected — initial reply
#2 Remote role — initial reply
#4 Follow-up after #2 (24 hours, no reply)
#5 Final follow-up — sent last, thread moves to 2-Responded

--- MANUAL TAKEOVER

Apply any label to a thread in 1-DreamRole.
Script detects the label on next run and skips the thread.
User handles it from there.

--- USER CHECKS EMAIL 2x per day.

Looking for: recruiter replies left unread in 1-DreamRole.
Moves threads to 2-Responded manually after engaging.
Moves application confirmations to 3-ApplyOnline.
Moves anything irrelevant to 4-Other.

--- ALERTS

Script texts +1 (xxx) xxx-xxxx on any fatal error.
Cooldown: one alert per hour max.
Heartbeat file updated on each successful run.
Watchdog checks heartbeat every 15 minutes.
Daily report runs at midnight.