> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/scenarios/editing-scenarios/action-steps/create-object-step.md).

# Create object step

![](/files/-MVtxgxamygkLFWsiTAu)

**Create object** step allows you to create object or to make a link to existing object.

### General parameters

![](/files/-MVty3cWrRh8T1w5_ufk)

* Choose the data structure, whose object we are going to create.
* ID of new object
  * Automatic. The unique ID will be created automatically;
  * Manual. You can compose the expression for the ID> For example, it could be todays date, or a combination of other fields (e.g. `$D.md5('{{field1}}' + '{{field2}}')`)  Remember, that length of ID cannot exceed 32 characters.&#x20;
* Save ID to the field. Often necessary in case of automatic ID generation.
* Generating an event (see [event model](/scenarios/principles-of-scenarios/directual-event-model.md))&#x20;

{% hint style="info" %}
If there is an *existing object* with such an ID, no new object will be created. The link to the existing object will be saved to the field.
{% endhint %}

### Fields mapping

![](/files/-MVtzGDaCP1bnuysJDbV)

Fill the fields of new object. Similar to [edit object step](/scenarios/editing-scenarios/action-steps/edit-object-step.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://readme.directual.com/scenarios/editing-scenarios/action-steps/create-object-step.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
