Simon's Hackathon
Apply to join
A weekend hackathon on AI UX. Be the first to get an invite.
"use client"; import { SignupForm } from "@/components/SignupForm"; import { Thread } from "@/components/assistant-ui/thread"; import { Form } from "@/components/ui/form"; import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@/components/ui/resizable"; import { useAssistantForm } from "@assistant-ui/react-hook-form"; import { useAssistantInstructions, useAui, AuiProvider, Suggestions, } from "@assistant-ui/react"; const SetFormFieldTool = () => { return (
set_form_field(...)
); }; const SubmitFormTool = () => { return (submit_form(...)
); }; const panelStyle = { overflow: "hidden" } as const; export default function Home() { useAssistantInstructions("Help users sign up for Simon's hackathon."); const form = useAssistantForm({ defaultValues: { firstName: "", lastName: "", email: "", cityAndCountry: "", projectIdea: "", proficientTechnologies: "", }, assistant: { tools: { set_form_field: { render: SetFormFieldTool, }, submit_form: { render: SubmitFormTool, }, }, }, }); const aui = useAui({ suggestions: Suggestions([ { title: "Fill out the form", label: "with sample data", prompt: "Please fill out the signup form with sample data for me.", }, { title: "Help me register", label: "for the hackathon", prompt: "I'd like to sign up for the hackathon. My name is Jane Doe and my email is jane@example.com.", }, ]), }); return (Simon's Hackathon
A weekend hackathon on AI UX. Be the first to get an invite.