AI Project Generation
Project generation is the most powerful AI capability in Q-Remix. It allows users to create fully functional decentralized applications (D-Apps) or blockchain-based projects from scratch, all based on a single comprehensive prompt.
Access:
Click the AI icon located in the bottom-right corner of the interface.
Choose the option "Generate a Project" from the menu or from suggested prompts.
Project Input Workflow:
A new window will appear, prompting you to input specific details about the project you want to generate. You can enter the following information:
Project Type: For example, marketplace, DAO (Decentralized Autonomous Organization), DeFi (Decentralized Finance) protocol, or others.
Token Requirements: Specify the kind of tokens involved, such as utility tokens, governance tokens, or NFTs.
Governance Structure: Define how decisions will be made — whether through voting, multi-signature wallets, or centralized authority.
Custom Logic: Describe any unique or specific business logic your project requires (e.g., staking mechanism, rewards distribution, auction logic).
Output:
Based on your provided prompt, the AI will perform the following actions:
Generate the appropriate folder structure for the project.
Create necessary files including smart contracts, configuration files, and sample frontend/backends if needed.
Populate those files with intelligently generated code.
Display a live preview or demo of the generated project setup.
Offer a "Save to Workspace" button.
Saving the Project:
When the "Save to Workspace" button is clicked:
A new folder will be created in your file explorer.
All relevant project files will be saved within this folder.
The project will be ready for immediate use, customization, or deployment.
If the prompt " Generate a project is detected or from the suggestions create a project" is selected a new window opens asking for the details of the project.
You can see below a sample prompt given to the the project generator as:
“Generate a complete DApp project based on Solidity smart contracts.
Theme: Decentralized Voting System
Requirements:
Users can register as voters.
Admin can create elections and add candidates.
Voters can cast one vote per election.
Smart contract should prevent double voting.
Results can be viewed publicly.
Include smart contract, sample frontend code (HTML/JS or React), and deployment instructions using Hardhat or Remix.”
In response, it shows the detailed project structure that shall suit the prompt’s usecase and gives an option to the user itself to save this project to the current workspace.
Now, as the user confirms to save the project and approves of the structure, it gets saved as you can see in the left sidebar in the current workspace.
As you can see in the project structure in detail gets added with the subfolders and files:
On clicking Save to Workspace button a new folder would be created that will have the desired project.
Each of the files added in the particular project is also embedded with the initial code logic that might help the user successfully setup the entire project.
Last updated