# How to create user role specific campaigns in WPLoyalty ?

WPLoyalty allows you to assign Points / Rewards to different user roles. We can reward a customer by creating a campaign for a specific user role or we can reward different Points/ Rewards for different User roles.&#x20;

{% hint style="info" %}
*NOTE:  WordPress provides a concept called user roles. You can use plugins like* [*User Role Editor*](https://wordpress.org/plugins/user-role-editor/) *to create any number of roles and assign users to those roles. For Example: Wholesale*

*If you have not assigned your users to any roles, you might want to consider assigning your wholesale customers to a user role for example.*&#x20;
{% endhint %}

Now, let's see how to create Campaigns for specific user roles.

**Example scenarios:**&#x20;

* Get 100 Points for Wholesale User roles while spending $100 or more
* Get 50 Points for Customer User roles while spending $100 or more.&#x20;

### **Creating a campaign:**&#x20;

**Scenario 1:** Providing 100 Points for **Wholesale** User roles while spending $100 or more

[Click here to know about the step by step procedure for how to create reward based on spending campaign.](/campaign-types/reward-for-spending.md)

Now, in the **Reward Based on Spending** Campaign , we have to add additional condition as "User role ".  For example: Wholesale

**Creating a Reward Based on Spending Campaign 1:**&#x20;

<figure><img src="/files/nL8K3KPATCOnY24y0GwZ" alt=""><figcaption></figcaption></figure>

**Cart page of Wholesale User:**&#x20;

<figure><img src="/files/Ee8xLQuYR7lhjVXw8Lsy" alt=""><figcaption></figcaption></figure>

So, if a Wholesale customer spends minimum of $100, then he will earn 100 points for that order.&#x20;

**Scenario 2:** Providing 50 Points for "**Customer"** User role while spending $100 or more.&#x20;

**Creating a Reward Based on Spending Campaign 2:**&#x20;

<figure><img src="/files/B42xNbGcpJGMD4kWQyAk" alt=""><figcaption></figcaption></figure>

**Cart page of Customer:**&#x20;

<figure><img src="/files/rk3mj89vZk3IHqPJFnCv" alt=""><figcaption></figcaption></figure>

So if a user is logged in as "Customer" and spends minimum of $100, he will earn 50 Points for that order.&#x20;

**Video:**&#x20;

{% embed url="<https://youtu.be/b7L6Q-r3cmI>" %}

**Note:**

Customer will get points/rewards only when they belongs to specific user role as per given condition.&#x20;

Likewise, you can create Campaign for specific user roles.&#x20;

Still unclear ?\
Please submit a [support request](https://wployalty.net/support/). We are always happy to assist you :)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wployalty.net/guides/how-to-create-user-role-specific-campaigns-in-wployalty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
