AI Bot Configuration
The objective of this guide is to provide an in-depth understanding of how to use AI feature of
AI Bot control.
1st Step
- Begin by creating a blank transaction form.
2nd Step
- Add AI Bot control.
- Configure all the attributes in design page based on the specified requirements of the form.
3rd Step
- This is where the API behavior is defined:
- In "AI Data Connection" select the connection from the dropdown.
- Go to workbench, select "New Datasource" option, and fill the
details to create new data source.
- "Business Description" describes what the bot is supposed to do, like
guiding the user through a step-by-step form.
- "Schema" defines the structure of the form. For example, the fields
you want to collect like full name, email, and phone number.
- "Rule" provides clear instructions to the AI on how to ask questions,
validate input,
and
return the final data in a specific format.
- "List Of Questions" is used for fixed questions, but is not needed here
since the AI
uses dynamic questions from the schema.
- "Sample Query" shows how the data will be fetched from the database.
This is mostly for
testing or display purposes.
- "Database Connection" points to the actual database (e.g., Cosmos DB)
where the
collected form responses will be saved.
- "Table Name" indicates the exact table in your database where the
user’s input should be
inserted.
- "Response Attribute" defines the key under which the returned data will
be stored in the
API response (commonly set as data).
4th Step
- Final setup for the AI Bot
- "Open In Popup" enables the bot to open as a popup window instead of
appearing inline on the page.
- "Button Icon" defines the icon that will appear on the bot button.
- "Select Style" allows you to choose the appearance of the button, like
Primary,
Secondary, etc. to match your app design.
- "Call Chat API On Load" automatically starts the AI assistant as soon
as the form loads,
without needing user interaction.
- "Stop Form Model In Request" temporarily pauses the form when a request
is being sent,
preventing simultaneous actions.
- "Enable AI Form Assistant" activates the smart form assistant powered
by AI, which asks
questions based on your schema.
- "AI Form Assistant API" connects your AI-driven form to a database,
allowing it to
save, fetch, or manage data automatically based on user input.
5th Step
- This is the UI configuration for how data will be visually displayed.
- Configure all the attributes in design page based on the specified requirements of the form.
6th Step
- Defines how data will be pulled and populated:
- Data Connection:
NCAMEO Cosmos
- Model Name:
ContactEntry
- Operation:
Read
- Response Attribute: Data is read from the
data
object in the response.
- Paging and Sorting: Optional configuration for performance.
7th Step
- Maps API fields to UI layout:
- Custom HTML & CSS: Defines the card structure visually.
- Field Mapping: Binds data fields (
fullName
, email
,
phone
) to card elements.
- Style Settings: Custom card design (gradient background, shadow, padding).
8th Step
- Real-time interaction between the AI Bot and user:
- Bot prompts questions in sequence as per JSON schema.
- Once the user submits answers, the form processes the data.
- Upon confirmation, the new entry gets added visually as a card.
Final Output:
- This confirms the successful end-to-end flow:
- A new card has been added.
- Email and phone number are correctly captured.
- Confirms bot-to-DB-to-UI integration is functioning.