Source: https://support.atomicwork.com/product/enterprise-workflows/legacy-workflows/data-pills-in-workflow-actions

# Data pills in workflow actions

> [!NOTE]
>
> This page applies only to legacy workflows, which were built earlier in the classic builder and are marked with the legacy workflow icon. It doesn't apply to workflows built with Service Assist. For those, see [Build workflows with Service Assist](/product/enterprise-workflows/get-started/build-workflows-with-ai-assist).

As anyone who has tried to automate a workflow will tell you, the really tough part is chaining actions so that the actions performed by different workflows (aka the "output") trigger and feed into other workflows.

You can "feed" the output of one action in a workflow into a later action, so you can complete many steps in one go. We call this output a **data pill**.

Outputs from earlier actions, such as app actions, HTTP requests, code and AI classification, are available to the actions that come after them.

For example, let's say you're setting up a workflow to automate new hire onboarding.

- The HR team will log a request.

- A workflow to take the data in this request and automatically create a new Azure AD account for them _(an action)_

- You can use the data pill from the previous action to add them to the relevant Azure AD groups so they can access all the tools they need. This way, the second action only works when the first workflow action succeeds, so only the right data is added.

## How to setup input-output actions

![Screenshot 2024-02-06 at 7.09.13 PM](assets/14-data-pills-in-workflow-actions-01.png)

- Go to **Automations > Workflow library**.

- [Create a new workflow](/product/enterprise-workflows/get-started/workflows-101) or click the workflow you want to edit.

- Click **Add action**.

- Set up an Azure AD action.

- When you set up the next action, click a field to open **Insert placeholder**. The outputs of earlier actions are listed under **Previous action outputs**, and you can use them as placeholders in this action.
  ​
  ​
