> For the complete documentation index, see [llms.txt](https://ilumisoft.gitbook.io/visual-state-machine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilumisoft.gitbook.io/visual-state-machine/get-started/about-state-ids-and-renaming-states.md).

# About State IDs and Renaming States

Each state inside of a State Machine needs to have a unique ID assigned to it, which allows to identify it. You can use the ID of a state to access it via code in your scripts.  &#x20;

&#x20;

### How to Change the ID of a State&#x20;

1. You can assign your own IDs to states. First, select a state in the State Machine Graph window. In the Inspector select the ID field at the top and enter the ID you want to use. &#x20;

<figure><img src="https://3979764177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCgKLjperRFhHlR4O0p%2Fuploads%2FJvWcghYQYIjfYVIG1kOU%2Fimage.png?alt=media&amp;token=a8ce3690-2dc4-4b2e-8a56-614a5c01f3f1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Since each state needs to be identifiable inside of the State Machine by its ID, you cannot assign the same ID to multiple states.&#x20;
{% endhint %}
