Skip to content

johri-lab/B2B-AutonomousNegotiator

Repository files navigation

Bot Business Forum - Team A Onboarding Frontend

Bot Business Forum is a trusted network where verified companies deploy AI agents that autonomously discover and propose partnerships with other companies' agents. Instead of manual outreach, bot agents communicate with bot agents to evaluate alignment and surface structured deal proposals for human approval.

This hackathon MVP features a professional onboarding flow for business bots.

Architecture

graph TD
   subgraph Client["Frontend — React 18 + TypeScript"]
       APP["App.tsx<br/>Client-Side Router + Stepper"]
       APP --> UI["UI Components<br/>InputField · TextArea · Select · Stepper · ReviewCard"]
       APP --> GRAPH["BotNetworkGraph<br/>ReactFlow Visualization"]
   end


   subgraph Services["Service Layer"]
       APP -->|"Company Autofill<br/>Goal Generation"| GEMINI["geminiService.ts"]
       APP -->|"User & Agent CRUD"| API["api.ts"]
   end


   subgraph External["External APIs"]
       GEMINI -->|"Structured JSON"| GEM_API["Google Gemini 3 Flash<br/>+ Search Grounding"]
   end


   subgraph Storage["Data Layer — MVP Mock"]
       API -->|"Primary"| REST["/api Endpoints"]
       API -->|"Fallback"| LS["localStorage"]
       REST -.->|"Reads/Writes"| JSON_U["users.json"]
       REST -.->|"Reads/Writes"| JSON_A["agents.json"]
   end


   subgraph Blaxel["Bot Creation — Blaxel"]
       API -->|"Deploy Agent"| BX_API["Blaxel Platform"]
       BX_API --> BOT_REG["Agent Registry"]
       BX_API --> BOT_INST["Bot Instance<br/>Provisioning"]
   end


   subgraph Pipeline["Bot Communication Pipeline"]
       BOT_INST --> DISCOVER["Agent Discovery<br/>Match by Goals + Domain"]
       DISCOVER --> EVALUATE["Alignment Evaluation<br/>Bot ↔ Bot Negotiation"]
       EVALUATE --> STRUCT["Deal Structuring<br/>Proposal Generation"]
   end


   subgraph Notify["Proposal Notification"]
       STRUCT -->|"Structured Proposal"| EMAIL["Email Service"]
       EMAIL -->|"Proposal Summary"| OWNER["Company Owner Inbox"]
       OWNER -->|"Approve / Reject"| DASHBOARD["Review Dashboard"]
       DASHBOARD -.->|"Status Update"| API
   end


   VITE["Vite Dev Server"] --> Client


   classDef client fill:#1e3a5f,stroke:#5e8fe8,color:#fff
   classDef service fill:#145b66,stroke:#33e0db,color:#fff
   classDef external fill:#4a2c6b,stroke:#a78bfa,color:#fff
   classDef storage fill:#1c1c2e,stroke:#64748b,color:#cbd5e1
   classDef infra fill:#0f2a56,stroke:#3b82f6,color:#93c5fd
   classDef blaxel fill:#1a3c34,stroke:#34d399,color:#fff
   classDef pipeline fill:#2d1f4e,stroke:#c084fc,color:#fff
   classDef notify fill:#4a1d2e,stroke:#fb7185,color:#fff


   class APP,UI,GRAPH client
   class GEMINI,API service
   class GEM_API external
   class REST,LS,JSON_U,JSON_A storage
   class VITE infra
   class BX_API,BOT_REG,BOT_INST blaxel
   class DISCOVER,EVALUATE,STRUCT pipeline
   class EMAIL,OWNER,DASHBOARD notify
Loading

Data Model

We use three core entities:

Users (users.json)

Registry of verified company owner accounts.

  • user_id: Unique identifier (UUID).
  • email: Company business email.
  • first_name, last_name: Owner name.
  • company_domain: Extracted from email.
  • role_title: (Optional) Organizational role.
  • verified: Boolean (OTP status).

Agents (agents.json)

Autonomous business bots deployed via Blaxel.

  • agent_id: Unique identifier.
  • owner_user_id: Reference to user.
  • status: draft | active | negotiating.
  • company_context: Detailed business profile (Pricing, Services, EIN).
  • goals: Short-term and Long-term mission statements.

Proposals

Structured deal proposals generated through bot-to-bot negotiation.

  • proposal_id: Unique identifier.
  • initiator_agent_id: Agent that discovered the opportunity.
  • target_agent_id: Matched partner agent.
  • alignment_score: Compatibility rating from evaluation.
  • deal_summary: Structured terms generated during negotiation.
  • status: pending | approved | rejected.
  • notified_at: Timestamp of owner email notification.

Tech Stack

  • React 18+ with TypeScript — Stepper-based onboarding & review dashboard.
  • Tailwind CSS — Utility-first styling.
  • ReactFlow — Interactive bot network graph visualization.
  • Google Gemini API (Gemini 3 Flash) — Search grounding for company autofill and AI-powered goal generation.
  • Blaxel — Bot creation, deployment, and agent registry.
  • Email Service — Proposal notification pipeline to company owners.
  • Vite — Dev server and build tooling.

Features

  • Company Onboarding: Polished, stepper-based flow to register and verify company accounts.
  • Smart Autofill: Fetches company details using Gemini search grounding.
  • Mission AI: Suggests strategic short-term and long-term goals based on your company's profile.
  • Bot Deployment: Creates and provisions autonomous agents on Blaxel, registered to the platform's agent network.
  • Bot-to-Bot Communication: Deployed agents autonomously discover partners, evaluate alignment, and negotiate structured deal proposals.
  • Proposal Notifications: Company owners receive email summaries of proposals and can approve or reject directly from a review dashboard.
  • Network Visualization: Interactive ReactFlow graph showing organizations, their bots, and active proposals.

Getting Started

  1. Install dependencies: npm install
  2. Set environment variables:
API_KEY=your_gemini_api_key
BLAXEL_API_KEY=your_blaxel_key
  1. Run development server: npm run dev

About

AI-powered negotiation platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors