Skip to content

timurrakhimzhan/xbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

201 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XState AI Bot

A TypeScript project that combines XState with OpenAI to create a stateful chat bot.

Setup

  1. Install dependencies:
pnpm install
  1. Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here

Development

To run the project in development mode:

pnpm dev

Building

To build the project:

pnpm build

Running

To run the built project:

pnpm start

Project Structure

The project is currently set up with:

  • TypeScript configuration
  • XState and OpenAI dependencies
  • Environment variable support
  • Development setup with tsx

The source code will be added to the src directory.

Features

  • State management using XState
  • OpenAI integration for chat completions
  • Type-safe implementation
  • Environment variable configuration

About

Beauty salon bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors