> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-server/002-api/007-result.md).

# Result

## Description

An Action will return a result after done running its configured tasks according to the flow.

The returned Result can be in either of these format:

* **text**: Return a full text as a string.
* **json**: Return a structured JSON data.

## How to use

1. Open the **Result** tab.
2. Select the desired format ot the result.
   * By selecting **text**, you can provide an optional description of the returned data. ![](/files/qDRaZHdPBhof1R7JRu1x)
   * By selecting **json**, you need to provide a list of parameter to return, in which will contain the following: ![](/files/lYgtwcXdB3lIs50yTVY7)
     * **Parameter**: the JSON key of the parameter, basically an identifier.
     * **Description**: an optional, short explanation of what the parameter is.
     * **Type**: the data type of the parameter, can be either **String**, **Number**, **Boolean** or **List**.
3. In the Action Flow, use `Result.setAPI` function block to indicate that the task is finished, and also to provide the resulting data to return. The Inspector content will change depending on the format set.
   * **text**: A single parameter named "text" will appear. ![](/files/Qjivy8wSsgGKoORrcTtv)
   * **json**: A list of parameter will appear according to the parameter list set in Result earlier. ![](/files/SUzpTRXjOp5ayV5Q8gAv)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.emobiq.com/emobiq-server/002-api/007-result.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
