Package com.vaadin.flow.ai.formfiller


package com.vaadin.flow.ai.formfiller
  • Class
    Description
    An exception which is thrown when somebody attempts to use Form Filler without activating the associated Feature Flag first.
    FormFiller component that using AI ChatGPT fills automatically from a natural language input text a component or group of components (layout).
    Components supported: TextField EmailField PasswordField NumberField IntegerField BigDecimalField DatePicker TimePicker DateTimePicker TextArea Checkbox CheckboxGroup RadioButtonGroup ComboBox MultiSelectComboBox Grid To make a component available for the FormFiller, the component must have an id, and it should be meaningful to be understood by the AI module.

    TextField textField = new TextField();
    textField.setId("name");

    FormLayout fl = new FormLayout();
    fl.add(textField);

    FormFiller formFiller = new FormFiller(fl);
    formFiller.fill("My name is John");

    The text field will be filled with "John".
    FormFiller result after a FormFiller.fill(java.lang.String) call.