> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Developer

> Generate specific business rules or code expressions from natural language prompts, without manual coding.

export const release_0 = "5.10"

## Overview

The AI Developer is an intelligent agent that transforms natural language descriptions into functional code. It helps developers generate business rules, JavaScript expressions, and test data without requiring manual coding. The agent can also edit existing code, provide explanations, and translate between programming languages, significantly accelerating the development process.

<Frame>
  <video controls className="w-full aspect-video" src="https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/470/ai-developer.mp4" autoPlay muted loop />
</Frame>

***

## Key capabilities

The AI Developer offers two main categories of capabilities:

### Generate new code

<CardGroup cols={2}>
  <Card title="Generate Business Rule" icon="code">
    Transforms natural language descriptions into code using the data model as context. Supports JavaScript, Python, and MVEL. Produces clean, functional business rule code based on text prompts.
  </Card>

  <Card title="Generate Business Rule from Document" icon="file-code">
    Extracts business rule definitions from uploaded documents. Identifies relevant text on each page that describes business rules, summarizes and presents the information to users in a dropdown, and generates corresponding code based on the selected rule description.
  </Card>

  <Card title="Generate (un)Hide JavaScript Expression" icon="eye-slash">
    Creates JavaScript expressions for conditional visibility of elements. Uses the data model as context for proper variable references.
  </Card>

  <Card title="Generate Computed JavaScript Expression" icon="calculator">
    Produces JavaScript code for calculated or derived values. Uses the data model to ensure proper variable referencing.
  </Card>

  <Card title="Generate Custom Component" icon="code-branch">
    Generates a React Custom Component bundle (JSX, CSS, `package.json`, and sample input data) from a natural-language description. A sample input field lets you supply preview data so the generated component renders meaningfully on first run.
  </Card>
</CardGroup>

### Edit existing code

<CardGroup cols={2}>
  <Card title="Edit Existing Business Rule" icon="pen-to-square">
    Modifies existing code based on natural language instructions. Uses the data model as context for accurate updates.
  </Card>

  <Card title="Edit Custom Component" icon="wand-magic-sparkles">
    Iterates on an existing Custom Component bundle through the same conversation. The agent keeps the component context across turns and updates JSX, CSS, `package.json`, or sample input data as requested.
  </Card>

  <Card title="Fix / Explain Code" icon="wrench">
    Fixes errors in business rules based on error logs. Provides clear explanations of what the code does.
  </Card>

  <Card title="Translate Code Between Languages" icon="language">
    Converts business rules from one language to another. Maintains functionality while adapting to language-specific syntax.
  </Card>
</CardGroup>

### Generate workflow script-node code

<Badge color="blue" icon="cloud">SaaS · {release_0}</Badge>

<Info>
  **Available on SaaS with FlowX.AI {release_0}.** This feature is live on managed (SaaS) deployments now. Self-hosted deployments receive it with the next LTS release.
</Info>

In the workflow designer, a **Script node** can call AI Developer to generate or refactor its code from a natural-language prompt. The generated code streams into the node's test area for a **Keep** or **Discard** review, with edits shown as a diff. It supports **JavaScript** and **Python**, and respects the same AI Developer permissions as the rest of the agent. To regenerate from scratch, clear the code first; configuration-parameter values are never sent to the model.

### Project data model awareness

<Info>
  **Available starting with FlowX.AI 5.9.2**

  The AI Developer receives your project's data model as context when generating or editing business rules, hide/unhide expressions, and computed expressions.
</Info>

Generated code references the data-model keys that already exist in your project. When the requested logic needs keys that are not in the data model yet, the agent proposes data-model changes alongside the code: new keys to create and existing project data types to instantiate. The proposed changes are presented for review, so you decide whether to add them to the data model before using the generated code.

***

## How to use

The AI Developer is accessible through the FlowX.AI Platform interface. You can:

<Steps>
  <Step title="Select the desired capability">
    Choose the capability you need from the AI Developer section.
  </Step>

  <Step title="Provide instructions or upload documents">
    Provide natural language instructions or upload relevant documents.
  </Step>

  <Step title="Specify programming language preferences">
    Specify programming language preferences when applicable.
  </Step>

  <Step title="Review and implement the generated code">
    Review the generated code and implement it in your process.
  </Step>
