Outshift Logo

Form Builder

A dynamic form component with validation, multiple field types, and user-friendly interfaces. Perfect for user registration, settings configuration, surveys, contact forms, and structured data entry workflows.

Preview

Form Builder Preview

Installation

Schema & Prompt Control

Conversation

Installation

Instructions

# Initialize HAX in your project
agntcy-hax init

# Add the component
agntcy-hax add artifact form

Usage

The form component integrates with AI agents through CopilotKit. Users interact with AI agents through natural language, and the agents automatically create appropriate forms with proper field types and validation.

Component Setup

Setup

import { HAXDetails, useFormAction } from "@/hax/artifacts/form";
export function RegistrationPage() {
const [artifacts, setArtifacts] = useState([]);
// Register form actions for AI agents
useFormAction({
addOrUpdateArtifact: (type, data) => {
// Handle form updates
}
});
const handleFormSubmit = (formTitle, data) => {
console.log('Form submitted:', formTitle, data);
};
return (
<HAXForm
title="User Registration"
fields={formFields}
onFormSubmit={handleFormSubmit}
/>
);
}

© 2025 Outshift. All Rights Reserved.