# 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. ![](https://489318254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKpIso420Eq6T1MZWmK3R%2Fuploads%2Fgit-blob-da72620aee7b8a077f637fdf6d9506ed0a8761a2%2FResult-text.png?alt=media)
   * By selecting **json**, you need to provide a list of parameter to return, in which will contain the following: ![](https://489318254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKpIso420Eq6T1MZWmK3R%2Fuploads%2Fgit-blob-ac71b54cf6933434156861c5f77e646b5e2abec6%2FResult-json.png?alt=media)
     * **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. ![](https://489318254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKpIso420Eq6T1MZWmK3R%2Fuploads%2Fgit-blob-475e81cb0c16d5818cd2ce13884b600e0d1cedcc%2FResult-flow-text.png?alt=media)
   * **json**: A list of parameter will appear according to the parameter list set in Result earlier. ![](https://489318254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKpIso420Eq6T1MZWmK3R%2Fuploads%2Fgit-blob-a8f5f4e97de9bf8d41827b988ba1f6b909fa7e88%2FResult-flow-json.png?alt=media)
