back to tutorials

Leveraging Dynamic Form Generation

ChatBotKit has introduced a powerful new AI Widget feature known as Forms. This feature provides your AI agent or bot with the capability to dynamically generate forms to collect structured information from users.

Overview

Forms are used to collect specific information from users. Traditionally, this process has been quite rigid and limiting, but this new feature revolutionizes that by allowing the bot to generate a new form dynamically for each specific user.

Getting Started

To use this feature, follow the steps below:

  1. Configure your widget: First, you need to have a widget configured. This can be a standard widget using the default theme. The widget will be connected to the bot that you'll be using.
  2. Enable the Forms feature: This option is located under the 'Advanced Options'. Once you enable it, the bot will have the capability to generate forms dynamically.
  3. Test your setup: Go to the 'Install' area of your website, click on 'Install', then click on 'Test'. This will take you to the test window where you can interact with the widget. Simply start a conversation with your bot, and the bot should automatically generate a form for you to fill in.
  4. Fill in the form: The bot will provide you with a form to fill in with your details. Once you've filled in the form and submitted it, the bot can use the information provided in subsequent interactions.

Configuring the Bot

In your bot configuration, you'll need to provide basic instructions for your bot. You can specify exactly how and when you want the form to be generated. The bot configuration allows you to decide when the form will appear in the conversation with the user.

Using the Feature Effectively

This feature has broad applications and can be used flexibly in your customer journey. You can choose to present the form at the beginning of the conversation or at any other point during the interaction.

Traditionally, widgets present a contact collection form at the beginning of the interaction, which can lead to high drop-off rates. With the form feature in ChatBotKit, you can choose to present the form at the most appropriate time, not necessarily as the first message. This makes the bot more intelligent and can lead to more effective information collection.

We hope you'll find this new feature useful in enhancing your interactions with your users. Happy bot building with ChatBotKit!