Developers

Developer Hub

Build, integrate, and orchestrate with BeX.

Use the BeX platform to create AI assistants, design workflow logic, connect enterprise knowledge, and embed Digital Employees into your own applications and user journeys.

API

BeX AI Assistant API

The BeX AI Assistant API lets developers bring BeX-powered assistants into external applications, portals, and workflow experiences.

Use it to:

Power AI-enabled applications
Call conversational or workflow OpCodes
Support streaming and non-streaming interactions
Connect assistants to frontend experiences
Operationalise Digital Employees beyond the BeX interface
api-example.ts
const response = await fetch(
  'https://api.bex.ai/v1/assistant/run',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      assistant_id: 'quotation-copilot',
      opcode: 'process-enquiry',
      input: {
        enquiry: userMessage,
        context: sessionContext,
      },
    }),
  }
);

const { output, escalate } = await response.json();
Building Blocks

Core developer concepts

Everything in BeX is built from reusable, composable primitives.

Core
Instructions

The smallest reusable unit of behaviour

Instructions are reusable task definitions. They tell the AI what role it is playing, what goal it must achieve, what rules to follow, what context matters, what format to return, and when to escalate to a human.

A good Instruction makes outputs more stable, more useful, and more aligned to business needs.

Orchestration
OpCodes

Reusable AI workflows

An OpCode chains together one or more Instructions with business logic, retrieval steps, API calls, data handling, and output actions. In simple terms, an Instruction is one task. An OpCode is the flow that turns tasks into useful work.

Example: retrieve a policy → extract missing fields → draft a quotation → flag approvals → prepare a handoff note.

Foundation
Knowledge Builder

Enterprise knowledge made usable

Knowledge Builder is where enterprise knowledge becomes usable by AI. It helps teams organise documents, reference files, policies, templates, samples, rules, and other materials into structured collections.

This is what allows a Digital Employee to work from company truth rather than generic model memory.

Experience
BeX3D

Dynamic application layer

BeX3D is the dynamic application layer for data-driven decision experiences. It combines conversational intelligence with graphical, role-based, workflow-oriented interfaces so users can view insights, interact with structured data, and move work forward.

Use BeX3D when the use case needs dashboards, visual workflow steps, decision support views, or combined chat-plus-data experiences.

Knowledge Processing

L1, L2, L3 processing layers

A three-layer approach to turning raw enterprise content into AI-ready knowledge.

L1
L1 Processing

Transforms raw files such as documents and images into structured, searchable, vectorised data. This is the foundation layer for retrieval.

L2
L2 Processing

Builds on L1 by extracting targeted fields, entities, or key-value information based on defined instructions. Useful for PII extraction, metadata capture, or workflow-specific parsing.

L3
L3 Processing

Turns processed knowledge into business-ready workflow outputs through enrichment, validation, packaging, decision support, or orchestration — such as structured case summaries, exception flags, or downstream workflow payloads.

Integration

Frontend Orchestrator

The BeX Frontend Orchestrator helps developers embed assistants across multiple conversational or digital touchpoints.

Use it to:

Connect assistants to web interfaces and digital channels
Manage session flow and conversation history
Route users to the right assistant or workflow
Create a unified experience across entry points

It is the bridge between BeX intelligence and user-facing interaction.

UI

Web / Mobile Interface

Your frontend application

FO

Frontend Orchestrator

Session, routing, history

AI

BeX Assistants & OpCodes

Role-specific Digital Employees

Build on BeX

Instructions

Build faster with reusable logic

OpCodes

Orchestrate with composable flows

Knowledge

Ground outputs with enterprise data

API & BeX3D

Deliver across any interface