IP Asset Creation Agent with LangGraph

by ellieli0630

MCP Client 2 stars
  • agent-framework

A LangGraph-based agent for creating, minting, registering IP assets with Story Protocol, and automatically posting about them on Twitter.

About

What is IP Asset Creation Agent with LangGraph?

It is a Python-based agent that helps users create and mint IP assets on Story Protocol using LangGraph. It guides users through content creation, review, metadata generation, terms negotiation, minting, and Twitter announcement.

How to use IP Asset Creation Agent with LangGraph?

Clone the repository, install dependencies (pip install -r requirements.txt), copy .env.example to .env, fill in API keys, then run python agent.py. The agent will step through content creation (upload, DALL‑E, or Luma AI), review, IPFS upload, metadata creation, terms negotiation, minting, and optional Twitter posting.

Key features of IP Asset Creation Agent with LangGraph

- Multiple content creation: local upload, DALL‑E images, Luma AI videos (WIP)
- End‑to‑end IP asset workflow: creation to minting and registration
- IPFS upload and metadata generation
- Terms negotiation and license token minting
- Automatic Twitter posting with asset ID and transaction links
- Enhanced human review process for generated content

Use cases of IP Asset Creation Agent with LangGraph

- Minting a copyrighted image or video as an IP asset on Story Protocol
- Generating an AI‑created image (DALL‑E) and registering it as an IP asset
- Creating and announcing a new IP asset on Twitter automatically
- Testing the full IP asset lifecycle with local files or generated content

FAQ from IP Asset Creation Agent with LangGraph

What does the agent do?

It guides users through creating, minting, and registering IP assets on the Story Protocol blockchain, including optional Twitter announcements.

What platforms and models does it support?

Runs on Python 3.9+. Supports local file upload, OpenAI DALL‑E for image generation, and Luma AI for video generation (video upload to IPFS is still a work in progress).

Does it support MCP servers?

What APIs and credentials are required?

OpenAI API key, Story Protocol SDK, and Twitter API credentials (if Twitter integration is used).

What is the licensing and known limitations?

Licensed under MIT. Video generation via Luma AI works but uploading the result to IPFS is not yet functional (“WIP! Got video to generate by Luma, but stuck at uploading to IPFS”).

Details

Author
ellieli0630
GitHub stars
2
Category
agent-framework
Repository
ellieli0630/langgraph-mcp-agent-twitter

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

1. Clone this repository:

git clone https://github.com/yourusername/langgraph-mcp-agent.git
cd langgraph-mcp-agent

2. Install dependencies:

pip install -r requirements.txt

3. Set up environment variables:

cp .env.example .env

4. 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:
1. Choose a content creation method:
- Upload a local image/video file
- Generate an image using OpenAI DALL-E
- Generate a video using Luma AI
2. Review the generated/uploaded content
3. Create metadata for the IP asset
4. Negotiate terms for the IP asset
5. Mint and register the IP asset
6. Mint license tokens
7. 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.