> ## Documentation Index
> Fetch the complete documentation index at: https://docs.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# A Sample Workflow - Marketing Campaign Budget Approval

<div className="article_labels_list" style={{display: 'none'}} dangerouslySetInnerHTML={{__html: "has_image , End User , Overview , workflow , Relay , Automate process , Instructions , Collaboration Workflow , Article , New , Product Utilization , Box Relay , P5"}} />

Below is a sample Relay workflow that automates the process of reviewing and approving the budget for a marketing campaign. You can easily customize and apply this workflow to any process in your organization that involves a review-and-approval cycle and moving content between target folder locations.

In this example, the marketing team identifies the need for a marketing campaign and assembles a proposal. Then:

* A team member submits the proposal to marketing leadership for approval.
* Marketing leadership reviews and approves the proposal and sends it to finance for approval.
* Finance reviews and approves the proposal budget.
* The fully-approved proposal moves to an "approved” folder, and the marketing team can begin working on the campaign.

<Frame>
  <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-01-campaign-flow.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=9f0b5a137a480ca2e6796ddb3edf697a" alt="demo-01-campaign-flow-png" width="999" height="509" data-path="images/box-relay/demo-01-campaign-flow.png" />
</Frame>

Now let's build this workflow in Relay. Despite the seemingly large number of steps listed here, when you become comfortable with using Relay you can create a workflow such as this in a matter of minutes.

Starting things off: Establishing and naming a new workflow. To do this:

1. Open your Box**Files** page. In the lefthand navigation, click **Relay** to display the **Workflows** page.
2. Click **New Workflow**. The **Workflow Builder** page displays.
3. In the **Untitled Workflow** box, enter the name of the workflow – in this case, call it  ***Marketing Campaign Budget Approval***  .
4. In the **Add a description** box, enter text that clearly explains the intent of this workflow.

<Frame>
  <img src="https://mintcdn.com/product-docs/wPPHlIIMO3KGvQgK/images/box-relay/relay-sampleworkflowdescription-69726.png?fit=max&auto=format&n=wPPHlIIMO3KGvQgK&q=85&s=2e58e8ab76803033381441fe5dac6cef" alt="relay-sampleworkflowdescription-69726-png" width="438" height="281" data-path="images/box-relay/relay-sampleworkflowdescription-69726.png" />
</Frame>

Now specify the trigger – the event that starts off this workflow. To do this:

1. Under **What starts this workflow?** click **A File Event**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/relay-marketing-campaign-budget-approval-trigger-file-event.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=63de82989ce37680ff102c454d8e1423" alt="relay-marketing-campaign-budget-approval-trigger-file-event-png" width="1533" height="789" data-path="images/box-relay/relay-marketing-campaign-budget-approval-trigger-file-event.png" />
   </Frame>
2. Under **What type of file event?** click **New Upload**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/relay-marketing-campaign-budget-approval-trigger-file-event-new-upload.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=b584858fbf68bea8baccb599f3bb7a51" alt="relay-marketing-campaign-budget-approval-trigger-file-event-new-upload-png" width="781" height="911" data-path="images/box-relay/relay-marketing-campaign-budget-approval-trigger-file-event-new-upload.png" />
   </Frame>
3. Under **In what folder will this event occur?** click the box and then click **Select a folder from Box**. The **Select a folder to act on** box displays.

   <Frame>
     <img src="https://mintcdn.com/product-docs/72o8vyBxKgHlyFAJ/images/box-relay/select-a-folder.png?fit=max&auto=format&n=72o8vyBxKgHlyFAJ&q=85&s=657094a6054a95e5c6e7f76b277c2c0a" alt="select-a-folder-png" width="1306" height="240" data-path="images/box-relay/select-a-folder.png" />
   </Frame>
4. From the list of folders that displays, select **Marketing Campaign Proposals – REVIEW** and click **Select**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/wPPHlIIMO3KGvQgK/images/box-relay/relay-selected-folder.png?fit=max&auto=format&n=wPPHlIIMO3KGvQgK&q=85&s=0ae8735079c6a699909eca4a5e061a4f" alt="relay-selected-folder-png" width="600" height="109" data-path="images/box-relay/relay-selected-folder.png" />
   </Frame>

That's it. In just a few clicks, you’ve instructed Relay, if a file is uploaded to the **Marketing Campaign Proposals – REVIEW** folder, to immediately run the **Marketing Campaigns Budget Approval** workflow.

Now create the outcome you want to result from the trigger event. To do this:

