Skip to main content
The Chatbase Collect Data Action lets your AI agent gather the details you choose, such as a shipping address, an order number or feedback, from the customer during a conversation. Each Action collects custom fields, the same fields your create-ticket Actions use. The AI agent can ask for them in conversation or show the customer a chat form, and it saves the submission once every required field has a value.

Best for:

Collecting structured details (a shipping address, feedback, an application) without sending the customer to a separate page.
Common Use Cases:
  • Collecting a shipping address before arranging a delivery
  • Gathering feedback details after a support interaction
  • Capturing the specifics of a request your team will act on later
You can create more than one Collect Data Action on the same AI agent, each with its own name, fields, and destinations. For example, one Action to collect a shipping address and a separate one to collect feedback details.

How to create the Action

1

Navigate to Actions

Go to your Chatbase dashboard and select your AI agent. Click Build > Actions in the left sidebar.
2

Create the Action

Click Create Action, select Collect Data, then click Start customizing.
3

Configure General Settings

Action Name: A descriptive name for this Action. It doubles as the identifier for this Action’s webhook events, so it must be unique across your AI agent’s Actions. Renaming the Action later changes its webhook event name, so update any webhook receivers that filter on it.When to use: Explain when the AI agent should collect this data from the customer. Include a description of what information is collected and its purpose, and add example queries that should trigger this Action.To restrict the Action to Procedure steps only, turn on Only use in Procedures. When it’s on, the When to use field is hidden, because the AI agent no longer decides when to call the Action.
4

Choose your fields

In the Fields section, choose how details are collected and add the fields this Action collects. See Fields below.
5

Set your destinations

In Destinations, choose where collected data should be sent. See Destinations below. This step is optional.
6

Choose Channels

This Action is compatible with every channel. Toggle it on or off for each configured channel. See Channels for what configured, unconfigured, and incompatible mean.
7

Enable and Test

Preview your settings in the AI agent on the Action page, then click Enable.

Fields

Collect Data Action's Fields section with Collect conversationally selected and four fields under Details to collect, each Required
The Fields section starts with How should details be collected?: The form shows on the Chat Bubble and the Help Page. Other channels, like WhatsApp and Instagram, always collect details conversationally. New Actions start on Collect conversationally.

Add fields

Add field list open over the Fields section, with a search box, the AI agent's custom fields and Create a new field at the bottom
Under Details to collect, click Add field, then search your AI agent’s custom fields and pick the ones this Action should collect. To make a field that doesn’t exist yet, click Create a new field at the bottom of the list. Manage fields opens Settings → Custom fields in a new tab. Fields are shared across the AI agent’s Actions, so a field like Order number means the same thing on every Action that collects it. See Custom fields for field types, labels and collection instructions. Every field is added as Required. Click a field’s row to change how this Action collects it:
A field opened from a Collect Data Action, set to Required, with Use a different instruction for this form ticked and its own instruction
  • Collected as sets the field to Required or Optional for this Action. The AI agent asks for every required field before it saves. Optional fields are saved when the customer gives them.
  • Use a different instruction for this form gives the field its own collection instruction on this Action, up to 4,000 characters. The field itself and your other Actions keep the original instruction.
The X on a row removes the field from this Action. Two fields with the same customer-facing label can’t be collected by one Action, since the customer couldn’t tell them apart.

What the customer sees

In conversation, the AI agent asks for each field by its customer-facing label and your collection instruction, and re-asks for anything required that is still missing. It only saves what the customer has said.
Help Page chat where the AI agent asks the customer for the order number, purchase date and serial number in conversation
Help Page chat with a Collect Data form, its fields filled in from the conversation, and Dismiss and Submit buttons
With the form, the AI agent shows the chat form when the customer is ready to share the details, with anything already given in the conversation filled in. The customer clicks Submit, and the form turns into a Submitted card. If the customer dismisses the form, nothing is saved.
The chat form replaced by a Submitted card after the customer submits it
Each completed collection is saved as its own submission, so if the Action runs more than once in a conversation you get one submission per run.

Collected data

