> ## 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 in FlowX

> AI agents for every stage - config-time agents help you build apps faster, while business agents power intelligent experiences for your end-users.

FlowX AI Platform provides intelligent agents across your entire application lifecycle. Whether you're building apps or running them, AI agents accelerate your work and enhance user experiences.

<img className="block dark:hidden" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/main/hero-light-main.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=985584dd07f148e0d45bbf36980479f6" alt="FlowX AI Platform" width="749" height="300" data-path="5.9/ai-platform/pre-built-agents/images/main/hero-light-main.svg" />

<img className="hidden dark:block" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/main/hero-dark-main.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=6735dae3a5018c0a4abaeb4f9f370aa2" alt="FlowX AI Platform" width="749" height="300" data-path="5.9/ai-platform/pre-built-agents/images/main/hero-dark-main.svg" />

***

## Two types of AI agents

FlowX provides agents for different stages of your application lifecycle:

```mermaid theme={"system"}
flowchart LR
    subgraph config [Config Time]
        Designer[FlowX Designer + Config Agents]
    end

    subgraph build [Build]
        AB[Agent Builder]
        MP[Marketplace]
    end

    subgraph runtime [Runtime]
        BA[Business Agents] --> Users[End Users]
    end

    Designer -.->|help build| AB
    AB --> BA
    MP --> BA
```

<CardGroup cols={2}>
  <Card title="Config-time agents" icon="pencil-ruler">
    **Help you build apps faster**

    AI assistants embedded in FlowX Designer that help developers and business analysts create processes, UIs, and business rules.

    Used by: Designers, developers, analysts
  </Card>

  <Card title="Business agents" icon="briefcase">
    **Power your end-user experiences**

    AI agents that run inside your applications, interacting with customers and employees to automate tasks and provide intelligent assistance.

    Used by: Your customers and employees
  </Card>
</CardGroup>

***

## Config-time agents

These agents are built into FlowX Designer to accelerate app development:

<CardGroup cols={2}>
  <Card title="Analyst" icon="magnifying-glass-chart" href="./pre-built-agents/ai-analyst">
    Build and optimize BPMN processes using AI to generate, validate, and enhance workflows
  </Card>

  <Card title="Assistant" icon="message-bot" href="./pre-built-agents/ai-assistant">
    Answer questions about FlowX platform and your organization based on documentation
  </Card>

  <Card title="Designer" icon="palette" href="./pre-built-agents/ai-designer">
    Convert natural language prompts, Figma designs, or sketches into UI layouts
  </Card>

  <Card title="Developer" icon="code" href="./pre-built-agents/ai-developer">
    Generate business rules and code expressions using natural language
  </Card>
</CardGroup>

<Accordion title="See config-time agents in action">
  <video controls className="w-full aspect-video" src="https://s3.eu-west-1.amazonaws.com/docx.flowx.ai/470/AI_Build_Agents.mp4" />
</Accordion>

<Card title="Learn more about config-time agents" icon="sparkles" href="./pre-built-agents/overview">
  Detailed documentation for each config-time agent
</Card>

***

## Business agents

Agents that power intelligent experiences for your end-users. You have two options:

### FlowX accelerators

Pre-built business agents created by FlowX, ready to deploy:

* Industry-specific solutions for banking, insurance, and more
* Tested and optimized for common use cases
* Deploy immediately or customize to your needs

### Custom agents

Use **Agent Builder** to create AI agents tailored to your specific business processes:

* **Document processing** - Extract data from forms, contracts, and statements
* **Content generation** - Create personalized communications and reports
* **Decision support** - Analyze data and provide recommendations
* **Conversational AI** - Build chat-based customer interactions

<Card title="Agent Builder" icon="hammer" href="./agent-builder/overview">
  Create custom AI agents for your specific business needs
</Card>

***

## Integrating agents into apps

Once you have business agents (custom or from marketplace), integrate them into your applications:

<CardGroup cols={3}>
  <Card title="Chat interface" icon="comments" href="./using-agents/chat-interface">
    Conversational UI for end-users
  </Card>

  <Card title="BPMN integration" icon="diagram-project" href="./using-agents/bpmn-integration">
    Trigger agents from workflows
  </Card>

  <Card title="API access" icon="code" href="./integrations">
    Programmatic integration
  </Card>
</CardGroup>

***

## Enterprise security

