LearnAI
Новинки AI · Веб-агенты · Lesson 5/10
← To the catalog
Task

Result in a table: how to set the output format

Set the result output format. Return ONLY JSON: {"goal":"what are we collecting","columns":"what columns are needed in each row","sort_by":"by which field to sort and in what order","row_limit":"how many options to return","format":"view: table / list / other"}

Unlock access to submit solutions for instant AI review.
Manage result format
💡 A piece of theory

The format is the form into which the agent casts what he finds. The same data can be returned as a sheet of text (useless) or a table with the same columns (comparatively instantaneously). Mechanics: if you name the columns in advance, the agent tries to fill each one for each option - which means it purposefully looks for exactly these facts on the page. An empty cell becomes an honest “no data” signal rather than a silent pass. Trick: ask for the same set of columns for all rows plus sorting - “sort by price in ascending order.” So the result itself is built into the order of decision-making. Second trick: limit the number of rows (“top 5”) and add a column “link” and “source” - without a link, the result cannot be double-checked. Insider: the specified columns work as a search checklist - the agent does not forget to get the delivery date if there is a column for it. A common mistake is to ask for a “table” without naming the columns. Then the agent comes up with the structure itself, and the lines end up with different fields that cannot be compared.

How is it assessed · passing 70

  • 1Valid JSON without text around it30%
  • 2There are fields goal, columns, sort_by, row_limit, format30%
  • 3Columns, sorting and limit are specified specifically40%
Your promptClaude ⌄
🔒

Unlock access to submit solutions for instant AI review.