> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-ai/code-with-ai.md).

# Code with AI

The following section outlines the steps to generate code using IZ AI.

### New Code Generation

* Navigate to **`Code With AI`** -> **`Generate Code`**.
* Choose an **`Implementation Type`** based on your requirement:

| Implementation Type               | Description                                                                                                                                                        |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **`Generate Mule Application`**   | Generates a MuleSoft application based on the provided requirements, including flows, configurations, and integrations.                                            |
| **`Generate API Specification`**  | Automatically creates an API specification (RAML/OAS) with endpoints, request/response models, and sample payloads based on user input.                            |
| **`Implement API Specification`** | Generates backend logic and connectors for an existing API specification, with optional support for generating dependent APIs.                                     |
| **`IZ Eye Insights`**             | Provides insights and recommendations for application design, including generation of HLDs, LLDs, and related artifacts for applications on the Anypoint Platform. |
| **`IZ Scan Insights`**            | Offers insights and recommendations for applications scanned via SCM or local sources, including generation of HLDs and LLDs.                                      |

* Enter a name for the project and select the destination where it should be stored.
* Choose the Organization and provide the prompt required for code generation.
* After submission, you can view the code-generation progress and details under the **`Log Overview`** and **`Diagnostics`** tabs.

### Code Generation using Chat Bot

* Navigate to **`Code With AI`** -> **`AI Operations`**. All the tasks available in **`Automation Tasks`** will be available as part of the Chat Bot
* Enter the required prompt to perform appropriate actions. A an example is described below -
  * Prompt **`All Tasks`** -&#x20;
  * Choose the required task from the list of available **`Automation Tasks`**. Appropriate questions will be prompted based on the task selected. Platform where the generated code should be stored.&#x20;
  * Choose the organization&#x20;
  * Enter the prompt for the AI to generated the code&#x20;

### See Also

* [Automation Tasks](/product-guides/integral-zone/iz-suite/iz-ai/automation-tasks.md)
* [Automation Task Logs](/product-guides/integral-zone/iz-suite/iz-ai/automation-task-logs.md)


---

# 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://knowledgebase.autorabit.com/product-guides/integral-zone/iz-suite/iz-ai/code-with-ai.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.
