This Tangle Blueprint provides an automated Discord channel summarization service using Hyperbolic's AI cloud.
Blueprints are specifications for AVSs on the Tangle Network. An AVS is an off-chain service that runs arbitrary computations for a user-specified period of time.
This blueprint demonstrates how to create an automated AI-powered service that:
- Listens to Discord channels
- Aggregates messages over 24-hour periods
- Generates AI summaries using Hyperbolic through Rig's client adapter
- Posts results on-chain for verification and provenance
For more details, please refer to the project documentation.
- 🤖 Automated 24-hour channel summarization
- 🔗 On-chain result verification
- 🧠 AI-powered content summarization via Hyperbolic
- ⚡ Easy operator registration and management
- 📊 Transparent job execution tracking
Before you can run this project, you will need to have the following software installed on your machine:
You will also need to install cargo-tangle, our CLI tool for creating and deploying Tangle Blueprints:
To install the Tangle CLI, run the following command:
Supported on Linux, MacOS, and Windows (WSL2)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tangle-network/gadget/releases/download/cargo-tangle-v0.1.2/cargo-tangle-installer.sh | sh
Or, if you prefer to install the CLI from crates.io:
cargo install cargo-tangle --force # to get the latest version.
- Clone the repository and install dependencies:
cargo build
- Configure environment variables:
cp .env.example .env
# Edit .env with your credentials:
# - DISCORD_TOKEN
# - HYPERBOLIC_API_KEY
# - TANGLE_WS_URL
- Deploy the blueprint to Tangle:
cargo tangle blueprint deploy
The blueprint consists of three main components:
-
Smart Contract (
HelloBlueprint.sol
):- Handles operator registration
- Processes job requests
- Verifies and stores summarization results
-
Service Implementation (
lib.rs
):- Defines the summarization job
- Implements Discord message collection
- Manages AI summarization calls
-
Runner (
main.rs
):- Sets up the service context
- Initializes event listeners
- Manages the service lifecycle
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
We welcome feedback and contributions to improve this blueprint. Please open an issue or submit a pull request on our GitHub repository. Please let us know if you fork this blueprint and extend it too!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.