# Assign a workflow to your campaign

## How to assign a workflow to a campaign

{% stepper %}
{% step %}

### Select the campaign you want to use

Go to **XFlow dashboard > Campaigns** and pick the campaign you want to assign a workflow to.

<figure><img src="/files/7e18fxZTTctsY96OC4cB" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Choose the type of workflow you want to use

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

The **Notifications workflows** section lets you assign specific workflows to different triggers and purposes. You can manage and assign both **Primary** and **Secondary** workflows depending on your automation needs.

* Primary workflow: The main required workflow for essential notifications.
* Secondary workflow: An optional workflow for additional automation or internal processes.

{% hint style="info" icon="star" %}
**Pro tip:**  Use secondary workflows for internal notifications or to send welcome emails for new signups.
{% endhint %}
{% endstep %}

{% step %}

### Select the workflow you’ve created and activate it

<figure><img src="/files/7FWipq3BHMQCNTj2Zhag" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Workflow assigned successfully 🎉

Don’t forget to save after assigning the workflow. Be sure to double-check everything to make sure it’s activated and set up correctly!

<figure><img src="/files/EeHRbb99FCIXkojRGELg" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Related articles

{% content-ref url="/pages/tebcwaMIILdhj9EY0qrJ" %}
[Create and launch a Restock campaign](/xflow-app/campaigns/create-and-launch-a-restock-campaign.md)
{% endcontent-ref %}

{% content-ref url="/pages/z6H5lR3v5JpGUipaem6x" %}
[How workflows work](/xflow-app/workflows/how-workflows-work.md)
{% endcontent-ref %}

{% content-ref url="/pages/NWmkFOfstlDd2472afEb" %}
[Create a workflow](/xflow-app/workflows/create-a-workflow.md)
{% endcontent-ref %}

{% content-ref url="/pages/3ajXS0dZtcdbezZlA3XI" %}
[Available triggers, actions, and conditions](/xflow-app/workflows/available-triggers-actions-and-conditions.md)
{% endcontent-ref %}

***

#### 📩 **Need help?**

We’re here to make your XFlow experience smooth and successful.\
Our support team is always ready to assist you—no matter how big or small your question is.

<a href="https://admin.shopify.com/apps/xflow?chat=true&#x26;utm_source=foxecom&#x26;utm_medium=help_center_xflow_assign_a_workflow_to_your_campaign&#x26;utm_campaign=cta_button&#x26;utm_term=chat_now" class="button primary" data-icon="comment-lines">Chat now</a> <a href="mailto:contact@help.xflow.so" class="button secondary" data-icon="envelopes">Message us</a>


---

# 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.foxecom.com/xflow-app/workflows/assign-a-workflow-to-your-campaign.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.
