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.
- 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
- Vue.js 3
- Nuxt.js 3
- Tailwind CSS
- OpenAI GPT-4
- Vercel Edge Functions
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables:
Copy the
.env.example
file in the root directory to.env
and add your own values.
The project uses Nuxt.js configuration. Key settings can be found in nuxt.config.ts
.
Tailwind CSS is configured in tailwind.config.js
.
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
- Follow the chatbot's prompts to configure your Intelligent Oracle
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.
To modify the initial prompt or change the behavior of the chatbot, edit the initialPrompt
constant in bridge/server/api/chat.ts
.