User:
Increase my monthly HSA contributions
AI:
I've updated your HSA contributions for the year 2024.
Current Balance:$3500
Year-to-Date Contributions:$2000
Annual Contribution Limit:$3850
Previous Contribution:$250/month
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:
John Doe
john@example.com
Jane Smith
jane@example.com
Bob Johnson
bob@example.com
Let AI interpret user-specific terminology and respond accordingly.
User:
Customer 123-acme
AI:
Here's information about a customer with that id.
ID:123-acme
Name:Acme Corporation
Email:contact@acme.com
Plan:Premium
Status:Active
Build products user can use day 1.
User:
Send a message
AI:
I've generated a message to user you just upgraded.
Allow users to recombine features to fit their needs.
Define the functionalities for users in your application.
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;
Use Hydra AI to analyze context and surface relevant components.
"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>
);
}
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: