# Workflow Action - Add Leads Under an Affiliate

> Learn how to set up and use the Add Leads Under an Affiliate action in GHL Customer Care workflows to automate lead assignment, attribution, and affiliate tracking.

- Source: https://docs.ghlcustomercare.com/docs/workflows/contact-workflow-actions/workflow-action-add-leads-under-an-affiliate
- Section: Workflows / Contact Workflow Actions
- Reading time: 5 min
- Images: 6, each explained below

---
The **Add Leads Under an Affiliate** workflow action allows you to automatically assign leads to specific affiliates within chosen campaigns. This feature helps you streamline lead management, ensure accurate affiliate crediting, and enhance engagement by connecting leads with the right affiliate partners—saving time and reducing manual effort.

---

**TABLE OF CONTENTS**

-   [What is the “Add Leads Under an Affiliate” Action?](#what-is-the-add-leads-under-an-affiliate-action)
-   [Key Benefits of Using the Add Leads Under an Affiliate Action](#key-benefits-of-using-the-add-leads-under-an-affiliate-action)
-   [How to Configure the Workflow Action](#how-to-configure-the-workflow-action)
-   [Frequently Asked Questions](#frequently-asked-questions)

---

# **What is the “Add Leads Under an Affiliate” Action?**

This workflow action connects your lead generation process directly with your affiliate management system. When triggered, it automatically assigns new leads under selected affiliates and campaigns, ensuring every contact is tracked and attributed properly for performance reporting, commissions, or follow-ups.

The action can be used manually or automatically, depending on how you prefer to manage affiliate assignments.

---

## **Key Benefits of Using the Add Leads Under an Affiliate Action**

Understanding how this feature enhances your affiliate workflow helps you maximize automation potential and minimize human error. Below are the key advantages of implementing this action.

-   **Automation:** Automatically assign leads to the correct affiliate without manual input.

-   **Accuracy:** Prevent errors in affiliate tracking by syncing directly with campaign data.

-   **Flexibility:** Choose from multiple assignment methods — Manual, Auto-Track via Attribution, or Custom Mapping.

-   **Integration:** Seamlessly connect workflow automations, forms, and affiliate tracking links.

-   **Scalability:** Handle large affiliate networks efficiently by automating lead routing.

---

# **How to Configure the Workflow Action**

Setting up the **Add Leads Under an Affiliate** workflow action allows you to assign leads to affiliates in your campaigns automatically or manually, depending on how your leads are captured.

The following steps walk you through setting up the workflow trigger, adding the action, choosing a configuration method, and publishing your workflow.

### **Access the Workflow Builder**

Navigate to the **Automation** section in the left-hand menu, then select **Workflows**. From the **Workflow List**, click **Create Workflow** in the upper-right corner.

You can choose to start from a recipe, template, or from scratch, depending on your workflow needs. This step opens the workflow builder, where you can begin setting up the structure of your automation.

![Access the Workflow Builder (image 1 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057427792/original/tv22d0uAxG_kXkldg7Sw-mNcsb_iwTK37w.png)

**Access the Workflow Builder (image 1 of 6)**

This screenshot appears in the "Access the Workflow Builder" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: You can choose to start from a recipe, template, or from scratch, depending on your workflow needs. This step opens the workflow builder, where you can begin setting up the structure of your automation. Immediately after, the guide continues: Before adding the affiliate action, ensure your workflow has a trigger —this determines when a lead will be added under an affiliate.
- What to choose: You can choose to start from a recipe, template, or from scratch, depending on your workflow needs. This step opens the workflow builder, where you can begin setting up the structure of your automation.
- Controls: Automation, Workflows, Workflow List, Create Workflow
- Next: Before adding the affiliate action, ensure your workflow has a trigger —this determines when a lead will be added under an affiliate.

### **Add a Workflow Trigger**

Before adding the affiliate action, ensure your workflow has a **trigger**—this determines when a lead will be added under an affiliate.

Without a trigger, no leads will enter the workflow, and the action will not execute.

Common triggers include:

-   **Form Submitted:** When a contact completes a specific form.
    
-   **Tag Added:** When a tag is applied to a contact.
    

### **Add the Workflow Action**

After setting up your trigger, add the **Add Leads Under an Affiliate** action to the workflow.

Click the **\+ Add** button, then select **Add Action** from the dropdown menu.

This opens the list of available workflow actions where you can choose the appropriate one for your automation setup. This step adds a new action block that will handle your affiliate lead assignment.

![Add the Workflow Action (image 2 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057426145/original/OIZKKiCio23PynVlAPspLfNfHkzl6a87Og.jpeg)

**Add the Workflow Action (image 2 of 6)**

This screenshot appears in the "Add the Workflow Action" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: This opens the list of available workflow actions where you can choose the appropriate one for your automation setup. This step adds a new action block that will handle your affiliate lead assignment. Immediately after, the guide continues: Once the action menu opens, scroll to the Affiliate section under Actions and select Add Leads Under an Affiliate.
- What to choose: This opens the list of available workflow actions where you can choose the appropriate one for your automation setup. This step adds a new action block that will handle your affiliate lead assignment.
- Controls: Add Leads Under an Affiliate, + Add, Add Action
- Next: Once the action menu opens, scroll to the Affiliate section under Actions and select Add Leads Under an Affiliate.

### **Select the Action Type**

Once the action menu opens, scroll to the **Affiliate** section under **Actions** and select **Add Leads Under an Affiliate**.

This connects your workflow to the Affiliate Manager system, enabling leads to be added under a specific affiliate campaign and affiliate.

After selecting this action, it appears in your workflow builder, ready for configuration.

![Select the Action Type (image 3 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057426311/original/Jw2a3lv7PbtA1rd8EBTsEUo8SlX60gle3w.jpeg)

**Select the Action Type (image 3 of 6)**

This screenshot appears in the "Select the Action Type" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: After selecting this action, it appears in your workflow builder, ready for configuration. Immediately after, the guide continues: Choose Manual Assignment when you want to directly assign a lead to a specific affiliate and campaign.
- What this covers: After selecting this action, it appears in your workflow builder, ready for configuration.
- Next: Choose Manual Assignment when you want to directly assign a lead to a specific affiliate and campaign.

### **Choose Manual Assignment**

Choose **Manual Assignment** when you want to directly assign a lead to a specific affiliate and campaign.

This is ideal for fixed lead routing, internal workflows, or cases where affiliate assignments are predetermined.

In this configuration:

-   Select **Manual** under Choose Action Mapping.
-   Pick an affiliate **Campaign** from the dropdown list.
-   Once a campaign is chosen, the system displays affiliates linked to that campaign.
-   Select the desired **Affiliate** from the list.
-   Save the configuration.

This ensures all new leads entering this workflow are automatically assigned to the chosen affiliate.

![Choose Manual Assignment (image 4 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057426391/original/LZ5YcEpMsdXR_uen_vf_qQ3GPNWvF3Vb5Q.jpeg)

**Choose Manual Assignment (image 4 of 6)**

This screenshot appears in the "Choose Manual Assignment" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: This ensures all new leads entering this workflow are automatically assigned to the chosen affiliate. Immediately after, the guide continues: The Auto-Track Affiliate via Attribution method automatically assigns leads to affiliates based on tracking links containing an affiliate ID (am_id).
- What this covers: This ensures all new leads entering this workflow are automatically assigned to the chosen affiliate.
- Controls: Manual Assignment, Manual, Campaign, Affiliate
- Next: The Auto-Track Affiliate via Attribution method automatically assigns leads to affiliates based on tracking links containing an affiliate ID (am_id).

Full procedure:

1. Select Manual under Choose Action Mapping.
2. Pick an affiliate Campaign from the dropdown list.
3. Once a campaign is chosen, the system displays affiliates linked to that campaign.
4. Select the desired Affiliate from the list.
5. Save the configuration.

### **Configure Auto-Track via Attribution**

The **Auto-Track Affiliate via Attribution** method automatically assigns leads to affiliates based on tracking links containing an affiliate ID (am\_id).

This is best for automated setups where affiliate links are used to drive traffic.

Here’s how it works:

-   Select **Auto-Track Affiliate via Attribution** under _Choose Action Mapping._
    
-   Choose the **Attribution Source**:
    
    -   **First Attribution:** Credits the first affiliate who referred the contact.
        
    -   **Latest Attribution:** Credits the most recent affiliate interaction.
        
-   Save your configuration.
    

When leads arrive through affiliate URLs (e.g., https://yourdomain.com/?am\_id=1234), GHL Customer Care captures that ID and automatically credits the correct affiliate.

![Configure Auto-Track via Attribution (image 5 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057426453/original/zpQh8LCaLbSn9UNAqQZFcTUhODFd671Dlw.jpeg)

**Configure Auto-Track via Attribution (image 5 of 6)**

This screenshot appears in the "Configure Auto-Track via Attribution" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: When leads arrive through affiliate URLs (e.g., https://yourdomain.com/?am_id=1234), GHL Customer Care captures that ID and automatically credits the correct affiliate. Immediately after, the guide continues: Use Custom Mapping to dynamically assign affiliates using data stored in custom fields or workflow variables.
- What this covers: When leads arrive through affiliate URLs (e.g., https://yourdomain.com/?am_id=1234), GHL Customer Care captures that ID and automatically credits the correct affiliate.
- Controls: Auto-Track Affiliate via Attribution, Attribution Source
- Next: Use Custom Mapping to dynamically assign affiliates using data stored in custom fields or workflow variables.

Full procedure:

1. Select Auto-Track Affiliate via Attribution under Choose Action Mapping.
2. Choose the Attribution Source:
3. Save your configuration.

### **Configure Custom Mapping**

Use **Custom Mapping** to dynamically assign affiliates using data stored in custom fields or workflow variables.

This method is ideal for API integrations or external systems where affiliate data is passed dynamically rather than through tracking links.

To configure:

-   Choose **Custom Mapping** under _Choose Action Mapping._
    
-   Enter the mapping source:
    
    -   Use a **custom field** (e.g., {{contact.custom\_field.am\_id}})
        
    -   Or a **workflow variable** (e.g., {{workflow.am\_id}})
        
-   The system matches the affiliate ID to the correct affiliate record and assigns the lead automatically.
    

This setup gives you maximum flexibility for advanced routing or integrated affiliate data flows.

![Configure Custom Mapping (image 6 of 6)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155057426494/original/hc3hXwhgX4T05iQnW_NmKWNptjBvxE8tKQ.jpeg)

**Configure Custom Mapping (image 6 of 6)**

This screenshot appears in the "Configure Custom Mapping" section of "Workflow Action - Add Leads Under an Affiliate". The text alongside this image reads: This setup gives you maximum flexibility for advanced routing or integrated affiliate data flows. Immediately after, the guide continues: Before activating, test your setup to ensure that affiliates are being assigned correctly. Testing confirms that your triggers, campaign selection, mapping logic, and attribution all function as intended.
- What this covers: This setup gives you maximum flexibility for advanced routing or integrated affiliate data flows.
- Next: Before activating, test your setup to ensure that affiliates are being assigned correctly. Testing confirms that your triggers, campaign selection, mapping logic, and attribution all function as intended.

### **Test and Publish Your Workflow**

Before activating, test your setup to ensure that affiliates are being assigned correctly. Testing confirms that your triggers, campaign selection, mapping logic, and attribution all function as intended.

Steps to finalize:

1.  Click **Test Workflow** in the top-right corner to simulate lead entry.
    
2.  Review the **Execution Logs** to verify successful affiliate assignment.
    
3.  Once confirmed, toggle from **Draft** to **Publish** to activate your workflow.
    

Your workflow is now live and ready to automatically assign leads to affiliates using your chosen configuration method.

---

## **Frequently Asked Questions**

**Q:** **What happens if no matching affiliate is found for an am\_id?**

The workflow will complete without assigning the lead. Verify that the am\_id corresponds to an existing affiliate in your campaign.

**Q:** **Can I manually override an automatically assigned affiliate?**

Yes. You can manually reassign affiliates from within the Affiliate Manager if a correction is needed.

**Q: Does this action require a sale or reward to work?**

No. You can assign a lead under an affiliate even if no reward or dollar amount is involved. Rewards or commissions are only applied when a qualifying purchase or conversion is made through the affiliate’s link.

**Q:** **How is “First Attribution” different from “Latest Attribution”?**

“First Attribution” credits the initial referrer, while “Latest Attribution” credits the most recent one before conversion.

**Q:** **Can I assign multiple affiliates to one lead?**

No. A lead can be assigned to only one affiliate per campaign to maintain accurate tracking.

**Q:** **How can I test this workflow before activating it?**

Use the **Test Workflow** feature with sample data to ensure correct assignment before publishing.

---

Documentation for GHL Customer Care. Support: support@ghlcustomercare.com