# Swap

## Overview

The [Swap Building Block](/factor-building-blocks/swap.md) functions as an automation and composability layer between the incoming swap request and multiple integrated liquidity protocols. With the Swap Building Block, strategies can easily swap between any ERC20 token thereby creating endless possibilities for multi-token strategies.

## Actions

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

1. **Input Token:** Select the token to swap from by searching via token symbol or name.
2. **Input Token Amount:** The number of input tokens that will be swapped.
3. **Output Token:** Select the token to receive by searching via token symbol or name.
4. **Protocol:** Select the swap protocol through which your trade will be routed.
5. **Swap Settings:** Configure a [max slippage](/getting-started/glossary.md#slippage) for your swap to avoid trading at unfavourable rates.


---

# 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.factor.fi/factor-studio/strategy-builder/building-blocks-user-guide/swap.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.
