<aside> 💡 This is a WIP documentation, for any feedback write to [email protected]

</aside>

Brian Builds empowers users to perform blockchain transactions by simply writing prompts in natural language. This functionality allows for actions like sending tokens to a specific address or executing token swaps and writing prompts like:

Hey Brian, I want to swap 1 ETH for USDC”

Brian, can you send 0.1 ETH to vitalik.eth”

Brian utilizes its knowledge of a predefined set of read and write blockchain operations to analyze and interpret prompts from users.

As the project is in its early stages, Brian's operation set is limited. However, ongoing development efforts will expand Brian's knowledge and capabilities to encompass a wider range of operations. Future updates aim to ensure support for major protocols and operations.


Tech description

The Transaction Builds component of Brian is designed to facilitate blockchain transactions through a streamlined and efficient process. This section provides a technical overview of how the Transaction Builder handles user prompts, extracts the necessary parameters, and executes transactions within smart contracts.

User Prompt:

When a user interacts with Brian Builds, they provide a prompt in natural language describing the desired transaction. For example: "Hey Brian, I want to swap 1 ETH for USDC." "Brian, can you send 0.1 ETH to vitalik.eth?"

Prompt Analysis

Brian leverages state-of-the-art language models such as GPT-3 and Falcon to analyze and interpret the user's prompt. These models are pre-trained on vast amounts of text data and can understand the meaning and intent behind the user's request. Through this analysis, the system extracts the essential details required for executing the transaction. These details may include:

Parameter Extraction

Once the user's prompt is analyzed, Brian employs sophisticated natural language processing techniques to extract the relevant parameters needed for executing the transaction within the smart contract. This step involves mapping the user's intent to specific transaction functions and mapping the extracted details to the corresponding function parameters. Brian's AI models utilize various techniques, including named entity recognition and semantic parsing, to identify and extract the necessary information accurately.

Smart Contract Interaction

With the extracted parameters in hand, Brian interacts with the target smart contract to execute the transaction. This process typically involves calling specific functions within the contract's interface, and passing the extracted parameters as arguments. Brian handles the transaction initiation, validation, and submission to the blockchain network, ensuring the integrity and security of the transaction.