# Workflow Action - Add Leads under an Affiliate

> What it does The "Add Leads under an Affiliate" action assigns a contact (lead) to an affiliate and their associated campaign, making sure affiliates are…

- Source: https://docs.ghlcustomercare.com/docs/workflows/workflow-builder/workflow-action-add-leads-under-an-affiliate
- Section: Workflows / Workflow Builder
- Reading time: 1 min
- Images: 3, each explained below

---
### **What it does**

The "Add Leads under an Affiliate" action assigns a contact (lead) to an affiliate and their associated campaign, making sure affiliates are correctly credited.

You can now choose from three assignment methods for total flexibility.

**TABLE OF CONTENTS**

-   [What it does](#what-it-does)
-   [How to Use It](#how-to-use-it)
-   [Assignment Methods](#assignment-methods)

---

### **How to Use It**

1.  In your workflow, add the action: `**Add Leads under an Affiliate**`
    
2.  Choose your assignment method:
    
    -   **Manual**
        
    -   **Auto (Attribution)**
        
    -   **Custom Mapping**
        
3.  Configure additional fields based on the method
    
4.  Save and publish the workflow
    

### **Assignment Methods**

1\. Manual : Manually assign a lead to a known affiliate in a specific campaign.  
**Best for:** Form submissions, internal routing, admin decisions.

**Steps:**

-   Select campaign
-   Select affiliate (from affiliates in that campaign)
    
    
![Step 2 of 2: Select affiliate (from affiliates in that campaign)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155051076579/original/zf9NeSIstbZrgaKC3kFkK7sZO1-uHeZmgQ.jpeg)

**Step 2 of 2: Select affiliate (from affiliates in that campaign)**

This screenshot accompanies step 2 of 2 in the "Assignment Methods" section of "Workflow Action - Add Leads under an Affiliate". At this point in the walkthrough you select affiliate (from affiliates in that campaign).
- What to choose: Select affiliate (from affiliates in that campaign)
- Controls: URL parameters, first, last click, custom field

Full procedure:

1. Select campaign
2. Select affiliate (from affiliates in that campaign)  <- this image

    

2\. Auto (Attribution via URL) : Automatically assign leads using `am_id` passed in the **URL parameters**.  
Supports **first** or **last click** attribution.

**Steps:**

-   Choose Attribution Method: First / Last
-   Make sure `am_id` is passed earlier in the funnel (e.g., form/page URL)
    
    
![Step 2 of 2: Make sure am_id is passed earlier in the funnel (e.g., form/page URL)](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155051076580/original/63YI_YvbtgPN_nWrRSsPLBAqqOBx6Bdw4A.jpeg)

**Step 2 of 2: Make sure am_id is passed earlier in the funnel (e.g., form/page URL)**

This screenshot accompanies step 2 of 2 in the "Assignment Methods" section of "Workflow Action - Add Leads under an Affiliate". At this point in the walkthrough you make sure am_id is passed earlier in the funnel (e.g., form/page URL).
- What this covers: Make sure am_id is passed earlier in the funnel (e.g., form/page URL)
- Controls: URL parameters, first, last click, custom field

Full procedure:

1. Choose Attribution Method: First / Last
2. Make sure am_id is passed earlier in the funnel (e.g., form/page URL)  <- this image

    

3\. Custom Mapping : Use if `am_id` is stored in a **custom field** or passed as a workflow value.  
**Best for:** API pushes, third-party systems, hidden fields on forms.

**Steps:**

-   Choose mapping source: custom field or workflow value
-   System reads value and assigns the lead to the matching affiliate
    
    
![Step 2 of 2: System reads value and assigns the lead to the matching affiliate](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155051076581/original/dAQymuHR9BhRgNu6cyn3hx96MgmIXtnDXw.jpeg)

**Step 2 of 2: System reads value and assigns the lead to the matching affiliate**

This screenshot accompanies step 2 of 2 in the "Assignment Methods" section of "Workflow Action - Add Leads under an Affiliate". At this point in the walkthrough you system reads value and assigns the lead to the matching affiliate.
- What this covers: System reads value and assigns the lead to the matching affiliate
- Controls: URL parameters, first, last click, custom field

Full procedure:

1. Choose mapping source: custom field or workflow value
2. System reads value and assigns the lead to the matching affiliate  <- this image

---

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