Skip to content

abreuclariana/web3-ai-agent-dashboard

Repository files navigation

⚓️ NAVY AI - Tactical Web3 Intelligence Dashboard

NAVY AI is a professional Web3 dashboard that combines blockchain data with a sarcastic AI persona. Built with Next.js 15, Wagmi/Viem, and OpenAI, it analyzes your wallet's ETH liquidity and delivers a "Combat Report" with the attitude of a Brazilian Navy Sergeant.

Now featuring the Admiral Protocol: A gamified betting system integrated with Smart Contracts.

Next.js Tailwind CSS Web3 Solidity AI


🌊 Overview

The core objective of NAVY AI is to demonstrate a seamless integration between decentralized finance (DeFi) data, smart contracts, and artificial intelligence.

✨ Key Features

  • Admiral Protocol (Betting): Users can bet 0.001 ETH on getting a compliment from the AI. The logic is handled by a custom Solidity Smart Contract (0x6edF95c53965eD7FC12DA6Ce4146f6a4598dE4a9 on Sepolia).
  • NFT Rank Minting: Users can mint a dynamic NFT based on their wallet analysis. Images are fetched from high-quality naval stock via Unsplash CDN.
  • Logbook Entry: Users can permanently record their presence on the blockchain via the NavyLogbook contract.
  • Professional Web3 Login: Powered by ConnectKit, supporting EIP-6963 and various wallet providers.
  • Real-time Blockchain Reading: Uses Viem and Wagmi v2 for fast, reactive balance checks on Ethereum Mainnet and Sepolia Testnet.
  • Sarcastic AI Agent: Integrated with GPT-4o-mini to provide a unique, humorous, and authoritative persona.
  • Safe Architecture: Contract addresses and RPCs are managed via Environment Variables (.env) for maximum security and CI/CD compatibility.
  • Multi-language Support: Dynamic interface and AI responses in English, Portuguese, and Spanish.
  • Senior Tech UI: Glassmorphism effects, fluid animations via Framer Motion, and responsive design with Tailwind CSS.

🛠️ Tech Stack

  • Frontend: Next.js 15 (App Router), React 19, Tailwind CSS.
  • Blockchain Layer: Solidity 0.8.20+, Wagmi v2, Viem v2, ConnectKit.
  • AI Layer: OpenAI SDK (GPT-4o-mini).
  • Infrastructure: Vercel (Deployment), Unsplash (Dynamic NFT Media).

🚀 Smart Contracts

The project includes tactical smart contracts deployed on Sepolia:

  1. NavyBet.sol: Manages the 0.001 ETH bets and authorized payouts.
  2. NavyNFT.sol: An ERC721 dynamic rank NFT with metadata integration.
  3. NavyLogbook.sol: A decentralized ledger for admirals to sign their messages.

Find the contract source codes in the /contracts directory.

🚀 Getting Started

1. Prerequisites

  • Node.js 18+ installed.
  • An Ethereum wallet (MetaMask recommended) with Sepolia ETH.
  • An OpenAI API Key.

2. Installation

npm install --legacy-peer-deps

3. Environment Variables

Create a .env.local file:

# AI & Security
OPENAI_API_KEY=your_openai_api_key_here

# Web3 Configuration
NEXT_PUBLIC_WC_PROJECT_ID=your_walletconnect_project_id_here
NEXT_PUBLIC_RPC_URL=https://rpc.ankr.com/eth_sepolia

# Contract Addresses (Sepolia)
NEXT_PUBLIC_NAVY_BET_ADDRESS=your_contract_address_here
NEXT_PUBLIC_LOGBOOK_ADDRESS=0x...
NEXT_PUBLIC_NAVY_NFT_ADDRESS=0x...

4. Run Development Server

npm run build && npm run start

⚓️ Mission Roadmap

  1. Select Language: Choose between EN, PT, or ES.
  2. Summon Wallet: Connect via MetaMask (Switch to Sepolia network).
  3. Bet Tactic: Use the "BET 0.001 ETH" button to interact with the NavyBet contract.
  4. Combat Report: Request your AI-powered analysis.
  5. Claim Rank: Mint your official Navy AI NFT based on your status.
  6. Log Entry: Use the "LOGBOOK" button to sign the blockchain ledger.

🛡️ License

Distributed under the MIT License.


Developed for sailors and whales alike. Stay sharp, Admiral. ⚓️🔥

About

A mission-focused Web3 Dashboard that uses AI to audit wallet liquidity with a military-grade (and sarcastic) attitude. Built with Next.js 15, Wagmi, and OpenAI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors