Natural Language Query Generation for Faster Results

RL NaborsRL Nabors
4 min read

Proponents of the free and open web have often argued that “information wants to be free.” But that phrase is actually a misquote of Steward Brand from the first Hackers Conference in 1984. What he actually said is much closer to where we are today:

[I]nformation sort of wants to be expensive because it is so valuable—the right information in the right place just changes your life. On the other hand, information almost wants to be free because the costs of getting it out is getting lower and lower all of the time.

This is truer today than ever. We were promised that access to data on the web would be simple only to find it dammed behind walls of text, blockaded by a lack of APIs and the knowledge to wield them, or locked behind platforms and sold to the highest bidder.

We want to democratize access to public data so everyone can get what they need as naturally as asking a friend for help. After observing how developers interact with AgentQL’s Playground, we realized there was a way to make it even easier for people to query data from a page. What if you could describe the content you’re looking for, and AgentQL generated the query for you?

Today, we’re excited to unveil Query Generation in the AgentQL Playground, a feature that turns your natural language input into fully functional AgentQL queries. Now, instead of puzzling out syntax or sifting through dense data structures, you only need to describe the content you want to extract from a single page, and AgentQL will handle the rest.

Try it yourself in the AgentQL Playground.

Query generation is perfect for:

  • No-code users: No code? No problem! AgentQL’s Playground can fetch data from any public-facing web page!

  • Developers new to AgentQL: If you’re evaluating AgentQL and want to get started without diving into query syntax, Query Generation offers a hands-on introduction without a steep learning curve.

  • Busy Developers: Even if you’re familiar with AgentQL, Query Generation can speed up prototyping and exploration, especially when you’re working with dense or unfamiliar page structures.

  • Anyone Handling Complex Documents: If the data you need is buried in a complex or dynamically generated document, Query Generation provides a straightforward way to retrieve it.

Why Use Query Generation?

By using natural language to generate queries, you can:

  • Use Your Words: Explain in your own words what you’re looking for and AgentQL will create a query to do just that.

  • Focus on Results, Not Syntax: Free up time for analyzing and using your data rather than constructing queries.

  • Save Time: No need to learn or recall query syntax; just describe what you need, and AgentQL will create the query for you.

  • Reduce Friction: Avoid the trial and error that often comes with building complex queries, especially on pages with dense or nested information.

How to Get Started with Query Generation

Getting started is as simple as heading to the Playground:

  1. Open the AgentQL Playground: If you’re new to AgentQL, this is your space to explore and experiment.

  2. Click “Suggest a Query”: You’ll find a prompt in the Playground where you can describe what you’re looking for.

  3. Describe Your Desired Output: Type in what you want to retrieve—whether it’s product names, prices, reviews, or something else entirely.

  4. Generate the Query: AgentQL will translate your input into a query and display it for you to use or refine further.

Once AgentQL generates the query, you can run it immediately or make any necessary adjustments. It’s a fast, intuitive way to find your target data without digging into syntax.

Try it Yourself: Head to the AgentQL Playground to start experimenting with natural language query creation.

Ready to Simplify Query Building?

Whether you’re new to AgentQL or a seasoned pro, Query Generation makes data extraction faster and easier than ever. We’re piloting this feature in the Playground, so give it a try and let us know what you think!

Your feedback is what made this launch week possible, and we want more! Join our Discord or take our survey so we can keep making AgentQL serve your needs better!

Stay tuned for tomorrow’s feature—it's a big surprise!

Happy querying!

—The Tiny Fish Team Building AgentQL

0
Subscribe to my newsletter

Read articles from RL Nabors directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

RL Nabors
RL Nabors