1. Click **Add Metadata** in the **Outcome 1** box.

   <Frame>
     <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/outcome-1-add-metadata.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=7b0e96e11e817964be83d1bde9d28168" alt="outcome-1-add-metadata-png" width="1352" height="818" data-path="images/box-relay/outcome-1-add-metadata.png" />
   </Frame>
2. Click the **Select a file** box, then click **The file that triggered the flow**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/72o8vyBxKgHlyFAJ/images/box-relay/select-file-that-triggered-flow.png?fit=max&auto=format&n=72o8vyBxKgHlyFAJ&q=85&s=7c919e82b14249f03db2069dd95ec2b9" alt="select-file-that-triggered-flow-png" width="1351" height="1210" data-path="images/box-relay/select-file-that-triggered-flow.png" />
   </Frame>
3. Under **What metadata template would you like to apply?** click the box to display your list of metadata templates. Then click the template you want -- in this case, the **Marketing Campaign Details** template.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/add-metadata-template.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=ecefc74a51b939fdebcf169badc4387b" alt="add-metadata-template-png" width="1351" height="1396" data-path="images/box-relay/add-metadata-template.png" />
   </Frame>

This means Relay is automatically applying the metadata template to every file that is uploaded into the **Marketing Campaign Proposals – REVIEW** folder.

Now it's time to involve your first reviewer. To do this:

1. Click **+ Outcome**. The **Outcome 2** box displays.
   * Adding outcomes is how you can string together a long chain of events in a complex workflow.
2. Click **Assign a Task**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/wPPHlIIMO3KGvQgK/images/box-relay/relay-sampleworkflowassigntask-69726.png?fit=max&auto=format&n=wPPHlIIMO3KGvQgK&q=85&s=7df4faa859914a7cb85122f3bec2f67b" alt="relay-sampleworkflowassigntask-69726-png" width="999" height="372" data-path="images/box-relay/relay-sampleworkflowassigntask-69726.png" />
   </Frame>
3. Under **What type of task would you like to assign?** click **General Task**.
4. Under **What are the task details?** click the **Assignee(s)** box and begin typing in the name of the assignee you want. When their name displays, click the name.

   <Frame>
     <img src="https://mintcdn.com/product-docs/wPPHlIIMO3KGvQgK/images/box-relay/relay-sampleworkflowassignee-69726.png?fit=max&auto=format&n=wPPHlIIMO3KGvQgK&q=85&s=128ba20923a17d347e4651a8c0d464b1" alt="relay-sampleworkflowassignee-69726-png" width="834" height="638" data-path="images/box-relay/relay-sampleworkflowassignee-69726.png" />
   </Frame>
5. In the **Message** box, type in clear instructions for the assignee – in this case, to update the metadata values in the marketing template.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-17-outcome-2-task-assignee-message-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=a4f8959cb6a2892e6fdc67198767ef20" alt="demo-17-outcome-2-task-assignee-message-medium-png" width="605" height="655" data-path="images/box-relay/demo-17-outcome-2-task-assignee-message-medium.png" />
   </Frame>
6. Under **Assign the task to a file**, click the box and then click **The file that triggered the flow**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-18-outcome-2-related-file-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=3a016eae22d3df47932ea4a737752281" alt="demo-18-outcome-2-related-file-medium-png" width="600" height="656" data-path="images/box-relay/demo-18-outcome-2-related-file-medium.png" />
   </Frame>

Once again, this means that each time a file is uploaded to the folder you’ve specified, the person you’ve just assigned is alerted to update the metadata on that file. This is the beginning of your approval chain.

Now move the proposal further along your approval chain. To do this:

1. Click **+ Outcome**. The **Outcome 3** box displays.
2. Click **Assign a Task**.
3. Under **What type of task would you like to assign?** click **Approval Task**.
4. Under **What are the task details?** click the **Assignee(s)** box and begin typing in the name of the assignee you want. When their name displays, click the name.
5. In the **Message** box, type in clear instructions for the assignee – in this case, to review and approve the campaign proposal.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-19-alt-task-assignee-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=375bbcf3e64a89e8a138e017bb17c3e5" alt="demo-19-alt-task-assignee-medium-png" width="605" height="661" data-path="images/box-relay/demo-19-alt-task-assignee-medium.png" />
   </Frame>
