# Workflow Contact Attribution Variables

If you are using dynamic number swapping or call tracking (using a number pool), you may want to be able to determine if a lead found its way to you via an organic social media search, a paid Google ad, or another source. Within a Workflow, you can use several different contact attribution variables for both first and last attribution, to customize your Workflow actions.

There are many ways you can take advantage of this feature. In this example, we’ll show you how you can use an incoming call with contact attribution to determine how the call came into our software, and what you want to do with that information.

**Step 1: Create The Workflow Trigger**

* Set up a Workflow Trigger as an “Incoming Call”
* Choose Call Status and Filter Call Direction as “Incoming”
* Save the Trigger.

{% embed url="https://lh6.googleusercontent.com/KQTLVqq_9SP4hTAeyYSh8SRz1tP4lPOvrhoRoMEpDM8b1k9U_XloIAa9nAp_30aUBKKSWI20BScnReaoTuCVLeorPyVupY-3cJv3zlImanJS2b_76Hlawc--7PT33DpgXi6TryaLnNAN1voBG9J4oDw" %}

**Step 2: Add a Workflow Action for the If/Else Condition**

{% embed url="https://lh6.googleusercontent.com/ktMdA0ntWP043Nw769m-HUb6LNUVs_wkxERTZMo8iLODb7dPBuwcN9DMhdmAF_RRz56LceQkoXwnZ7AqI8U2wVUrhF0Zau40aq5Zl0Df-DoXyE63MkCTS47wagcrka35bFRj8Tohc4AaPKrP8lCBf5A" %}

* Choose the Contact’s first or last attribution (how they originally or most recently engaged with our software. Add “Is > Paid Search”
  * _**NOTE:**_ There are several options to choose from for “Contact First Attribution” and “Contact Last Attribution”. Be sure to scroll down through them all to find the best option for your specific situation.

{% embed url="https://lh5.googleusercontent.com/x394dgT2C2n34PBYA_-797JeXcoQGlmRA3ga0BokzddMiZwqCTlnZmzZkNIqcJ-bTYP6XEyP2qnDNTN71QIMjcM_vbK5bCFTaMNTN5CJhcu-jAC5rbf9qAhbhGi2QPBen1ZjLxi6OSbLnnctS0PgSZw" %}

* Save the condition.

**Step 3: Add a Google Adwords Action**

{% embed url="https://lh3.googleusercontent.com/q0CKFsPR6lwXu-4QwyHC--9kFcqlxBc65bcxUZSAZfcje4NsP06IOD8CaKrX7dT0Ae70_i53d62BcpZuLe0jltcSBI605YPV-SzwDaP6fx_TOajIgyZMqLjBYAG4_sPEWQ8a6-iAvGMeW88jp3cM26k" %}

* Under the “Yes” path (meaning it IS from a Google ad), you can add too Google Adwords for reporting purposes.
* Add any additional actions for both paths, and save your Workflow.
* Toggle it from Draft to Published mode in order for it to function.
