Overview
Form artifacts render interactive forms directly in the chat. Users can submit data back to the AI.Variants
Fields
Standard form with input fields:Wizard
Multi-step form:Buttons
Quick action buttons:Display Modes
Field Types
Field Properties
Select/Radio Options
Button Actions
Buttons in forms can have different actions:Form Collapse Behavior
Inline forms automatically collapse after user interaction to keep the chat clean and prevent duplicate submissions.States
Visual Appearance
When collapsed, forms display a compact bar showing:- Status icon (checkmark, X, or dash)
- Form title
Page Refresh Behavior
After a page refresh:- Last message: Forms stay active (user can still interact)
- Older messages: Forms collapse as “inactive”
isLastMessage prop to ArtifactuseAgentMessage:
Handling Submissions
- Vue
- React
- Svelte