IP Asset Creation Agent
by ellieli0630
This repository contains an agent built with LangGraph that helps users create and mint IP assets on Story Protocol. The agent guides users through content creation, minting, and registration of the IP asset on the blockchain.
Last updated: N/A
IP Asset Creation Agent with LangGraph
This repository contains an agent that helps users create and mint IP assets on Story Protocol using LangGraph. The agent guides users through the entire process, from content creation to minting and registering the IP asset on the blockchain.
Features
-
Multiple Content Creation Options:
- Upload local image/video files
- Generate images using OpenAI DALL-E
- Generate videos using Luma AI (placeholder implementation) (WIP! Got video to generate by Luma, but stuck at uploading to IPFS and ran out of time :/)
-
Comprehensive IP Asset Workflow:
- Content creation and review
- IPFS upload
- Metadata generation
- Terms negotiation
- IP asset minting and registration
- License token minting
- Twitter integration for announcing newly minted assets
-
Twitter Integration:
- Automatically posts about newly minted IP assets
- Includes asset ID, transaction hash, and links to explorers
- See Twitter Integration Documentation for details
Prerequisites
- Python 3.9+
- Story Protocol SDK
- OpenAI API key
- Twitter API credentials (if using Twitter integration)
Installation
- Clone this repository:
git clone https://github.com/yourusername/langgraph-mcp-agent.git
cd langgraph-mcp-agent
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp .env.example .env
- Edit the
.env
file with your API keys and credentials.
Usage
Run the agent:
python agent.py
The agent will guide you through the following steps:
- Choose a content creation method:
- Upload a local image/video file
- Generate an image using OpenAI DALL-E
- Generate a video using Luma AI
- Review the generated/uploaded content
- Create metadata for the IP asset
- Negotiate terms for the IP asset
- Mint and register the IP asset
- Mint license tokens
- Post about the minted IP asset on Twitter
Improvements from Original Repository
This repository builds upon the original Story Protocol example by adding:
- Multiple content creation options (local upload, DALL-E, Luma)
- Enhanced human review process for generated content
- Twitter integration for announcing minted assets
- Improved error handling and user feedback
- More comprehensive documentation
License
This project is licensed under the MIT License - see the LICENSE file for details.