Skip to main content

Overview

This guide provides a quickstart for building your first Generative UI application with C1.

Components

C1 provides two components for building Generative UI applications:
  • <C1Component>: A component that renders the Generative UI.
  • <C1Chat>: A pre-built chat component that includes a chat history, a message composer, and a loading indicator.
If you’re unsure about which component to use check our comparison guide for more details. Check out the Basics section for further details on implementing backend API and rendering the UI.

NextJS

The easiest way to begin is by using C1 within a NextJS project

Create with the CLI

  1. Create a new app called my-c1-project
  2. cd my-c1-project and start the dev server
  3. Visit http://localhost:3000

System requirements

  • Node.js 20.9 or later
  • macOS, Windows or Linux

Python

Start the python server

Start the frontend server

System requirements

  • Node.js 20.9 or later (for the frontend server)
  • Python 3.x version (for the backend server)
  • macOS, Windows or Linux