Affiliate
Finds affiliate candidates, recruits them by email, creates unique discount codes and tracked links, monitors attributed orders, flags top performers, and prepares the monthly payout report. Payouts are a report you pay, never a transfer this agent makes.
Who it is for
The owner who has been asked for a code by a blogger three times and never set one up, and the marketer who wants attribution by code, not by screenshot.
What it reads from the brain
Before every run. Sections are addressed as layer.section.
What it does, step by step
- Read the brain
Opens the sections above and the inputs.
- Gather evidence
Searches YouTube and enriches channels, and reads your orders for high value customers who could become affiliates. Every finding cites its source.
- Decide and draft
Ranks candidates (bloggers, YouTubers, deal sites, high value customers) and drafts the recruitment email per candidate in your voice using only claims_allowed, with the commission band fixed.
- Advise stops here
You get the candidate list and the drafted offers.
- Act
Sends the approved recruitment batch, creates codes and tracked links for affiliates who accept, and produces the monthly report from attributed orders.
- Write back
Decisions appended to the brain's decisions log.
Tools it uses
scrapecreators.youtube.search, youtube.channels.listDiscovery and enrichmentcontacts.find_emailContact pathemail.sendApproval gated batch, from your mailboxshopify.discount.createApproval gated. Unique code per affiliateshopify.discount.bulk_codesBulk codes, 250 per calllinks.createTracked link per affiliateshopify.orders.listAttributed orders for the monthly report
The three modes for this agent
Read tools only. You get the ranked candidates and the drafted recruitment emails.
Recruitment batch sent after your approval. Codes created after your approval. Monthly payout report produced for you to pay.
Every Thursday at 08:00. Same gates. Recruitment and the monthly report run on their own; payouts stay in your hands.
Guardrails and approvals
Enforced in code. Items with a filled circle wait for your tap in Telegram.
- Commission band fixed.
- Never changes terms without approval.
- Payouts are reports, never transfers.
- Recruitment cap per week.
- Codes created through Shopify's discount code API, bulk 250 per call.
- Every claim in every draft is in claims_allowed or is removed and listed as needs your confirmation.
What it writes back to the brain
Dated and sourced. Learnings and performance sections are append only.
Example output
Example output. Structure only. Counts and amounts are placeholders.
Affiliate, your store, this week
Ran at data level 3 (Shopify and mailbox connected).
- Candidates found: [n] (bloggers [n], YouTubers [n], deal sites [n], high value customers [n]). Ranked in candidates.csv.
- Recruitment emails drafted: [n], inside this week's cap, commission band as fixed.
- Active affiliates: [n]. Codes and links live: [n].
Waiting for your approval to send [n] recruitment emails and to create [n] codes for affiliates who accepted.
payout-report.md (monthly, structure)
| Affiliate | Code | Attributed orders | Attributed revenue | Commission due |
|---|---|---|---|---|
| [name] | [CODE] | [n] | [amount] | [amount] |
This is a report. You pay it. The agent never moves money.
Also delivered: codes.csv (affiliate, code, tracked link, created_at).