</Steps>

For document-based generation, you can upload documents, view extracted rule descriptions in a dropdown, select the rule you want to generate, and receive the corresponding code.

***

## How it works

The AI Developer architecture integrates large language models with the FlowX.AI Platform to convert natural language to code.

```mermaid theme={"dark"}
%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#f1774a',
      'primaryTextColor': '#000',
      'primaryBorderColor': '#000',
      'lineColor': '#6b6b6b',
      'secondaryColor': '#f3b861',
      'tertiaryColor': '#000'
    }
  }
}%%
graph TD;
    Start([Start]):::primary

    subgraph Document_intelligence [Document intelligence]
        Classify_Document[Classify Document]:::secondary
        Summarize[Summarize]:::secondary
        Identify_process[Identify process]:::secondary
        Extract_Prompt[Extract Prompt]:::secondary
    end

    Generate_Business_rule[Generate Business rule]:::secondary
    END([END]):::primary

    Start --> Document_intelligence;
    Document_intelligence --> Generate_Business_rule;
    Generate_Business_rule --> END;

    %% Styling
    classDef primary fill:#f1774a,stroke:#000,stroke-width:1px,color:#000;
    classDef secondary fill:#f3b861,stroke:#000,stroke-width:1px,color:#000;
```

***

## Best practices

### ✅ DO the following

<Card icon="square-check" color="green" horizontal="true">
  **Be specific with your requirements:**
  Clearly state what the business rule should accomplish, including conditions, actions, and expected outcomes.
</Card>

<Card icon="square-check" color="green" horizontal="true">
  **Reference data model elements:**
  Mention specific data fields or entities that the code should interact with to ensure proper context.
</Card>

<Card icon="square-check" color="green" horizontal="true">
  **Specify the programming language:**
  Always indicate whether you need JavaScript, Python, or another supported language for your code generation.
</Card>

<Card icon="square-check" color="green" horizontal="true">
  **Provide edge cases:**
  Mention special conditions or exceptions that the business rule should handle to ensure reliable code.
</Card>

### ⛔ **DON'T** do these

<Card icon="ban" color="red" horizontal="true">
  **Don't be vague:**
  Avoid ambiguous descriptions that can lead to incorrect implementation. Be precise about the logic you need.
</Card>

<Card icon="ban" color="red" horizontal="true">
  **Don't reference external systems:**
  The AI Developer has no knowledge of external systems not defined in the provided context.
</Card>

<Card icon="ban" color="red" horizontal="true">
  **Don't skip defining variables:**
  Make sure to define all variables or data fields that your business rule will use.
</Card>

<Card icon="ban" color="red" horizontal="true">
  **Don't expect platform-specific knowledge:**
  The agent doesn't know about keys or information not defined in the data model or provided context.
</Card>

***

## Related resources

<CardGroup cols={2}>
  <Card title="Agent Builder" icon="robot" href="../agent-builder/overview">
    Build and configure custom AI agents for your business needs
  </Card>

  <Card title="AI Analyst" icon="magnifying-glass-chart" href="./ai-analyst">
    Generate process definitions and data models from natural language descriptions
  </Card>

  <Card title="AI Designer" icon="paintbrush" href="./ai-designer">
    Automatically generate UI components and screen layouts from process definitions
  </Card>
</CardGroup>


## Related topics

- [FlowX.AI 5.10.0 Release Notes](/release-notes/v5.x/v5.10.0-july-2026/v5.10.0-july-2026.md)
- [FlowX.AI 5.8.0 Release Notes](/release-notes/v5.x/v5.8.0-may-2026/v5.8.0-may-2026.md)
- [FlowX.AI 5.9.0 Release Notes](/release-notes/v5.x/v5.9.0-june-2026/v5.9.0-june-2026.md)
- [AI Designer](/5.9/ai-platform/pre-built-agents/ai-designer.md)
- [FlowX.AI architecture](/5.9/docs/platform-overview/flowx-architecture.md)
