Output
Formatting and returning agent results
Output
Outputs are the results and data produced by your agent after completing execution.
By default, the output of an agent includes all data extracted in data extraction blocks. You can customize this behavior as described below.
Configuring output is optional and not needed, especially if you’re using the agent to perform actions instead of extracting data.
You can configure the output format in the Output tab of the builder interface.
You have the ability to output any or all of the data extracted by your agent via a dropdown menu which contains all Inputs and Variables.
Example
Let’s say you have an agent that extracts both the name and the price of a product from a webpage into separate variables titled “product_name” and “product_price”.
You can configure the output of your agent to output either or both of these variables.
When you run your agent, its output will now be a JSON object with the following format:
where the PRODUCT_NAME
and PRODUCT_PRICE
are the values extracted by your agent.