> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeev/customizacoes/customizacoes-de-formulario/customizacao-com-a-zai.md). Agents can also search and read this documentation through its [MCP server](https://kb.stoque.com.br/~gitbook/mcp).

# Customização com a Zai

A Zai te apoia no desenvolvimento de Scripts JS e CSS.

As customizações no Zeev permitem que você estenda as funcionalidades nativas da plataforma por meio de scripts de servidor ou de interface. Para facilitar essa etapa de configuração técnica, a **Zai** agora auxilia na geração de códigos e lógicas de automação diretamente no modelador.

#### **Como funciona a assistência da Zai**

A Zai utiliza processamento de linguagem natural para interpretar os requisitos do seu processo e sugerir scripts compatíveis com a arquitetura do Zeev. Em vez de iniciar um script do zero, você descreve a regra de negócio que deseja aplicar, e a inteligência gera a estrutura lógica correspondente.

<figure><img src="https://3371003943-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MD66pBdRalAQgnhNstG%2Fuploads%2F9cjCLeiqpfXFa7orSqDY%2Fimage.png?alt=media&amp;token=bc303350-e9ae-48a2-8000-2fa593b69129" alt=""><figcaption></figcaption></figure>

#### **Passo a passo para utilizar a assistência**

1. **Acesse o editor de scripts:** no formulário do processo que exige customização, abra a área de edição de código.
2. **Solicite à Zai:** use o campo de interação para descrever o que o script deve fazer (Ex: *"Crie um script que valide se a data de vencimento é maior que a data atual"*).
3. **Revise e valide:** a Zai apresentará uma sugestão de código. É fundamental que você revise a lógica, verifique se os nomes das variáveis (ID dos campos) estão corretos e realize os testes.
4. **Aplique e salve:** após os ajustes necessários, copie e cole o script no editor de código.

### **Exemplo Prático**&#x20;

No vídeo de demonstração abaixo, apresentamos o fluxo completo: desde o comando inicial em linguagem natural até a aplicação do script funcional e o teste de execução.

{% embed url="<https://www.youtube.com/watch?v=Z8Pq3u7hrs4>" %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.stoque.com.br/zeev/customizacoes/customizacoes-de-formulario/customizacao-com-a-zai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
