AffiliateWP Automations
How to Post a Slack Message When a New Affiliate Applies in AffiliateWP
Your partnerships team already lives in Slack, so the best place to hear about a new affiliate is there. To post a Slack message when a new affiliate applies in AffiliateWP, use Zapify's A user registers as an affiliate trigger with the Send a Slack message action. AffiliateWP and Slack are Zapify PRO integrations.
What this automation does
The automation is one trigger plus one action:
- Trigger: A user registers as an affiliate (
AFFWP_AFFILIATE_REGISTERED, AffiliateWP) - Action: Send a Slack message (
SLACK_SEND_MESSAGE, Slack)
Whenever somebody registers as an affiliate, Zapify posts a short message to the Slack channel you choose, with their name, email and whether they need approval.
PRO feature
AffiliateWP and Slack are Zapify PRO integrations, so this automation needs an active Zapify PRO licence.
No Connection needed for AffiliateWP
AffiliateWP runs on your own site, so there is no API key to paste for it and nothing to set up under Settings → Connections.
Before you start
- AffiliateWP installed and active.
- A Slack app for your workspace with a bot user OAuth token (starts
xoxb-) and thechat:writescope, and the bot invited into the channel you want it to post to. See Slack's authentication basics if you are setting one up for the first time.
How to build the automation
Step 1: Connect Slack
- Go to Settings → Connections and click Add New.

- Choose Slack, paste in the bot user OAuth token, and name the connection something like Team Slack.

- Save.
See Connections for how this screen works generally.
Step 2: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Name it clearly, such as Announce new affiliates in Slack.

Step 3: Add the "A user registers as an affiliate" trigger
- Click Add Trigger.

- Choose AffiliateWP as the app.

- Select A user registers as an affiliate.

- Configure the trigger:
| Field | Required | What it does |
|---|---|---|
| Status | Yes | Any status to catch every sign-up, Pending approval for applications that need a decision, or Active (approved straight away) for people your program accepts automatically. |
Leave Status on Any status, or choose Pending approval to only announce applications that need a decision.
Step 4: Add the "Send a Slack message" action
- Click Add Action.

- Choose Slack as the app.

- Select Send a Slack message.

Step 5: Configure the action
| Field | Required | What it does |
|---|---|---|
| Connection | Yes | The Slack connection from Step 1. |
| Channel | Yes | A channel name such as #affiliates, or its ID. The bot must already be a member. |
| Message | Yes | The text to post. Insert tokens with the {} button. |
| Post as | No | Overrides the bot's display name for this message. Leave empty to use the bot's own name. |
For example:
- Channel:
#affiliates - Message:
New affiliate: {Display name} ({User email}). Status: {Affiliate status}. Payment email: {Affiliate payment email}.
Step 6: Set the steps Live and save
Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.
- Set the trigger and every action to Live.
- Click Save.

Step 7: Test it
Register a test affiliate. The message should appear in the channel within a minute. If it does not, open Zapify → Logs to see what Slack answered.
Tokens you can use
The trigger offers the affiliate's details, plus the user tokens.
| Token | What it holds |
|---|---|
| Affiliate ID | The affiliate's numeric ID in AffiliateWP. |
| Affiliate status | Their status: active, inactive, pending or rejected. |
| Affiliate referral URL | Their personal referral link, ready to put in an email. |
| Affiliate payment email | The address they get paid at. |
| Affiliate rate / Affiliate rate type | Their commission rate and whether it is a percentage or a flat amount. |
| Affiliate earnings / Affiliate unpaid earnings | What they have earned in total, and what is still waiting to be paid. |
| User ID / Username / User email | The user the automation runs for: the affiliate, or the referred customer when Run for is set to the customer. |
| Display name / First name / Last name | Their name details. |
Conclusion
With the A user registers as an affiliate trigger and the Send a Slack message action, the team sees every new affiliate as it happens. To make sure somebody acts on it, create a ClickUp task for each application.
FAQs
Is this free in Zapify?
No. AffiliateWP and Slack are both Zapify PRO integrations and need an active Zapify PRO licence. Slack also needs a Connection.
The action reports success but nothing appeared in Slack. Why?
The bot must be a member of the channel. Invite it with /invite @YourBot and run the test again.
Can I post to a private channel?
Yes, as long as the bot has been invited to it.
Do I need to write any code?
No. Everything is configured visually in the Zapify builder.