# Sequences

> Sequences are the smallest type of project. They are suitable to linear processes as they enable you to go from one activity to another seamlessly, and act as a single block activity.

Sequences are the smallest type of project. They are suitable to linear processes as they enable you to go from one activity to another seamlessly, and act as a single block activity.

One of the key features of sequences is that they can be reused time and again, as a standalone automation or as part of a state machine or flowchart.

For example, you can create a sequence to take information from a `.pdf` file and add it to a spreadsheet, and reuse it in a different setting, while changing just a few properties.

Please take into consideration that whenever you wish to copy a large number of activities from one sequence to another, it is recommended to scroll down to the bottom of the Designer panel beforehand. This is due to a Windows Workflow Foundation limitation.

:::note
Sequences do not use connectors.
:::

## Example of a Sequence

To create a sequence that asks the user for their first and last name, and their hair color, and then displays their answers, do the following:

1. Create a blank process and, on the **Design** tab, in the **File** group, select **New &gt; Sequence**. The **New Sequence** window is displayed.
   :::note
   You can also add a [Sequence](https://docs.uipath.com/activities/docs/sequence) activity to the **Designer** panel to create a new sequence, or simply drag an activity from the **Activities** panel and Studio automatically adds a parent sequence to it.
   :::
2. In the **Name** field type a name for the automation, such as "First Sequence", and leave the default project location or add a subfolder. Click **Create**. The **Designer** panel is updated accordingly.
3. Create three **String** variables such as `FirstName`, `LastName`, and `HairColor`, so that you can store data from the user in them. Leave the **Default** field empty, to indicate that there is no default value.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-171724-d3cf6a9d.webp)
4. Drag three [Input Dialog](https://docs.uipath.com/activities/docs/input-dialog) activities to the **Designer** panel, one under the other.
5. Select the first **Input Dialog**. In the **Dialog Title** field add a custom **Title**, and in the **Input Label** field add a **Label** asking for the first name of the user.
6. In the **Value entered** field add the `FirstName` variable. This indicates that this variable is going to be updated with the value added by the user at this point.
7. Repeat steps 5 - 6 for the second and third **Input Dialog** activities to ask the user for his last name and hair color, and store them in the `LastName` and `HairColor` variables.
8. Add a [Message Box](https://docs.uipath.com/activities/docs/message-box) activity under the third **Input Dialog**.
9. Select the **Message Box** and, in the **Properties** panel, in the **Text** field, add the variables and a string to enable you to display all information gathered from the user, such as: 
`FirstName` + " " + `LastName` + " has " + `HairColor` + " hair."

   :::note
   Remember to add spaces between variables and within strings for an optimal output.
   :::

The final project should look as in the following screenshot.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-166504-40dab455.webp)
10. On the **Design** tab, in the **File** group, click **Run**. The automation is executed. The final output message should look as in the following screenshot.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-167593-6fb77399.webp)

[Download example](https://documentationexamplerepo.blob.core.windows.net/examples/Studio_v2022.10/FirstSequence.zip)
