> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Morpho Integration

Supercharge your DeFi strategies by connecting Morpho to your custom workflows via B3OS. Automate liquidity management, optimize yield farming, and exec...

![Morpho logo](https://ai-icon.b3.fun/logo/morpho) Integration available

Supercharge your DeFi strategies by connecting Morpho to your custom workflows via B3OS. Automate liquidity management, optimize yield farming, and execute complex lending operations across Morpho Blue and Vaults without manual intervention.


**[Public page](https://b3os.org/integrations/app/morpho)**

Open the user-facing integration overview for examples, templates, and sharing.
  **[Action reference](/actions/reference)**

Schema-level references for executable actions and test payloads.
  **[Trigger reference](/actions/trigger-reference)**

Event and schedule triggers that can start B3OS workflows.

## Build With Morpho

Use Morpho when a workflow needs to call DeFi Lookup, Morpho Blue Borrow, Morpho Blue Get Positions or related Morpho operations from a typed B3OS action. Start in the visual editor to connect an account, then use the references below for payload shape, required fields, and API testing.

## Available Actions

| Action | ID | Connector | Required fields |
| --- | --- | --- | --- |
| ![DeFi Lookup logo](https://ai-icon.b3.fun/logo/debank) [DeFi Lookup](/actions/reference/generated/debank-defi-lookup) | `debank-defi-lookup` | `-` | `address` |
| ![Morpho Blue Borrow logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Borrow](/actions/reference/generated/morpho-blue-borrow) | `morpho-blue-borrow` | `wallet` | `marketId`, `chainId`, `amount` |
| ![Morpho Blue Get Positions logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Get Positions](/actions/reference/generated/morpho-blue-get-positions) | `morpho-blue-get-positions` | `-` | `accountAddress`, `chainId` |
| ![Morpho Blue Repay logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Repay](/actions/reference/generated/morpho-blue-repay) | `morpho-blue-repay` | `wallet` | `marketId`, `chainId`, `amountMode` |
| ![Morpho Blue Supply logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Supply](/actions/reference/generated/morpho-blue-supply) | `morpho-blue-supply` | `wallet` | `marketId`, `chainId`, `amount` |
| ![Morpho Blue Supply Collateral logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Supply Collateral](/actions/reference/generated/morpho-blue-supply-collateral) | `morpho-blue-supply-collateral` | `wallet` | `marketId`, `chainId`, `amount` |
| ![Morpho Blue Withdraw logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Withdraw](/actions/reference/generated/morpho-blue-withdraw) | `morpho-blue-withdraw` | `wallet` | `marketId`, `chainId`, `amountMode` |
| ![Morpho Blue Withdraw Collateral logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Blue Withdraw Collateral](/actions/reference/generated/morpho-blue-withdraw-collateral) | `morpho-blue-withdraw-collateral` | `wallet` | `marketId`, `chainId`, `amountMode` |
| ![Morpho Claim Rewards logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Claim Rewards](/actions/reference/generated/morpho-claim-rewards) | `morpho-claim-rewards` | `wallet` | `rewardToken`, `chainId` |
| ![Morpho Get Best APY logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Get Best APY](/actions/reference/generated/morpho-get-best-apy) | `morpho-get-best-apy` | `-` | `tokenAddress` |
| ![Morpho Get Claimable Rewards logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Get Claimable Rewards](/actions/reference/generated/morpho-get-claimable-rewards) | `morpho-get-claimable-rewards` | `-` | `userAddress`, `chainId` |
| ![Morpho Get Vault APY logo](https://cdn.b3.fun/b3os-icons/morpho.svg) [Morpho Get Vault APY](/actions/reference/generated/morpho-get-vault-apy) | `morpho-get-vault-apy` | `-` | `vaultAddress`, `chainId` |


6 more actions are listed in the full action reference.

## Available Triggers

No trigger references are published for this integration yet.


## Common Use Cases

**Automated Yield Compounding**

Monitor Morpho Vault APY and automatically trigger reward claims and re-deposits to maximize your compound interest over time.
  **Dynamic Collateral Management**

Automatically manage your Morpho Blue positions by supplying or withdrawing collateral based on real-time position data to maintain optimal LTV ratios.
  **Smart Liquidity Rebalancing**

Use the 'Morpho Get Best APY' action to scan for optimal rates and automatically move assets between different Morpho Vaults or Blue markets.
  **Automated Debt Repayment**

Programmatically monitor your borrowed amounts and trigger 'Morpho Blue Repay' actions when specific liquidity or reward thresholds are met to minimize interest costs.

## Connector Notes

- Create the connector from a trusted B3OS organization before publishing workflows that call external accounts.
- Keep OAuth tokens, API keys, bot tokens, channel IDs, and account IDs in connector settings or workflow props, not in reusable public template text.
- Test with the visual editor or `POST /v1/actions/{type}/test` before routing production traffic.

## Related Templates

| Template | Description | Tags |
| --- | --- | --- |
| [Coinbase Biz + Morpho: Rebalance for Max Yield](https://b3os.org/templates/treasury-usdc-rebalancer) | This is a workflow you can have running on a preset cadence where your Coinbase Biz balance w... | coinbase, wallet, payment, treasury, accounting |
| [Morpho + Polymarket: Borrow to Place Bets](https://b3os.org/templates/morpho-usdc-auto-fund) | Monitors your wallet's USDC.e balance on Polymarket every 5 minutes. When the balance drops b... | defi, lending, polymarket, morpho |
| [Morpho: Auto-rotate into Highest-Yielding Vault](https://b3os.org/templates/morpho-auto-rotate-vault) | Rotates your token across Morpho vaults and moves to the highest-yielding one. Checks rates t... | defi, morpho, vault |
| [Morpho: Deposit into Top-Paying Vault](https://b3os.org/templates/morpho-deposit-top-vault) | Finds the highest-paying Morpho vault for your chosen token \(with at least $1M TVL\) and depos... | defi, deposit, morpho |
| [Morpho: LTV Alerts + Repay](https://b3os.org/templates/morpho-ltv-alerts-repay) | Watches every Morpho Blue borrow position you have on the chosen chain. When any position cro... | defi, lending, morpho |
| [Morpho: Vault Rebalancer](https://b3os.org/templates/morpho-vault-rebalancer) | Weekly check: if a Morpho USDC vault on Base offers better APY than your current vault \(confi... | defi, morpho, vault |
| [Plume: Looped pUSD Yield via Nest + Morpho](https://b3os.org/templates/nest-morpho-leverage-loop) | This workflow builds a leveraged pUSD yield position on Plume by looping deposits between Nes... | defi, lending, nest, plume |

## FAQ

**How can I automate my Morpho Blue lending strategy?**

Using B3OS, you can create automated workflows that trigger actions like 'Morpho Blue Supply' or 'Morpho Blue Borrow' based on specific market conditions or balance thresholds, ensuring your capital is always working efficiently.
  **Can I automate yield harvesting on Morpho Vaults?**

Yes. You can build a workflow that uses 'Morpho Get Vault APY' to monitor returns and automatically triggers 'Morpho Claim Rewards' and 'Morpho Vault Deposit' to compound your interest seamlessly.
  **How does B3OS help with risk management on Morpho?**

You can set up monitoring workflows using 'Morpho Blue Get Positions' to track your collateral levels. If your health factor drops, B3OS can trigger 'Morpho Blue Repay' or 'Morpho Blue Withdraw Collateral' to mitigate liquidation risks.
  **Can I find the best yields automatically?**

Absolutely. By integrating the 'Morpho Get Best APY' action into your automation logic, you can programmatically shift liquidity to the most profitable vaults or markets available on the protocol.
  **Do I need to write smart contracts to use Morpho integrations?**

No. B3OS provides a low-code/no-code environment where you can connect these Morpho actions into powerful automated sequences without needing to deploy your own complex contract logic.