# Create a Data Collection Schema

### 🧾 How to Create a Data Collection Schema in VoiceB.ai

VoiceB.ai lets you collect structured data from users during calls, making it easy to capture key information like names, addresses, product preferences, and more. Here’s how to set up your own **Data Collection Schema** — and how it integrates with your CRM or webhook.

***

#### ✅ Step-by-Step: Creating a New Schema

1. **Go to "New Schema"**

   * Click the **+ New Schema** button to start a new data set.

   <figure><img src="/files/tAY2ixaEkly9BowYlDD7" alt=""><figcaption></figcaption></figure>
2. **Give it a Name and Description**
   * Example:
     * Name: `Basic personal data`
     * Description: `Default data collection for Telco customers, includes name, phone, email, etc.`
3. **Add as Many Fields as You Need**\
   For each field, enter the following:
   * **Field name** – e.g., `email`
   * **Format** – e.g., `text`, `number`, `date`
   * **Description** – what the field is for (e.g., `Customer email address`)
   * **Example** – e.g., `jane.doe@email.com`
4. **Click the Arrow (⬆️) to Add the Field**
   * You can repeat this process and add unlimited fields before saving.
5. **Click Save**
   * Once saved, the schema is locked and cannot be edited. But don’t worry — if you need changes, just create a new schema.

<figure><img src="/files/vsGG0Ewfk75JMjHG1ELZ" alt=""><figcaption></figcaption></figure>

***

#### 📌 Using the Schema

Once your schema is created, you can **assign it to any AI Agent**:

* Go to the agent’s configuration screen
* Select the desired schema under **Data Collection**
* This tells the agent what to collect during each conversation

<figure><img src="/files/EXhNUcfZ4MNIqHYI317g" alt=""><figcaption></figcaption></figure>

***

#### 🔗 Integration & Post-Call Automation

* If you're using **CRM integrations (like HubSpot or Salesforce)**:
  * Your data fields will appear in the **mapping section**, ready to sync automatically.
* If you're using **webhooks**:
  * You’ll receive **all collected data**, plus:
    * Post-call **transcript**
    * **Summary**
    * And every **data field collected**

This ensures you get the full picture from every conversation — structured, synced, and ready to use.

***

{% hint style="info" %}
**Pro Tip:** Use descriptive names and examples to avoid confusion, especially when multiple team members are managing different schemas.
{% endhint %}

Need help structuring complex data? **Reach out to our team** — we’ll help you build the right schema for your flow.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.voiceb.ai/create-a-data-collection-schema.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
