In some situations you might want to prefill some fields for the user. This can be achieved by the following method.
Java
JSONObject prefill = new JSONObject();
try{
prefill.put("description", "Prefill the description with this.");
}catch (Exception ex){
ex.getStackTrace();
}
PrefillHelper.getInstance().setPrefillData(prefill);Use the field ID of the attribute assigned to the form question as the key. Open AI agents → Forms, select the form and question, and check Attribute (field ID). You can also find field IDs under Settings → Inbox & tickets → Data attributes.


