Skip to content

UnifiedLayerBuild AI Chat Apps in Minutes

A hosted platform and React SDK for building intelligent, context-aware chat experiences with generative UI, tool calling, and RAG โ€” all with an OpenAI-compatible API.

Quick Start โ€‹

Add a full AI chat interface to your Next.js app in under 10 lines:

bash
npx create-unifiedlayer-app

Or set it up manually:

tsx
// app/page.tsx
import { UnifiedLayerProvider, UnifiedLayerChatUI } from 'unifiedlayer-sdk'

export default function Home() {
  return (
    <UnifiedLayerProvider
      config={{
        baseUrl: process.env.NEXT_PUBLIC_UL_BASE_URL!,
        clientId: process.env.NEXT_PUBLIC_CLIENT_ID!,
        appId: process.env.NEXT_PUBLIC_APP_ID!,
        apiKey: process.env.NEXT_PUBLIC_API_KEY!,
      }}
    >
      <UnifiedLayerChatUI />
    </UnifiedLayerProvider>
  )
}

That's it. UnifiedLayer handles session creation, thread management, message streaming, and rendering โ€” including generative UI components and tool calls.


How It Works โ€‹

Your App (React)
     โ”‚
     โ”‚  UnifiedLayerProvider (SDK)
     โ”‚    โ”œโ”€โ”€ useUnifiedLayerSession   โ†’ POST /api/v1/auth/session   โ†’ session token
     โ”‚    โ”œโ”€โ”€ useUnifiedLayerThread    โ†’ POST /api/v1/threads        โ†’ thread created
     โ”‚    โ””โ”€โ”€ useUnifiedLayerThreadInput โ†’ POST /api/v1/threads/:id/advance
     โ”‚
     โ–ผ
UnifiedLayer Platform
     โ”œโ”€โ”€ RAG retrieval  (Pinecone + Gemini embeddings)
     โ”œโ”€โ”€ LLM inference  (Groq โ€” llama-4-maverick-17b)
     โ”œโ”€โ”€ Tool execution loop
     โ””โ”€โ”€ Response (OpenAI format + unifiedlayer extension)

Explore the Docs โ€‹

SectionDescription
Getting Started5-minute setup with npx create-unifiedlayer-app or manual install
Core ConceptsApps, Clients, Threads, Sessions, Tools, Generative UI, RAG
React SDKUnifiedLayerProvider, hooks, defineComponent, defineTool
API ReferenceAll REST endpoints with request/response schemas
DashboardManage Apps, Knowledge Bases, and Analytics

Released under the ISC License.