# How can I reuse output of previous functions?

When chaining actions together, it can be useful to use the output of one action as the input of another. The simplest example would be following a Sell action with a Supply action.&#x20;

As the output of a Sell cannot be known ahead of time (it can only be estimated), you can directly link its output to be used as the input of the Supply action later on. This way, no "dust" is left behind (i.e. you don’t have to underestimate the output of the Sell action) and recipe creation is made easier.&#x20;

Whenever the UI detects you can reuse previous outputs, it will be shown with a dropdown allowing you to to select a value, along with its source. If the original value is changed, the value passed down will be updated too.&#x20;

***

## Related Articles:

* [Use-case](https://help.defisaver.com/features/recipe-creator/use-case)
* [Is Recipe Creator safe to use?](https://help.defisaver.com/features/recipe-creator/is-recipe-creator-safe-to-use)
* [Pre-made recipes / Recipe Book](https://help.defisaver.com/features/recipe-creator/pre-made-recipes-recipe-book)


---

# 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://help.defisaver.com/features/recipe-creator/how-can-i-reuse-output-of-previous-functions.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.
