Ui componentsJs snippet
Intelligent Form (JS)
Add an intelligent form UI directly on a dedicated page
Overview
The Intelligent Form component provides a dynamic form interface powered by AI for collecting structured information.
Quick start
Add the below <script>
tag to the <head>
or <body>
of your website.
Define an element in your page that will be the "container" for the intelligent form.
Insert the Intelligent Form by using the Inkeep.IntelligentForm()
function.
Intelligent Form Props
Prop | Type | Required | Description |
---|---|---|---|
baseSettings | object | Yes | Core configuration settings. See Base Settings for details. |
formSettings | object | Yes | Form configuration settings. See Form Settings for details. |
Changing props after initial render
Sometimes you may need to manage change settings after a widget has already been initialized, for example, to update user privacy preferences. To do this, you can use the update
method.
The below example illustrates how you change the primary color on the widget when a button is clicked.