
IP Asset Creation Agent with LangGraph
A LangGraph-based agent for creating, minting, registering IP assets with Story Protocol, and automatically posting about them on Twitter.
What is the IP Asset Creation Agent with LangGraph?
This project is an agent that assists users in creating, minting, and registering intellectual property (IP) assets on the Story Protocol using LangGraph, while also automating posts about these assets on Twitter.
How to use the IP Asset Creation Agent?
To use the agent, clone the repository, install the required dependencies, set up your environment variables, and run the agent. It will guide you through the process of creating and minting IP assets.
Key features of the IP Asset Creation Agent?
- Multiple content creation options including local uploads and AI-generated content.
- Comprehensive workflow for IP asset creation, including metadata generation and terms negotiation.
- Twitter integration for automatic announcements of newly minted assets.
Use cases of the IP Asset Creation Agent?
- Creating and minting digital art as IP assets.
- Registering video content as intellectual property.
- Automatically sharing newly minted assets on social media platforms.
FAQ from the IP Asset Creation Agent?
- What are the prerequisites for using this agent?
You need Python 3.9+, Story Protocol SDK, OpenAI API key, and Twitter API credentials for integration.
- How do I install the agent?
Clone the repository, install dependencies, and set up your environment variables as per the instructions in the README.
- Can I use my own content for IP asset creation?
Yes! You can upload your local image or video files or generate content using AI tools.
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.