> For the complete documentation index, see [llms.txt](https://ajuda.toplojas.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.toplojas.com.br/departamentos/cadastrando-departamento.md).

# Cadastrando Departamentos

Para este exemplo iremos criar uma estrutura de departamentos com a seguinte disposição:

> * Informática
>   * Notebook
>   * Desktop

Antes iremos criar o departamento "**Pai**" chamado "**Informática**", para isto, clique em "**Produtos -> Departamentos"** e após clique em "**Cadastrar**":

![](/files/-M8gVBjW_N98asrg4MuJ)

No campo "**Departamento Pai**" selecione "**Departamento Raiz**", isto indica ao sistema que este é o departamento principal.

No campo campo "**Nome**" preencha com "**Informática**":

![](/files/-M8gVvsYTRQ5ryl_4Yib)

Clique em "**Cadastrar Departamento**" no final da página.

Agora já temos o departamento principal, iremos criar os **dois sub-departamentos**.

Acesse o cadastro de departamentos, no campo "**Departamento Pai**" selecione "**Informática**" e no campo "**Nome**" preencha com "**Notebook**":

![](/files/-M8gWHWGVuutXXxltFyM)

Faça a mesma coisa para o sub-departamento "**Desktop**":

![](/files/-M8gWRsfQOdnihXlbndE)

**Pronto!** Criamos um departamento principal e dois sub-departamentos.

**Vamos ver como fica no site:**

![](/files/-M8gWhBOU9xUXMpwX1XG)


---

# 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:

```
GET https://ajuda.toplojas.com.br/departamentos/cadastrando-departamento.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.
