# Creating a new dictionary

## Creating an artifact

The dictionary management mechanism is similar to the way request templates are managed. To create a new dictionary or edit an existing one, go to the module **Library** and select the tab **Dictionaries**. A new dictionary will be created after clicking the button **Add dictionary**. After setting its name and location, you can proceed with implementation.

The window of the newly added dictionary already has the language code "pl" defined:

![Figure 1. Window of the added dictionary](/files/cc9ab8966f95baf10cf7aee30ec83e85d845fd09)

## Adding rows in the dictionary

The next step is to enter dictionary values. Each dictionary value consists of a key and content. Adding a new value starts with defining the key by clicking the button **Add Key** located in the upper-right corner of the window. After the row appears, enter its value in the KEY column and the content in the language column field. Repeat these steps for each row in the dictionary.

![Figure 2. Adding a new value to the dictionary](/files/a7a2934a656e8b6a9e48b085a395dc18a63b7366)

## Adding a language

If there is a need to add content in languages other than Polish, simply click the button **Add Language** located in the upper-right corner of the window and enter the language code (in lowercase), then fill in the appropriate keys with content.

![Figure 3. Adding another language](/files/67910bc51fde0246b7b25cd79bc477e4317922b9)

## Importing values

Instead of creating a dictionary manually, you can import data into it from a CSV file (instructions: [CSV dictionary import](/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/slowniki/import-slownika-csv.md)).

## Order of items in the dictionary

{% hint style="info" %}
The order of items in the dictionary (and in the component retrieving values from it) can be changed using drag & drop. Values will always be displayed in the order in which they appear in the dictionary or in the order in which they are returned by the service.
{% endhint %}

## Attaching a dictionary to a component

The created dictionary can be used to create a selection list using a combobox or to populate a text field with dictionary values. Instructions for attaching it can be found here: [Attaching a dictionary data source](/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/zasilanie-wartosciami-z-zewnetrznych-zrodel/podpiecie-slownikowego-zrodla-danych.md).


---

# 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.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/slowniki/tworzenie-nowego-slownika.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.
