> ## 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 using natural language and automate the code necessary to implement them.

## Description

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>

## Capabilities

The AI Developer offers two main categories of capabilities:

### Generate New Code

1. **Generate Business Rule**
   * 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

2. **Generate Business Rule from Document**
   * 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
   * Generates corresponding code based on the selected rule description

3. **Generate (un)Hide JavaScript Expression**
   * Creates JavaScript expressions for conditional visibility of elements
   * Uses the data model as context for proper variable references

4. **Generate Computed JavaScript Expression**
   * Produces JavaScript code for calculated or derived values
   * Leverages the data model to ensure proper variable referencing

### Edit Existing Code

1. **Edit Existing Business Rule**
   * Modifies existing code based on natural language instructions
   * Uses the data model as context for accurate updates

2. **Fix / Explain Code**
   * Fixes errors in business rules based on error logs
   * Provides clear explanations of what the code does

3. **Translate Code Between Programming Languages**
   * Converts business rules from one language to another
   * Maintains functionality while adapting to language-specific syntax

## User Experience

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

1. Select the desired capability from the AI Developer section
2. Provide natural language instructions or upload relevant documents
3. Specify programming language preferences when applicable
4. Review and implement the generated code

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

## Anatomy

The AI Developer architecture integrates large language models with the FlowX.AI Platform to seamlessly 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 DI_Platform_process [DI Platform process]
        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 --> DI_Platform_process;
    DI_Platform_process --> 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;
```

## Top rules for Designer AI Agent prompting

### ✅ 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 robust 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 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)
- [FlowX.AI 4.7.1 Release Notes](/release-notes/v4.x/v4.7.x-lts/v4.7.1-march-2025/v4.7.1-march-2025.md)
- [FlowX.AI 5.1.1 Release Notes (LTS)](/release-notes/v5.x/v5.1.x-lts/v5.1.1-november-2025.md)
