A toolkit for creating and monetizing engaging AI-powered onchain experiences.
ImagineKit is a comprehensive toolkit designed for creators to build and monetize interactive AI-driven experiences on-chain. With an intuitive drag-and-drop interface, users can seamlessly connect AI chatbots, image generators, and various UI components to craft dynamic, engaging experiences. The toolkit allows for the creation of diverse applications, from games to educational tools, where the interactions are driven by AI and enriched by unique visual and conversational elements.
The core idea behind ImagineKit is to empower users, even those with minimal technical expertise, to leverage cutting-edge AI and blockchain technologies.
You can try Imagine Kit here
This tutorial walks you through building a workflow on ImagineKit that generates African short stories, complete with images and audio. Follow these steps to bring your storytelling experience to life.
- Create a New World: Start by creating a new world in ImagineKit, naming it "Hadithi AI" (or any name that resonates with your project).
- Add a Trigger Button: From the UI Elements section, drag a Trigger Button into your workflow. This button will initiate the storytelling experience.
Add an Assistant Node:
- Drag the Assistant node into the workflow and configure it to act as the storyteller.
- Set the Instruction field to: "You are a storyteller. Tell intriguing African tales accompanied by images."
- (Optional) Upload a knowledge base to provide the Assistant with more context if desired.
Define Inputs and Outputs:
- Connect the Trigger Button to the Assistant node’s input labeled Run.
- Add outputs:
- Story: The main text of the generated story.
- Story Image Prompt: A prompt to generate an image that matches the story’s theme.
- Add a Text Output Node:
- Drag the Text Output node to display the generated story.
- Connect the
Story
output from the Assistant node to the Text Output node to show the storytelling result.
Add a Text-to-Speech Node:
- Place the Text-to-Speech node to convert the story into audio.
- Connect the
Story
output as the text source to be converted to audio.
Add an Audio Player:
- Use the Audio Player node to play the generated audio.
- Connect it to the Text-to-Speech node’s audio output.
Add an Image Generator Node:
- Insert the Image Generator node to create an image based on the story.
- Connect it to the
Story Image Prompt
output from the Assistant node. - Adjust the Image Generator settings to align with the storytelling theme.
- Add an Image Display Node:
- Place an Image Display node to show the generated image.
- Link it to the output from the Image Generator node.
Your flow should look something like this by now
- Test the Workflow: Click on the Experience button to test the storytelling flow.
- Adjust Configurations: Make any necessary adjustments to nodes or settings to ensure a smooth experience.
- Publish the Workflow: Once satisfied, publish your Hadithi AI experience for users to explore and enjoy.
ImagineKit is built with a combination of modern web technologies and blockchain integrations:
Frontend and Node-based Editor: Built using Next.js and React Flow, the front-end provides a user-friendly interface where creators can visually design their experiences by connecting various components. React Flow serves as the basis for the node-based editor, allowing users to define and connect inputs, outputs, and interactive elements.
AI Integration: At the moment we are leveraging open AI apis for text generation, image generation, text to speech and speech to text capabilities. our goal is to, in the future, include other models for the different functionalities and let the user choose what model they want to use.
Data Management: MongoDB is used to manage and store off-chain data related to user interactions, experiences, and configuration settings. This allows for efficient data handling and retrieval, ensuring smooth user experiences and quick response times.
Integration and Flexibility: The platform is designed to be extensible, allowing for integration with other third-party services and APIs. The flexibility of ImagineKit allows creators to combine multiple data sources, services, and AI tools to build unique, complex experiences.
-
Install the required packages:
npm install
-
Set up environment variables: Create a
.env.local
file and configure it according to the providedenv.example
. -
Start the development server:
npm run dev
-
Open
http://localhost:3000
in your browser to play DrawDash locally.
MIT