Contact support and we will keep this article attached to your request.
How N8N can automatically qualify a Referral Factory lead
- A Deal reaches a successful stage in your CRM
- A customer completes a payment
- An order is completed
- A specific form is submitted
- Your own application sends a conversion event
- Create a new workflow in n8n.
- Add the trigger node for the system where the conversion happens.
- Configure the trigger to run when your conversion condition is met.
- Add another node and search for Referral Factory.
- Select the Qualify User action.
- Connect your Referral Factory account using your API Key when prompted.
- Choose how n8n should identify the Referral Factory Lead: Email Address, Referral Code, or Coupon Code.
- Map the corresponding value from your trigger node.
- Select the correct Referral Factory campaign.
- Test the workflow and confirm that the Lead changes from Pending to Qualified.
- Activate the workflow.

Which record/object and field/stage is monitored
Mapping/identifier requirements
- Email Address β use this when the conversion source contains the Lead's email address. This is the most common option.
- Referral Code β use this when your system stores the Lead's referral code.
- Coupon Code β use this when the conversion is linked to a coupon code used by the Lead.
Timing
Duplicate rules
Reward implications
Testing
- Create a test Lead in your Referral Factory campaign and confirm that the Lead is Pending.
- Make sure the test Lead has the identifier you plan to use, such as an email address, referral code, or coupon code.
- In n8n, create the trigger that represents your conversion event.
- Add the Referral Factory Qualify User action.
- Connect your Referral Factory account using your API Key.
- Select the identification method you want to use.
- Map the identifier from the trigger node.
- Select the correct Referral Factory campaign.
- Trigger the conversion event in your source system.
- Run the workflow and confirm that the test Lead changes from Pending to Qualified in Referral Factory.
- If the campaign has a qualification-based Reward Rule, confirm that the expected reward is also created.
- Activate the workflow once the complete process works as expected.
