AffiliateMaster
by @michael-laffin
Full-stack affiliate marketing automation for OpenClaw agents. Generate, track, and optimize affiliate links with FTC-compliant disclosures and multi-network support.
clawhub install affiliate-masterπ About This Skill
name: affiliate-master description: Full-stack affiliate marketing automation for OpenClaw agents. Generate, track, and optimize affiliate links with FTC-compliant disclosures and multi-network support. metadata: { "openclaw": { "version": "1.0.0", "author": "Vernox", "license": "MIT", "tags": ["affiliate", "marketing", "monetization", "automation", "ftc-compliance"], "category": "marketing", }, }
AffiliateMaster - Affiliate Marketing Automation
Vernox's first revenue-generating skill. Turn content into cash.
Overview
AffiliateMaster is a comprehensive affiliate marketing automation tool for OpenClaw agents. It handles the entire affiliate workflow from link generation to revenue tracking, with built-in FTC compliance.
Features
β Link Management
β FTC Compliance
β Content Integration
β Multi-Network Support
β Analytics & Optimization
Installation
clawhub install affiliate-master
Quick Start
1. Configure API Keys
# Edit config file
~/.openclaw/skills/affiliate-master/config.json
{
"networks": {
"amazon": {
"accessKey": "YOUR_ACCESS_KEY",
"secretKey": "YOUR_SECRET_KEY",
"associateId": "YOUR_ASSOCIATE_ID",
"region": "us-east-1"
},
"shareasale": {
"apiKey": "YOUR_API_KEY",
"affiliateId": "YOUR_AFFILIATE_ID"
}
},
"disclosure": {
"text": "This post contains affiliate links. If you buy through these links, we may earn a commission at no extra cost to you.",
"placement": "top",
"platforms": {
"blog": "above-fold",
"twitter": "end",
"email": "footer"
}
}
}
2. Generate Your First Affiliate Link
// Find a product
const products = await affiliateMaster.searchProduct('wireless headphones');// Generate affiliate link
const link = await affiliateMaster.generateLink({
network: 'amazon',
product: products[0]
});
// Result:
// {
// "originalUrl": "https://amazon.com/dp/B0XXXXX",
// "affiliateUrl": "https://amzn.to/3xxxxx?tag=your-id-20",
// "disclosure": "Affiliate link",
// "trackingId": "aff_12345"
// }
3. Insert Links into Content
const content = Check out these amazing wireless headphones! They have great sound quality.;const enhanced = await affiliateMaster.enhanceContent(content, {
autoInsert: true,
disclosurePlacement: 'top'
});
// Result: Content with affiliate links and FTC disclosure inserted
Tool Functions
generateLink
Generate affiliate links for products.Parameters:
network (string): Network name (amazon, shareasale, cj, impact)product (object): Product data (id, url, name)shorten (boolean): Generate short link (default: true)Returns:
affiliateUrl: Generated affiliate linkdisclosure: Required disclosure texttrackingId: Unique tracking identifiersearchProduct
Search for products across affiliate networks.Parameters:
query (string): Search querynetwork (string): Network to search (default: all)category (string): Product category filterReturns:
enhanceContent
Automatically insert affiliate links into content.Parameters:
content (string): Original contentoptions (object):autoInsert (boolean): Auto-detect opportunities
- disclosurePlacement (string): Where to place disclosure
- maxLinks (number): Maximum links to insertReturns:
getAnalytics
Retrieve performance analytics.Parameters:
dateRange (string): 7d, 30d, 90d, allnetwork (string): Filter by network (optional)Returns:
validateCompliance
Check FTC compliance of content.Parameters:
content (string): Content to validateplatform (string): Platform type (blog, social, email)Returns:
Use Cases
Blog Monetization
Newsletter Monetization
Social Media Monetization
E-commerce Arbitrage
Pricing
Roadmap
Compliance
AffiliateMaster is built with FTC compliance in mind:
Disclaimer: This tool helps with compliance but does not replace legal advice. Always consult with a legal professional for specific compliance needs.
Support
For issues, feature requests, or questions:
Generate revenue. Stay compliant. Automate everything.
β‘ When to Use
π‘ Examples
1. Configure API Keys
# Edit config file
~/.openclaw/skills/affiliate-master/config.json
{
"networks": {
"amazon": {
"accessKey": "YOUR_ACCESS_KEY",
"secretKey": "YOUR_SECRET_KEY",
"associateId": "YOUR_ASSOCIATE_ID",
"region": "us-east-1"
},
"shareasale": {
"apiKey": "YOUR_API_KEY",
"affiliateId": "YOUR_AFFILIATE_ID"
}
},
"disclosure": {
"text": "This post contains affiliate links. If you buy through these links, we may earn a commission at no extra cost to you.",
"placement": "top",
"platforms": {
"blog": "above-fold",
"twitter": "end",
"email": "footer"
}
}
}
2. Generate Your First Affiliate Link
// Find a product
const products = await affiliateMaster.searchProduct('wireless headphones');// Generate affiliate link
const link = await affiliateMaster.generateLink({
network: 'amazon',
product: products[0]
});
// Result:
// {
// "originalUrl": "https://amazon.com/dp/B0XXXXX",
// "affiliateUrl": "https://amzn.to/3xxxxx?tag=your-id-20",
// "disclosure": "Affiliate link",
// "trackingId": "aff_12345"
// }
3. Insert Links into Content
const content = Check out these amazing wireless headphones! They have great sound quality.;const enhanced = await affiliateMaster.enhanceContent(content, {
autoInsert: true,
disclosurePlacement: 'top'
});
// Result: Content with affiliate links and FTC disclosure inserted