> For the complete documentation index, see [llms.txt](https://docs.virbe.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.virbe.ai/dashboard-management/conversation-flows/nodes/action-nodes/collect-user-data.md).

# Collect User Data

It provides structured data collection with validation and storage capabilities.

#### Setting up data collection:

1. Define the question to ask the user
2. Choose where to store the collected data (this is a variable that can be used later on in LLM Response node's instruction).
3. Select appropriate input type for validation
4. Configure "Skip if value exists" to avoid repetition

Example: Collect user's email if they requested to be contacted by a human team member:&#x20;

```
Question: "What's your email address?"
Store in: user_email
Input type: Email
Skip if exists: Enabled
```

<figure><img src="/files/qIR4L9w6pIFfrGYxgfZr" alt=""><figcaption><p>Example of Collect User Data</p></figcaption></figure>

#### Common use cases:

* Contact information
* Order references
* User preferences
* Account details
* Support ticket info
* Survey responses

{% hint style="info" %}
**Important considerations:**

* Use clear, specific questions
* Consider privacy implications
* Check existing values before asking
* Verify data storage
* Plan error handling
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.virbe.ai/dashboard-management/conversation-flows/nodes/action-nodes/collect-user-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