6. Optionally, if this task is time-sensitive, provide a deadline. To do this, under **Time to complete**, type in the number of **Days** and/or the number of **Hours**. In this case, in the **Days** box, type 2 . In this case, if after two days the assignee has not approved this proposal, Relay changes the status of this workflow to **Overdue**, and notifies the assignee that the task is overdue.
7. Under **Assign the task to a file**, click the box and then click **The file that triggered the flow**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-20-take-2-time-and-related-file-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=701d7b2e047bdf0a8e49ba00a48457d3" alt="demo-20-take-2-time-and-related-file-medium-png" width="597" height="652" data-path="images/box-relay/demo-20-take-2-time-and-related-file-medium.png" />
   </Frame>

Now get Finance to approve the proposal. To do this:

1. Click **+ Outcome**. The **Outcome 4** box displays.
2. Click **Assign Task** > **Approval Task**, and as you’ve just done before, select an assignee, type in any relevant instructions and, optionally, a deadline, and identify the related file.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-21-outcome-4-all-filled-out-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=8ccf0867a67994e3e278c3ced64ec45c" alt="demo-21-outcome-4-all-filled-out-medium-png" width="605" height="658" data-path="images/box-relay/demo-21-outcome-4-all-filled-out-medium.png" />
   </Frame>

Now identify the last outcome – what should happen when the proposal receives its final approval.

1. Click **+ Outcome**. The **Outcome 5** box displays.
2. Under **What is the next action?** click **A File Action**.
3. Under **What type of file action?** click **Move**.
4. Under **What file should be moved?** click **The file that triggered the flow**.

   <Frame>
     <img src="https://mintcdn.com/product-docs/am8R3s1XSmI2sD3k/images/box-relay/demo-22-outcome-5-file-moved-medium.png?fit=max&auto=format&n=am8R3s1XSmI2sD3k&q=85&s=a9a7014ec511165a9463c0268b60bf40" alt="demo-22-outcome-5-file-moved-medium-png" width="602" height="630" data-path="images/box-relay/demo-22-outcome-5-file-moved-medium.png" />
   </Frame>
5. Under **Where should the file be moved to?** click the box, then click **Select a file from Box.**

   <Frame>
     <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/demo-23-outcome-5-where-file-moved-to-medium.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=63e42d194cfc6713e6b85dae68edabd5" alt="demo-23-outcome-5-where-file-moved-to-medium-png" width="602" height="630" data-path="images/box-relay/demo-23-outcome-5-where-file-moved-to-medium.png" />
   </Frame>
6. When the **Select a folder to act on** box displays, next to the folder you want, click the button and then click **Select**. You’ve just instructed Relay to upload the completely approved file to the Marketing Review folder.

<Frame>
  <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/demo-24-select-file-folder-to-act-on-medium.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=5da497836be89f2a71247f3dd315380c" alt="demo-24-select-file-folder-to-act-on-medium-png" width="484" height="448" data-path="images/box-relay/demo-24-select-file-folder-to-act-on-medium.png" />
</Frame>

For the entire time you're building your workflow, Relay displays the flow, in linear fashion, down the lefthand side of your screen. Here is the flow you've just completed:

<Frame>
  <img src="https://mintcdn.com/product-docs/wPPHlIIMO3KGvQgK/images/box-relay/relay-sampleworkflowflowcomplete-69726.png?fit=max&auto=format&n=wPPHlIIMO3KGvQgK&q=85&s=bb347040ff745d44e3e01794c2e11bf0" alt="relay-sampleworkflowflowcomplete-69726-png" width="316" height="594" data-path="images/box-relay/relay-sampleworkflowflowcomplete-69726.png" />
</Frame>

This at-a-glance view makes it easy for you to see what you're building, and identify whether it is in fact what you want or if you've made an error or omitted a step.

If the workflow matches what you are envisioning, you have one more choice to make. You can either:

* Save the workflow as a draft -- OR --
* Activate it.

To activate your workflow:

1. Click **Activate**.
2. Return to your **Workflows** page. The workflow you just created displays as orange (that is, active). Now the workflow runs each time someone drops a file into the designated folder.

<Frame>
  <img src="https://mintcdn.com/product-docs/GHR0BBqfXA3GlYyY/images/box-relay/demo-26-workflow-activated-medium.png?fit=max&auto=format&n=GHR0BBqfXA3GlYyY&q=85&s=4f227dc564f7e90fdc2a9b41f4694e04" alt="demo-26-workflow-activated-medium-png" width="999" height="247" data-path="images/box-relay/demo-26-workflow-activated-medium.png" />
</Frame>
