
Introduction: Build with Intelligent Primitives
Learn the core philosophy behind bem and how our modular, inspectable, and reusable AI primitives empower you to build reliable, production-grade intelligent products.
Welcome to bem. This guide provides your engineering team with the direction and best practices needed to integrate bem into your existing infrastructure.
Start with Workflows
Building with AI requires more than just a single prompt. It requires a pipeline of deterministic steps to ensure reliability and accuracy. In bem, these pipelines are called Workflows.
Workflows are the top-level orchestration layer for your AI logic. They allow you to chain together modular Functions-our intelligent primitives-to create complex, production-grade systems.
- Orchestration: Workflows define how data flows from one step to the next. You can route data based on content, split documents into pages, transform specific fields, and join results back together.
- Modularity: Functions are the building blocks. A
transformfunction built to extract invoice data can be reused across multiple workflows. - Inspectability: Every step in a workflow is tracked. You can trace a result back through every transformation and decision that led to it.

We recommend you start by Creating Your First Workflow. Then, explore the different types of functions you can build.