Activity, Collected data listing submissions with a column per field and the submission date
Submissions appear under Activity > Collected data, with an Action column showing which Action collected them and a column per field, named by the field’s internal label. They’re also included in CSV and PDF exports and in the {action name}_collect_data.submit webhook.

Example: collecting a shipping address

Example configuration: an Action named shipping_address collecting the required fields Street, City and Postal code and an optional Delivery notes field, set to Collect conversationally, with When to use set to “When the customer wants to change where their order is delivered.”
Customer: I moved. Can you send my order to my new address? AI agent: Sure. What’s the street address? Customer: 12 Market Street, Springfield, 01101. AI agent: Thanks. Any delivery notes, like a gate code? Customer: No, that’s all. AI agent: Got it. I’ve saved your new address, and our team will update your delivery.
The submission appears under Activity > Collected data with the street, city and postal code filled in, and fires the shipping_address_collect_data.submit webhook.
In conversation, the AI agent writes its own reply after saving. If you want a specific confirmation, say so in When to use, for example “After saving, confirm the address back to the customer.”

Destinations

Use Destinations to specify where collected data should be sent. You can skip this step if you don’t want to send collected data anywhere external.

Webhooks

Add one or more webhook endpoints to receive each submission as a POST request. The payload’s customFields is keyed by each field’s internal label, see Webhooks.
1

Expand Destinations

Open the Destinations section of the Action.
2

Enter the endpoint URL

Add the URL that should receive the submission.
3

Create the webhook

Click Create webhook.

Email notifications

Enable Email notification to receive an email every time data is collected through this Action. You can add one or more email addresses, and each successful submission triggers an email containing the collected data.
Email notifications are not available for HIPAA accounts. On HIPAA accounts, collected field values are also redacted before they’re stored.
Test the Action by having a conversation that should trigger it, and confirm the submission appears under Activity > Collected data with every field populated.

Channels

The Collect Data Action is compatible with every channel. Use Channels in the Action’s configuration to enable or disable it per channel. See Channels for what configured, unconfigured, and incompatible mean.

Limitations

  • Up to 20 fields per Action. If you need more, split the collection across separate Collect Data Actions.
  • No image fields. Collect Data collects text, number, boolean, date, email and dropdown fields. Image fields don’t appear in the field list.
  • The form shows on the Chat Bubble and the Help Page only. Other channels collect the same fields in conversation.
  • Email notifications are unavailable on HIPAA accounts, where field values are also redacted before storage. The Action itself is available on HIPAA accounts.

Best Practices

Write Clear Collection Instructions

The instruction tells the AI agent how to get the value and what a valid answer looks like. A vague instruction produces a vague question and a wrong answer.

Require Only What You Need

Every required field is another thing the customer must supply before the submission saves. Mark the rest optional.

Reuse Fields

Pick an existing field before creating a new one, so the same detail has one name across your Actions and your webhooks.

Split by Purpose

Create a separate Action per kind of data you collect, so each has its own fields, destinations, and webhook identity.

Frequently asked questions

Collect Leads captures contact details (name, email, phone number and optional custom fields) and saves to Activity > Leads. Each AI agent has one. Collect Data gathers the custom fields you choose, saves to Activity > Collected data, and you can create several, each with its own name and webhook event.
Collect Data Actions used to list their own fields inside the Action. Those fields were moved to custom fields with the same names, so each Action asks for the same details as before and its webhook keeps sending the same keys. Your existing Actions keep collecting conversationally unless you switch them to a form.
Edits to a field itself, such as its labels or instruction, apply to every Action that collects it. Settings you change from the Action’s field card, Collected as and a different instruction for this form, apply to this Action only.
No. Submissions are stored separately under Activity > Collected data and sent to this Action’s webhooks and email notifications. They don’t touch Contacts or the leads list.
Yes. Every enabled Collect Data Action counts toward your plan’s Actions-per-agent limit, like any other Action. It has no other plan restriction and is available on HIPAA accounts.
The webhook event name includes the Action name ({action name}_collect_data.submit), so renaming the Action changes the event your webhook receives. Update any receiver that checks the event name.