> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/modules/logic-editor/ai-logic-generation.md).

# AI Logic Generation

## AI Logic Generation (Beta)

The **Logic Editor's** **AI Generator** may be in *beta*, but it still promises to transform the user's workflow. With the 2024.1 release, the **AI Logic Generation** tool gives more relevant and complex output at a faster response speed.

![AI (beta).](/files/97QG6CX9is0Wd9XE9Aac)

### Open

There are several ways to open the `AI (beta)` section of the **Logic Editor**:

* Right-clicking in the **Logic Editor** and selecting `AI (beta)`.
* Right-clicking and scrolling up (one can switch between `Search` and `AI (beta)` in this manner as well).
* Right-clicking and using the right arrow.
* Pressing `Tab` and selecting, scrolling, or pressing the right arrow.
* Pressing `Shift + Tab`.
* Pressing `Shift + Right Click`

### Use

Once the user has successfully accessed `AI (beta)`, all they need to do is type their request into the prompt box and click `Generate`. The example demonstrated here is beyond the current capabilities of the **AI Generator**, but the process remains the same. Some current limitations can be referenced [here](#current-limitations).

![Example Request.](/files/tbUyKoctCE3VCbkngFCd)

This will result in an **AI Logic Group** and some associated **Attributes**.

![AI Logic Group Example.](/files/ncAFPy53QvX3bPp3f3Yo)

The above image shows **Logic Branches** made up of four **Nodes** which were created based on the example prompt.

It is possible to remove **Nodes** from the **AI Logic Group** if desired, or rewire their configuration. This allows the user further flexibility and creativity.

### Attributes

![AI Attributes.](/files/Muuem5knBciF6PikjEpI)

The main **Attributes** fall under the `AI` and `Rate` categories.

With `AI`, the user can see the prompt they inputted previously. `Reconfigure` generates a different **AI Logic Group** if the user was not initially satisfied with the original result. It is also possible to update the prompt in order to add or remove information.

When the user is finally pleased with the outcome, they can click `Apply`, which confirms the **AI Logic Group**, removes the dashed lines around it, and turns it into a regular **Logic Group**.

Under `Rate`, the user can give a rating for the result they are given. This helps our team at **Incari** pinpoint weak spots and improve the **AI Generator** for all users. Specific feedback can be given in the `Description` box. Simply click `Send` to submit.

## Result

Once the user clicks `Apply`, the **AI Logic Group** is confirmed and turned into a regular **Logic Group**.

![Example AI Logic Result.](/files/y8HYF1FW4rdcKoIPa5uv)

Here, the user can change the `Color` of the **Group**, its `Zindex`, and `Content Alpha`.

## Current Limitations

Since the **AI Generator** is still in its beta phase, there are a few issues the user should be aware of:

* `AI (beta)` currently cannot create **Node Attributes**.
* It has no awareness of **Data Types**.
* Occasionally, connections may be missing.
* Occasionally, the positioning of the resulting **Nodes** may be incorrect.
* The **AI Generator** has some difficulty dealing with abstract queries. It is suggested to use it only for simple requests for now.


---

# 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://docs.incari.com/incari-studio/modules/logic-editor/ai-logic-generation.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.
