Types of Extraction
1. AI Extracted Variables (Conversation Nodes)
AI extraction uses LLM function calling to pull structured data from the conversation using natural language instructions. Configuration:- Extraction Method:
llm_function_calling - Extraction Prompt: Natural language description of what to extract
- Data Type: string, number, boolean, array, or object
- Required: Whether the node depends on this extraction succeeding
2. Toolpath Extracted Variables (Tool & Web Tool Nodes)
Toolpath extraction uses JSONPath to pull values from tool response data. Configuration:- User format:
$.path.to.value(JSONPath) - Backend format:
result.path.to.value(converted automatically) - Validation: Against actual (API) or expected (Web) response
- Response format: JSON object or plain string
- Object (JSON): Use paths like
$.data.user,$.data.items[0] - String: Use
$to get the full string
API Tool Nodes
- Click Test Tool to run with real data
- Use the path selector on the actual response
- Browse the tree, click a field to set the JSONPath
- Check the preview and save
Web Tool Nodes
Web tools run in the browser and can’t be tested server-side:- Define expected response: Paste JSON object or string
- Open the path selector and use that structure
- Click fields to set paths and preview
- Manually test the web tool to confirm the real response matches
"Successfully added 2 items to cart. Total: $149.99"
Best practices:
- API: Test first, then configure extraction; test success and error shapes
- Web: Define a realistic expected structure; document object vs string; test manually
3. DTMF Captured Variables (Conversation & Start Nodes)
DTMF capture creates a variable from keypad input (0-9, *, #). Configuration:- Enable DTMF Capture: Toggle in node settings
- Variable Name: Name for the captured value
- Sync: Automatically added to extracted variables
Extraction Availability
Extracted variables are available only to successor nodes:- ✅ Nodes that run after the node that created the variable
- ❌ Nodes that run before or in parallel
- ❌ Global nodes (
isGlobal: true)