# Create an Action

Actions are reusable data blocks (list of attributes for which data needs to be assigned). Specific data blocks (output file formats) are attached to an ‘Action’ which can be assigned to any Step. This makes replacing file formats, without impacting output generation, much easier to do.

Actions can be created manually, or will be created automatically if you create a scenario from the Data Blocks page (see 'Creating a Scenario' page for this).

To create an action, you must first have your data block for the output format uploaded via the 'Ingest Data' step, and the data block must be validated.  On the menu, select 'Actions' from the 'Projects' section of the menu.  In the bottom right corner, click the plus (+) sign to open the 'Create Action' window.  Enter a name for the action on the top line.  Remember that this name must end in 'action'.  (If you forget to do that, TDO will pop up an error message and ask if you want to add \_action to the end of the name you have provided.)

<figure><img src="/files/vwTZQ2kwtjuEjeJWCNyQ" alt=""><figcaption><p>Create Action window</p></figcaption></figure>

On the second line, click the blue pencil and select the data block that contains your desired format from the list of available data blocks.  Click 'Save' at the bottom of the window to add the data block to the action.  Only one data block can be added to an action.

<figure><img src="/files/F9EL7XtYb0SHsrrYQWYi" alt=""><figcaption><p>Data block selection list</p></figcaption></figure>

The next step is to click the 'Save' button in the 'Create Action' window to save your action.  In the screen print below, we have created two actions - one for the request message in the API under test, and one for validating the API response.

<figure><img src="/files/vSpXMxZE3Bh5tIJMThbQ" alt=""><figcaption><p>Actions window with list</p></figcaption></figure>


---

# 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.apica.io/platform-docs/test-data-orchestrator-tdo/user-documentation/tdo-project-builder-user-guide/create-an-action.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.
