# Sending campaigns

Depending on the use case, campaign administrators must set up different campaign triggers:

* **Manual**
* **Scheduled**
* **Remote action**
* **API**
* **Workflows**

These settings determine how you can send a campaign to employees.

{% hint style="info" %}
Only published campaigns are available to target employees.
{% endhint %}

## Campaign sending methods <a href="#triggeringcampaigns-triggeringacampaignmanually" id="triggeringcampaigns-triggeringacampaignmanually"></a>

### Sending a campaign manually <a href="#triggeringcampaigns-triggeringacampaignmanually" id="triggeringcampaigns-triggeringacampaignmanually"></a>

From the [Investigations](https://docs.nexthink.com/platform/user-guide/investigations) page, after running an [NQL investigation query](https://docs.nexthink.com/platform/user-guide/investigations/creating-investigations/nql-editor) listing **Users**:

1. Select a user or a set of users from the investigation results table.
2. **Execute actions** from the action bar at the bottom of the page. The **Select action** pop-up displays the list of available actions, including campaigns.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-9509ee76fa22aeacaaf2f15a7d5dbc3f3d172802%2FTriggering%20Camoaings_01.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Select the campaign and **Run on user(s)**.
   * The **Send campaign** pop-up displays the number of targeted employees. If the campaign has parameters, you must provide a value for each parameter before confirming **Yes, send to user(s).**
   * If all employees have a valid user SID, a validation message confirms the system has triggered the campaign.
   * If there is a mix of employees with valid or invalid SIDs, a warning message confirms that the system can only trigger the campaign for those employees with valid SIDs.
   * If all employees have an invalid SID, an error message confirms that the system cannot trigger the campaign.

#### Sending a campaign manually on VDI sessions <a href="#triggeringcampaigns-triggeringacampaignmanually" id="triggeringcampaigns-triggeringacampaignmanually"></a>

If you are using VDI, run an investigation using the [NQL editor](https://docs.nexthink.com/platform/user-guide/investigations/creating-investigations/nql-editor) or [Visual editor](https://docs.nexthink.com/platform/user-guide/investigations/creating-investigations/visual-editor):

1. Query a list of **VDI sessions**.
2. Select one or multiple sessions from the investigation results table, and **Execute actions**—using the [action bar](https://docs.nexthink.com/platform/investigations/analyzing-investigations#visualeditor-actionbar).
3. Select the campaign of interest, identifiable by a chat icon, and run on the selected sessions.
   * Only [campaigns configured for VDI ](https://docs.nexthink.com/platform/user-guide/managing-campaigns/creating-campaigns#targeting-query)can run on sessions.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-76b97bcd011b9300c4ab81bd63d49a5a6b4255c0%2Fimage.png?alt=media" alt="Triggering a campaign manually on VDI sessions"><figcaption></figcaption></figure>

### Sending a scheduled campaign <a href="#triggeringcampaigns-triggeringascheduledcampaign" id="triggeringcampaigns-triggeringascheduledcampaign"></a>

Scheduled campaigns do not require manual triggering. Once the campaign is published, it is sent automatically according to the configuration defined in the **Schedule** tab.&#x20;

The system evaluates the defined NQL query based on the selected schedule and sends the campaign to the resulting employees.

Depending on the configured campaign retargeting rule, the query will be re-evaluated relative to the time it was first published, **daily** or **hourly.**

For more information on scheduling and reevaluation, refer to the [#campaign-scheduling](https://docs.nexthink.com/platform/user-guide/managing-campaigns/creating-campaigns/types-of-campaigns#campaign-scheduling "mention") documentation.

### Sending a remote action campaign <a href="#triggeringcampaigns-triggeringaremoteactioncampaign" id="triggeringcampaigns-triggeringaremoteactioncampaign"></a>

After a remote action campaign is published, add its NQL ID to the remote action’s scripts to trigger the campaign.

Refer to [#typesofcampaigns-targetevaluationandre-evaluation](https://docs.nexthink.com/platform/user-guide/managing-campaigns/creating-campaigns/types-of-campaigns#typesofcampaigns-targetevaluationandre-evaluation "mention") documentation.

### Sending a campaign using the API <a href="#triggeringcampaigns-triggeringacampaignusingtheapi" id="triggeringcampaigns-triggeringacampaignusingtheapi"></a>

Trigger campaigns using the Nexthink Campaigns API, which enables integrations with external applications.&#x20;

Refer to [developer.nexthink.com](https://developer.nexthink.com) for more information.

### Sending a campaign using a workflow <a href="#triggeringcampaigns-triggeringacampaignusingtheapi" id="triggeringcampaigns-triggeringacampaignusingtheapi"></a>

Trigger campaigns using the Nexthink Workflow API to notify employees about remediations that are taking place, or to prompt for permission or additional information that a workflow needs to continue running an automated remediation.

Refer to [#triggeringcampaigns-triggeringacampaignusingtheapi-1](https://docs.nexthink.com/platform/user-guide/managing-campaigns/creating-campaigns/types-of-campaigns#triggeringcampaigns-triggeringacampaignusingtheapi-1 "mention") for more information.

## Parametrized campaigns

Manual, API, and workflow campaigns can be parameterized. In such cases, users who trigger the campaign manually or systems that execute it via an API call must provide the required input values.&#x20;

Refer to [configuring-campaign-parameters](https://docs.nexthink.com/platform/user-guide/campaigns/managing-campaigns/creating-campaigns/configuring-campaign-parameters "mention")for more information.

***

RELATED TOPICS:

* [creating-campaigns](https://docs.nexthink.com/platform/user-guide/campaigns/managing-campaigns/creating-campaigns "mention")
* [types-of-campaigns](https://docs.nexthink.com/platform/user-guide/campaigns/managing-campaigns/creating-campaigns/types-of-campaigns "mention")
