Claude-powered affiliate marketing automation. Runs daily to generate blog posts, Pinterest pins, social captions, and email newsletter sections for home decor, furniture, and tools products — then publishes everything automatically.
GitHub Actions (runs 9 AM daily)
→ picks a product from products/seed_products.json
→ Claude writes: blog post + 5 pin descriptions + social caption + email section
→ publishes blog post to GitHub Pages
→ queues social posts to Buffer (Pinterest, Instagram, Facebook)
→ creates email draft in Beehiiv
→ logs everything to logs/published.json
| Account | URL | Why |
|---|---|---|
| GitHub | github.com (unomedina93) | Hosts the blog + runs the automation |
| Claude API | console.anthropic.com | Powers all content generation (~$5 starter credit) |
| Amazon Associates | associates.amazon.com | Affiliate links + product data |
| Buffer | buffer.com | Schedules social posts |
| Beehiiv | beehiiv.com | Email newsletter |
Also sign up (free):
unomedina93.github.io/deal-finderIn your GitHub repo: Settings → Secrets and variables → Actions → New repository secret
Add each of these:
| Secret Name | Where to get it |
|---|---|
ANTHROPIC_API_KEY |
console.anthropic.com → API Keys |
AMAZON_ASSOCIATE_TAG |
associates.amazon.com → Account Settings |
HOME_DEPOT_AFFILIATE_TAG |
ShareASale dashboard (Home Depot program) |
WAYFAIR_AFFILIATE_TAG |
Rakuten dashboard (Wayfair program) |
BUFFER_ACCESS_TOKEN |
buffer.com/developers → Get Access Token |
BEEHIIV_API_KEY |
app.beehiiv.com → Settings → API |
BEEHIIV_PUBLICATION_ID |
app.beehiiv.com → Settings (starts with pub_) |
Open products/seed_products.json and replace every "REPLACE_WITH_YOUR_TAG" with your
actual Amazon Associates tag (e.g., "mysite-20").
url: "https://unomedina93.github.io/deal-finder"
cd ~/Desktop/affiliate-bot
cp .env.template .env
# Fill in .env with your real keys
pip install -r requirements.txt
cd bot
python main.py
The bot will generate content and print it to the console if GitHub/Buffer/Beehiiv are not configured yet — so you can test the Claude output before going live.
cd ~/Desktop/affiliate-bot
git init
git add .
git commit -m "Initial affiliate bot setup"
git remote add origin https://github.com/unomedina93/unomedina93.github.io/deal-finder.git
git push -u origin main
The GitHub Action will run automatically every day at 9 AM EST. You can also trigger it manually: GitHub repo → Actions tab → “Daily Affiliate Content” → Run workflow.
Edit products/seed_products.json to add more products. Each product needs:
id — unique stringname — product nameniche — "home_decor", "tools", or "furniture"affiliate_network — "amazon", "home_depot", or "wayfair"product_url — the product page URLcommission_rate — as a decimal (e.g., 0.07 for 7%)keywords — list of 3-5 SEO keywordsAll generated content automatically includes:
#ad #affiliate on every social postThis satisfies FTC requirements. Do not remove these disclosures.
| Tool | Cost |
|---|---|
| Claude API (Haiku) | ~$0.05/month |
| GitHub | Free |
| Buffer | Free (3 channels) |
| Beehiiv | Free (up to 2,500 subs) |
| Total | ~$0.05/month |
When you’re ready to scale: upgrade Buffer ($6/mo) for unlimited posts, Beehiiv ($39/mo) for monetization features.