Overview
Data Extraction nodes are ideal when you need to:- Collect customer information (name, email, phone)
- Gather order details
- Capture booking requirements
- Validate input formats
Data Extraction nodes are colored purple on the canvas.
Configuration
Extraction Method
| Method | Description |
|---|---|
| Ask User | The agent explicitly asks for each piece of information |
| Infer | The agent extracts information mentioned naturally in conversation |
- Ask User
- Infer
The agent asks for each variable directly:Best for: Forms, registrations, structured data collection
Max Attempts
Number of times to retry if validation fails (default: 3). After max attempts, the conversation continues without the variable (if not required) or triggers a fallback transition.Variables
Each variable defines a piece of information to collect:Variable Properties
| Property | Description |
|---|---|
| Name | Identifier (snake_case, e.g., customer_name) |
| Type | Data type for validation |
| Required | Whether collection can continue without it |
| Prompt | Question to ask the user |
| Description | Context for the AI about this field |
| Validation | Regex pattern for format validation |
| Options | Choices for select type |
Variable Types
| Type | Description | Example |
|---|---|---|
string | Short text | Name, city |
long_text | Extended text | Issue description |
number | Numeric value | Age, quantity |
boolean | Yes/No | Confirmation |
select | Choice from options | Size (S/M/L) |
date | Date value | Appointment date |
email | Email address | [email protected] |
phone | Phone number | +1-555-123-4567 |
Validation Patterns
Use regex patterns to validate format:Transitions
Data Extraction nodes support special transition types:| Type | Trigger |
|---|---|
| All Extracted | All required variables collected successfully |
| Timeout | User didn’t respond in time |
| Keyword | User said a specific trigger word |
All Extracted Transition
Automatically fires when all required variables have been collected:Example Configurations
Customer Contact Info
Customer Contact Info
Order Lookup
Order Lookup
Appointment Booking
Appointment Booking
Using Extracted Variables
Once collected, variables can be used in:- Subsequent prompts: Reference as
{{variable_name}} - If/Else conditions: Branch based on values
- Function calls: Pass to external systems
- Transfer briefings: Include in human transfer context
Best Practices
Ask One Thing at a Time
Don’t overwhelm callers. Collect variables sequentially.
Explain Format Requirements
If validation is strict, tell callers the expected format upfront.
Make Optional Fields Optional
Don’t require information you don’t actually need.
Handle Failures Gracefully
Set reasonable max attempts and provide fallback paths.