RoMEF

AI agent analyzes group chats, negotiates vendors, deploys smart contracts with tiered pricing & auto-refunds, enabling on-chain collective purchases with a live end-to-end demo.

  • 0 Raised
  • 160 Views
  • 0 Judges

Categories

  • 1inch
  • ENS
  • XMTP
  • Civic
  • 🤖 AI [MAIN TRACK]
  • 💸 Finance [MAIN TRACK]

Description

AI Collective Deals — AI-driven group negotiation & tiered on-chain purchasing

One-liner: Turn chaotic “let’s go to Oktoberfest” chats into a verifiable group deal with tiered discounts, automatic on-chain refunds, and one-click join—all orchestrated by an AI agent.

What it does

An agent reads group conversations, extracts intent (event, city, dates, nights, tiers), and deploys a GroupDeal smart contract on Sepolia. People buy seats; when the crowd crosses thresholds, the price drops and earlier buyers claim back the difference on-chain. At deadline, the contract pays the provider and closes. UX adds Civic Auth (embedded wallet, single SSO), ENS (human-readable names), an XMTP miniapp that bridges chat → dApp, and 1inch “Swap & Join” (with quote/mock fallback).

How it works

  • Chat → Intent: XMTP Agent SDK watches a group thread, detects “Oktoberfest/Munich/3 nights,” and drops a miniapp link.

  • Intent → Contract: The miniapp opens our dApp with fields pre-filled; user deploys or selects an existing deal.

  • On-chain flow: join(quantity) supports multi-seat in one tx; tier price is enforced; when tiers drop, refundableOf() computes per-lot refunds; claimRefund() pays instantly; finalize(provider) settles to the provider.

  • Payments UX: If the user lacks the right asset, 1inch provides a real quote and (where available) a swap path; if auth isn’t available, we degrade gracefully to quote-only/mock so the demo stays smooth.

  • Names & trust: ENS resolves hotel-munich.eth → 0x… and reverse-resolves users to alice.eth.

Why it matters

Group buying is messy: coordination friction, pricing opacity, and weak guarantees. We make it autonomous, transparent, and fair: discounts are enforced by code, refunds are provable, and payouts are automatic—no middleman trust required.

Built with

Solidity (Foundry), Next.js 14 + wagmi/viem, Civic Auth (EIP-1193), XMTP miniapp + Agent SDK, ENS, 1inch APIs (quote + swap build; quote-only fallback supported).

Bounty alignment

  • Civic: single-SSO embedded wallet + Nexus-style agent orchestration.

  • XMTP: chat-native miniapp + agent parsing to pre-fill the dApp.

  • ENS: provider resolution & reverse names for users.

  • 1inch: Swap & Join via quote/swap build (auth-gated); graceful quote/mock fallback ensures meaningful API use in demo.

Links (fill in)

  • Repo: https://github.com/balabanom/ETH2025ROMEF

  • Sepolia contract address: 0x0A42E51EE90cB3EB962D324A825BCffD4C5334D0

Status: Deployed on Sepolia, end-to-end demo ready.

Telegram: @omer2343
YouTube Demo Link: https://youtu.be/k-t4H8PlVbQ

Attachments