Project Components
UI Wizard

Configuration Wizard

Overview

This project implements a whitelabel AI Assistant to help your users create Intelligent Oracles for your project. The assistant guides users through a step by step process of creating a well-defined oracle specification which can be deployed on the GenLayer blockchain.

Features

  • Interactive chatbot interface
  • Step-by-step configuration of Intelligent Oracles
  • Integration with OpenAI's GPT-4 for natural language processing
  • Real-time streaming of AI responses
  • Tailwind CSS for modern, responsive design

Technologies Used

  • Vue.js 3
  • Nuxt.js 3
  • Tailwind CSS
  • OpenAI GPT-4
  • Vercel Edge Functions

Setup

  1. Clone the repository

  2. Install dependencies:

    npm install
  3. Set up environment variables by copying the .env.example file in the root directory to .env and adding your own values.

Configuration

The project uses Nuxt.js configuration. Key settings can be found in nuxt.config.ts.

Tailwind CSS is configured in tailwind.config.js.

Usage

  1. Start the development server:
    npm run dev
  2. Open your browser and navigate to http://localhost:3000
  3. Follow the chatbot's prompts to configure your Intelligent Oracle

API

The backend of this project is implemented in the bridge section of this repository. It includes the chat API and the endpoints to interact with the GenLayer blockchain to deploy and register every prediction market.

Customization

To modify the initial prompt or change the behavior of the chatbot, edit the initialPrompt constant in bridge/server/api/chat.ts.