30 lines
993 B
Markdown
30 lines
993 B
Markdown
# Upwork Email-Triggered Auto-Apply Pipeline
|
|
|
|
## Architecture
|
|
```
|
|
Gmail (Upwork notification)
|
|
→ Gmail API watch() push notification
|
|
→ Google Pub/Sub
|
|
→ Cloudflare Worker (webhook)
|
|
→ Clawdbot wake event
|
|
→ Pipeline script processes new emails
|
|
→ Score job (skip if < $50/hr or < $1K fixed)
|
|
→ Scrape full job details from Upwork
|
|
→ Spawn sub-agent to build deliverables
|
|
→ Deploy deliverables to CF Pages
|
|
→ Submit proposal with screenshots + demo link
|
|
→ Post results to Discord #pipeline
|
|
```
|
|
|
|
## Components
|
|
- `pipeline.sh` — Main pipeline entry point (called by Clawdbot wake)
|
|
- `worker/` — Cloudflare Worker for Gmail push webhook
|
|
- `templates/` — Proposal templates
|
|
- `processed.json` — Track already-processed email IDs
|
|
|
|
## Setup
|
|
1. Gmail OAuth: `gog auth add jake@localbosses.org --services gmail`
|
|
2. Deploy CF Worker: `cd worker && wrangler deploy`
|
|
3. Set up Gmail watch: `node setup-watch.js`
|
|
4. Add Clawdbot cron for wake event handling
|