Video thumbnail

AIVATAR

AIVATAR is an agentic PFP that updates your mood onchain based on your farcaster activity

AIVATAR

Created At

Agentic Ethereum

Winner of

Coinbase Developer Platform - AgentKit Pool Prize

Prize Pool

Project Description

AIVATAR is a dynamic, mood-adaptive PFP that evolves based on your Farcaster activity. Minted gas-free and in-frame, it automatically updates your Warpcast profile picture by using AI to analyze the sentiment of your latest cast and writing your current mood to your PFPs on-chain metadata. This updates the way your PFP looks across the Warpcast universe. Whether you're angry, frustrated, excited or nostalgic, as your mood shifts, so does your AIVATAR.

How it's Made

This project lives inside an NX monorepo which three main components.

A library called contracts which is a foundry project that leverages Patchwork's (patchwork.dev) pdk to create the AIVATAR NFT contract with onchain metadata that represents the emotion of the PFP.

A library called drizzle to create the database I needed to persist the user, cast, token and webhook data for my application.

A full-stack application built using react-router-7 that serves:

  • A Farcaster v2 frame that manages authenticating users with farcaster, and allows them to grant AIVATAR access to update their profile on their behalf.
  • Endpoints for farcaster user authentication
  • Endpoints for gas-less minting of the NFT using a server wallet provided by Coinbase Developer Platform
  • Endpoints to serve the tokens ERC721 metadata, schema and rendering the token image to SVG using React.
  • A webhook for responding to new farcaster casts using Neynar, and implementing Coinbase agentkit to assess the sentiment of the cast, and update the mood on the NFT contract
background image mobile

Join the mailing list

Get the latest news and updates