Hydra-AI

Build Adaptive UIs with AI

AI-powered router surfaces the right features to users based on context

$
npm i hydra-ai

What will you build?

AI-Powered CRM

User:

Increase my monthly HSA contributions

AI:

I've updated your HSA contributions for the year 2024.

HSA Automated Contributions

Current Balance:$3500

Year-to-Date Contributions:$2000

Annual Contribution Limit:$3850

Previous Contribution:$250/month

New Contribution:/month

Streamline User Experience

Instantly access features without navigating complex menus.

User:

Show me my fu

AI:

I understand 'fu' might mean 'follow-ups' in your context. Here are the leads requiring follow-up:

Leads to Follow Up

John Doe

john@example.com

Jane Smith

jane@example.com

Bob Johnson

bob@example.com

Understand User Jargon

Let AI interpret user-specific terminology and respond accordingly.

User:

Customer 123-acme

AI:

Here's information about a customer with that id.

Customer Information

ID:123-acme

Name:Acme Corporation

Email:contact@acme.com

Plan:Premium

Status:Active

Build more intuitive tools

Build products user can use day 1.

User:

Send a message

AI:

I've generated a message to user you just upgraded.

Send Upgrade Confirmation

User Generated Workflows

Allow users to recombine features to fit their needs.

How It Works

1. Register Your Components

Define the functionalities for users in your application.

app/hydra-client.tsjavascript
import { HydraClient } from "hydra-ai";
import TransferMoney from "./components/transfer-money";
import FindTransaction from "./components/find-transaction";
import TakeLoan from "./components/take-loan";

const hydra = new HydraClient();

hydra.registerComponent(
  "TransferMoney",
  "Transfer money between accounts",
  TransferMoney,
  {
    fromAccount: "string",
    toAccount: "string",
    amount: "number",
    currency: '"USD" | "EUR" | "GBP"',
  }
);

...

hydra.registerComponent(
  "TakeLoan",
  "Apply for a loan with specified terms",
  TakeLoan,
  {
    amount: "number",
    interestRate: "number",
    term: "number",
    purpose: '"personal" | "business" | "mortgage"',
  }
);

export default hydra;

2. Uncover User Intent

Use Hydra AI to analyze context and surface relevant components.

app/page.tsxjsx
"use client";

import { ReactElement, useEffect, useState } from "react";
import hydra from "./hydra-client";

export default function BankingDashboard() {
  const [bankingComponent, setBankingComponent] = 
    useState<ReactElement | null>(null);

  const generateBankingUI = async () => {
    const component = await hydra.generateComponent(
      "Transfer $500 to my mom's account"
    );
    setBankingComponent(component);
  };

  useEffect(() => {
    generateBankingUI();
  }, []);

  return (
    <main>
      <h1>Banking Dashboard</h1>
      {bankingComponent}
      <button onClick={generateBankingUI}>Generate New Banking UI</button>
    </main>
  );
}

3. Interactive UI

Let Hydra AI display appropriate interactive elements.

User:

Send $500 to my mom.

AI:

Here is how you can send $500 to your mom's account:

Transfer Money

Try out ourlive demofor yourself.

Chat with 4500+ YC company data powered by hydra-ai.

Curious how to get startedToday?

Connect directly with the Hydra AI founders, get insider updates, and shape the future of adaptive UIs.