How to Add Leads Under an Affiliate in Sparkforge Workflows
The Add Leads Under an Affiliate workflow action assigns new leads to specific affiliates and campaigns automatically. Pick manual assignment, auto-track via attribution, or custom mapping based on how leads come in.
The Add Leads Under an Affiliate workflow action ties leads to the right affiliate the moment they enter Sparkforge. It works with the Affiliate Manager system, so attribution, commission tracking, and follow-ups all line up automatically.
What the Action Does
When the workflow triggers, Sparkforge assigns the new lead to a chosen affiliate inside a chosen campaign. Use it for manual routing or fully automated attribution. The result: clean affiliate reporting and accurate commissions without manual tagging.
Why Operators Use It
- Automation: assign leads to the right affiliate without manual input.
- Accuracy: sync directly with campaign data so attribution stays clean.
- Flexibility: three assignment methods cover most setups.
- Integration: ties workflows, forms, and affiliate links into one flow.
- Scale: handles large affiliate networks without manual routing.
How to Configure
Step 1: Open the Workflow Builder
Go to Automation, then Workflows. Click Create Workflow. Start from a recipe, template, or scratch.
Step 2: Add a trigger
Without a trigger, no leads enter the workflow. Common triggers:
- Form Submitted: when a contact completes a specific form.
- Tag Added: when a tag is applied to a contact.
Step 3: Add the action
Click + Add, choose Add Action, scroll to the Affiliate section, and select Add Leads Under an Affiliate.
Step 4: Pick a configuration method
Three options cover most patterns:
Manual Assignment
Best for fixed routing where the affiliate is known up front.
- Select Manual under Choose Action Mapping.
- Pick the affiliate Campaign.
- Pick the Affiliate from the campaign's list.
- Save.
Every lead in this workflow lands under that affiliate.
Auto-Track via Attribution
Best for traffic driven by tracked affiliate links containing an am_id parameter.
- Select Auto-Track Affiliate via Attribution.
- Pick the attribution source: First Attribution credits the first referrer; Latest Attribution credits the most recent.
- Save.
When a lead arrives via a URL like https://yourdomain.com/?am_id=1234, Sparkforge captures the ID and credits the matching affiliate.
Custom Mapping
Best when affiliate data flows in through API integrations or custom fields.
- Select Custom Mapping.
- Enter the mapping source: a custom field like
{{contact.custom_field.am_id}}or a workflow variable like{{workflow.am_id}}.
Sparkforge matches the ID to an affiliate record and assigns the lead.
Step 5: Test and publish
- Click Test Workflow in the top-right.
- Review the Execution Logs to confirm assignment.
- Toggle from Draft to Publish.
Frequently Asked Questions
What happens if no matching affiliate is found for an am_id?
Can I manually override an automatically assigned affiliate?
Does this action require a sale or commission to work?
What is the difference between First and Latest Attribution?
Can I assign multiple affiliates to one lead?
Was this article helpful?
Thanks for the feedback.