# Return Module

* [Definition](#definition)
* [Configuring the Returns module](#configuring-the-returns-module)
  * [Flow variables](#flow-variables)
    * [Source data](#flow-variables)
  * [Result](#result)

### Definition <a href="#definition" id="definition"></a>

The "**Return"** tool module, standard module for use in any flow, was created to transform data using [JSONATA](https://jsonata.org/) and return a response to an HTTP request, thus facilitating the creation of complex operations.

JSONata is a lightweight language designed to query and transform JSON data structures.

The "**Return"** module consists of a single operation, which allows you to manipulate various data and transform this data into the format you want. This module always initializes the data parameter, which allows us, as we saw at [Objects](/english/skyone-studio/integrations/flows/data-operations/object-handling.md) [Handling ](/english/skyone-studio/integrations/flows/data-operations/object-handling.md)in addition to obtaining a set of data, to filter it so that only a specific subset is evoked.

{% hint style="info" %}
"**Return"** is ideal for more complex data manipulations that require a response to an HTTP request. To manipulate data with an internal response in the flow, we recommend the [Data Transformation](/english/skyone-studio/integrations/flows/tool-modules/data-transform-module.md) module. For less complex data manipulations, also without the need for an external response, we recommend using a [SMOP](/english/skyone-studio/integrations/flows/data-operations/smop-small-operations.md).&#x20;
{% endhint %}

### Configuring the Returns module <a href="#configuring-the-returns-module" id="configuring-the-returns-module"></a>

The "**Return"** module appears in the **Tools** option when editing a flow. As soon as you click to add it, the modal opens for configuration:

<figure><img src="/files/GOO0tIeamBiGpwGWYy7f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[Find out about the Module Header here](/english/skyone-studio/integrations/flows/module-header.md).
{% endhint %}

#### Flow variables <a href="#flow-variables" id="flow-variables"></a>

This is the first part of the "**Return"** module configuration. Here, you need to provide a set of data for transformation in JSON format and click on **Validate** to check for any errors and have a preview of the data that will be transformed.

<figure><img src="/files/GnBTn9U3bXqioqiQIsJn" alt=""><figcaption></figcaption></figure>

**Source data**

Add, drag and choose the necessary fields: **Key**, **Value** and **Type** (object, number, etc).

You can also use "**JSON Source"**.

Once you have finished configuring the flow variables, click "**Next"**.

#### Result <a href="#result" id="result"></a>

Under "**Result**", view the Input Data, JSON and JSONATA areas and manipulate them as you wish with JSONATA. The "**Run**" button allows you to test the newly configured variables.

<figure><img src="/files/CpmXUob3scSsBDR0jFeP" alt=""><figcaption></figcaption></figure>

To finish configuring the module, click on "**Save**".


---

# Agent Instructions: 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:

```
GET https://docs.skyone.cloud/english/skyone-studio/integrations/flows/tool-modules/return-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
