Skip to main content
This guide shows you how to extract different types of data from your UI using AskUI’s get() method. Data extraction is a fundamental capability for building AI agents that can read and understand UI content.

Quick Start

The get() method allows you to ask questions about your UI and receive structured responses:

Data Extraction Types

Yes/No Questions

Get boolean answers about UI state and conditions

Text Extraction

Extract text content from UI elements

Numbers

Get numeric values like counts, prices, and metrics

Tables

Extract structured data from tables

Lists & Navigation

Extract sidebar items, menu options, and navigation structures

Tabs

Get information about tabs and their states

Cards & Tiles

Extract data from card layouts and tile grids

Common Patterns

Form Validation

Dashboard Metrics

Search Results

Best Practices

  1. Be Specific: More specific questions yield better results
  2. Use Appropriate Types: Match response schema to expected data
  3. Handle Missing Data: Use Optional fields when data might not exist

Troubleshooting

Data Extraction Issues?

Getting empty results or type errors? Our data extraction troubleshooting guide covers common problems and solutions for the get() method.

Performance Optimization

Learn how to optimize data extraction performance with batch extraction and caching strategies.

Next Steps