<img className="block dark:hidden mx-auto" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/security/hero-dark-shield.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=0d1c64424162949ebb37e70b81b5939f" alt="Enterprise Security" width="400" data-path="5.9/ai-platform/pre-built-agents/images/security/hero-dark-shield.svg" />

<img className="hidden dark:block mx-auto" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/security/hero-light-shield.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=ddeed57c4996a9a3cce4d71a68ea91b0" alt="Enterprise Security" width="400" data-path="5.9/ai-platform/pre-built-agents/images/security/hero-light-shield.svg" />

All FlowX AI agents are built for banking-grade security:

| Security feature             | Description                                                            |
| ---------------------------- | ---------------------------------------------------------------------- |
| **Zero-trust model**         | All components authenticate each other, preventing unauthorized access |
| **Input/output scanning**    | Detect prompt injection, ban sensitive substrings, sanitize outputs    |
| **Custom fine-tuned models** | Purpose-built models with curated data for each use case               |
| **Human oversight**          | Human-in-the-loop controls for ethical decision-making                 |

***

## Personal data protection

FlowX ensures personal data never reaches AI models by design through controlled data ingestion, deterministic workflows, and encryption options.

### Data ingestion paths

Personal data enters the platform through three channels:

| Channel            | Data handling                                                                                                                             |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **Forms / UIs**    | Input data mapped directly to the process data model                                                                                      |
| **3rd party APIs** | API responses mapped to the process data model                                                                                            |
| **Documents**      | Structured docs (Word, Excel) have fields mapped automatically; unstructured docs require OCR extraction with optional human verification |

<Info>
  For unstructured documents containing sensitive data, a human operator can verify extracted data accuracy before it's mapped to the data model.
</Info>

### Data storage

All ingested data ends up in **data models** - JSON collections stored in FlowX databases:

* Data models are only accessible to deterministic business process steps
* Process logic controls when, how, and which data is sent to AI steps
* This ensures **no personal data is sent to AI by design**

### Protection options

| Option                     | Description                                                                                                                      |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| **Database encryption**    | Encrypt data at rest using database capabilities (e.g., pgcrypto in PostgreSQL) - prevents administrator access to business data |
| **Sensitive data masking** | Mark specific data model fields as sensitive to hide them in UIs and console outputs                                             |
| **Custom guardrails**      | Additional guardrails can be enforced in AI workflows                                                                            |

<CardGroup cols={2}>
  <Card title="Data Model" icon="database" href="../docs/building-blocks/process/data-model">
    Learn about process data models
  </Card>

  <Card title="Sensitive Data" icon="eye-slash" href="../docs/building-blocks/process/data-model#sensitive-data">
    Configure sensitive data masking
  </Card>
</CardGroup>

***

## Hallucination prevention

<img className="block dark:hidden mx-auto" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/security/hero-dark-hallucinations.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=886897eacd34527341fd98897b2ec993" alt="Hallucination Prevention" width="400" data-path="5.9/ai-platform/pre-built-agents/images/security/hero-dark-hallucinations.svg" />

<img className="hidden dark:block mx-auto" src="https://mintcdn.com/flowxai/CH7X7nDyzWRQEeu0/5.9/ai-platform/pre-built-agents/images/security/hero-light-hallucinations.svg?fit=max&auto=format&n=CH7X7nDyzWRQEeu0&q=85&s=657badf15cb443a70296c5b39640be1b" alt="Hallucination Prevention" width="400" data-path="5.9/ai-platform/pre-built-agents/images/security/hero-light-hallucinations.svg" />

| Technique                    | Purpose                                                         |
| ---------------------------- | --------------------------------------------------------------- |
| **RAG**                      | Ground responses in reliable external data sources              |
| **Multi-agent architecture** | Dedicated agents for specific tasks with specialized processing |
| **Structured outputs**       | Enforce JSON outputs for consistent, parseable responses        |
| **Model evaluation**         | Continuous testing to find optimal models for each task         |
| **Prompt tuning**            | Task-specific prompts to enhance accuracy and relevance         |

***

## Related resources

<CardGroup cols={2}>
  <Card title="Chat component" icon="comments" href="./chat-component">
    Technical reference for chat integration
  </Card>

  <Card title="AI integrations" icon="plug" href="./integrations">
    Connect agents to knowledge bases and external systems
  </Card>

  <Card title="AI Platform setup" icon="gear" href="./ai-platform-setup">
    Configure AI Platform for your environment
  </Card>

  <Card title="Using agents" icon="play" href="./using-agents/overview">
    Integration patterns and best practices
  </Card>
</CardGroup>
