# `@assistant-ui/react-hook-form`
[React Hook Form](https://react-hook-form.com) integration for `@assistant-ui/react`. Replace `useForm` with `useAssistantForm` to give the assistant the ability to read and fill your form fields through tool calls.
## Installation
```bash
npm install @assistant-ui/react @assistant-ui/react-hook-form react-hook-form
```
## Usage
```tsx
"use client";
import { useAssistantForm } from "@assistant-ui/react-hook-form";
export function SignupForm() {
const form = useAssistantForm({
defaultValues: { firstName: "", lastName: "", email: "" },
assistant: {
tools: {
set_form_field: { render: () =>