> For the complete documentation index, see [llms.txt](https://docs.coherent.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherent.global/assistant/mapper/mapping-inputs-and-outputs.md).

# Mapping Inputs & Outputs

For Excel models to work with Spark, the workbook must have inputs and outputs mapped. This is typically done by setting specific Named Ranges in the Excel file, which Spark can recognize. These mapped inputs and outputs will correspond to the parameters of the API request and the API response.

Before the introduction of Mapper, creating inputs and outputs involved manually establishing named ranges in the traditional manner. Now, you can simply select your inputs/outputs and add them with a single click. Here's how:

1. Open **Mapper** application.
2. Click on **Start mapping**.
3. Navigate in Excel ranges that you want to identify as inputs and outputs. Select the first input you would like to add.
4. The input will appear on the taskpane as shown below.
5. Click on **Add selected (1)**

<figure><img src="/files/8AxWK2eYIVYtvRPXIu57" alt=""><figcaption><p>Adding inputs and outputs step by step</p></figcaption></figure>

{% hint style="info" %}
You can also hold down CTRL and select multiple cells/ranges, this will let you map multiple inputs or outputs at the same time.
{% endhint %}

### How are my inputs/outputs saved?

After identifying your inputs and outputs with Mapper, you'll notice that Named Items are created for the selected cells. By default, Mapper assigns names to the inputs/outputs based on the content of the cell to their left. If the cell to the left is empty, Mapper will use the cell's address as the name.

You can also create inputs and outputs by manually mapping them through Excel Name Manager. Every named range that is prefixed by `Xinput` or `Xoutput` will automatically added to Mapper.

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

{% hint style="info" %}
You can always rename your inputs/outputs by clicking on the name in the taskpane. Do not use period/dot character ( . ) in your input or output names; this character is specifically reserved for defining sub-services.
{% endhint %}

### What are inputs and outputs?

In Excel, inputs serve as the user's starting point. They involve entering data crucial for your model. The outcomes of your Excel model represent the findings you wish to present to the end user. These outcomes can manifest as a calculated cell, a table, a chart, or a pivot table.

<figure><img src="/files/131SzZjr8Pr08ux91NfW" alt=""><figcaption></figcaption></figure>

An example of input and output for a simple model can be BMI. For the body mass indicator calculator, the inputs of the model are age, body weight, and height whereas the output will be the

{% hint style="info" %}
For more details about mapping inputs and outputs, please check out [How to: Map inputs and outputs](/build-spark-services/map-inputs-and-outputs.md)
{% endhint %}


---

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

```
GET https://docs.coherent.global/assistant/mapper/mapping-inputs-and-outputs.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.
