project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

Prayer To The AI God

Send a prayer to the AI God and hope that it mints you a blessing

Prayer To The AI God

Created At

Frameworks

Project Description

Our Frame allows you to send a Prayer to an AI God, which then decides whether you are worthy of receiving a Blessing.

First, it accepts a text input, which is sent to our AI model. The AI model then decides if your prayer is good enough for a blessing.

If it is, your mint is approved and a Blessing is minted as an NFT to your wallet.

How it's Made

We use Frames.js to construct the frontend of this Frame, which mainly consists of a text box, as well as image displays (more on this later).

The user is prompted to enter in their Prayer. Once the Prayer is entered, it's submitted to our text generation model (google/gemma-7b) via the Infernet-ML Python library (from Ritual). The Ritualnet system also allows us to make off-chain compute requests from on-chain contracts. Attached with the Prayer is also a custom prompt that has been appended, which provides the necessary context to Gemma.

If Gemma's response (returned via Infernet-ML) contains the word "Approved", a Blessing is granted and minting is allowed. We use Thirdweb's SDK and their ERC721 contract to handle the minting here. The NFT is minted to the user's Base wallet and the image is displayed via Pinata.

Data validation for the Frame to ensure correct data is done via Airstack.

background image mobile

Join the mailing list

Get the latest news and updates