# Sequence

A **sequence** represents the succession in which activities are executed within the current state.

The top action from a sequence is executed the first, and once it is successfully executed, the robot moves to the next one; the bottom activity from a sequence is executed the last.

![](/files/-MfgBbhw71zB1fNbmauT)

TAP Studio addresses the complexity of “real life” automation projects through simplicity, therefore each sequence is a state of its own.

This is why you can not nest a sequence in another sequence.

{% embed url="<https://youtu.be/1cbEjjxvt7g>" %}

The article doesn't fully answer your question, or you want to find out more? Ask your question in the comments, on our community forum, or contact our support team or your account manager. Whatever works for you, your question will find its answer soon!&#x20;


---

# 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.tailent.com/actions/tap-actions/diagram/sequence.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.
