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

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

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