
Chat History
AI chat
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/custom-instructionsPersonalisation settings for an assistant: what to call you, what you do and how replies should read, with trait chips that write sentences into the instructions, segmented warmth, length and formatting controls, character counters and an on switch. A live preview answers a sample question in the chosen style, and a footer tracks unsaved changes with Discard and Save.
Other props pass through to the root element.
defaultValue
Partial<CustomInstructionsValue>
The saved settings. Edits are compared against these to show the unsaved bar.
onSave
(value: CustomInstructionsValue) => void | Promise<void>
Persist the settings. Return a promise to show a saving state.
traits
InstructionTrait[]
Default DEFAULT_TRAITS
Chips that add a sentence to the instructions.
assistantName
string
Default "Assistant"
Name shown on the preview reply.
| Description | |||
|---|---|---|---|
| defaultValue | Partial<CustomInstructionsValue> | – | The saved settings. Edits are compared against these to show the unsaved bar. |
| onSave | (value: CustomInstructionsValue) => void | Promise<void> | – | Persist the settings. Return a promise to show a saving state. |
| traits | InstructionTrait[] | DEFAULT_TRAITS | Chips that add a sentence to the instructions. |
| assistantName | string | "Assistant" | Name shown on the preview reply. |

AI chat

AI chat

AI chat

Sidebars