All projects

Symphony

Compose automated DeFi strategies in natural language powered by AI and Chainlink CRE.

CRE & AI DeFi & Tokenization

What it is

Symphony is a natural-language interface for DeFi automation.
Users describe trading or portfolio management strategies in plain English, such as: “If ETH drops below $2000, withdraw my USDC from Aave.”

Gemini AI parses the user’s intent into a structured rule consisting of a condition and an action. The rule is stored in the backend and monitored by a Chainlink CRE workflow, which runs on a decentralized oracle network.

Every few minutes the CRE workflow:

  1. Reads the ETH/USD price from a Chainlink price feed.
  2. Fetches active user strategies from the backend.
  3. Evaluates each strategy’s condition.
  4. If a condition is met, the workflow executes the corresponding action on-chain through a smart contract.
    Execution happens via a per-user SymphonyExecutor contract, which performs DeFi actions like withdrawing funds from Aave or swapping tokens on Uniswap.
    This architecture removes the need for centralized trading bots or always-online servers. Instead, automation is handled by Chainlink’s decentralized infrastructure, ensuring strategies run reliably without requiring users to maintain infrastructure themselves.
    Symphony solves the problem that DeFi automation is currently inaccessible to most users. Existing automation tools require technical setup or rigid configuration interfaces. By allowing users to simply describe their intent in natural language, Symphony makes automated DeFi strategies far more accessible.

How it Works

Symphony consists of four main components:
Frontend (Next.js)
A web interface where users compose strategies in natural language, view active strategies, and monitor execution logs.
Backend (Node.js + Express + MongoDB)
Handles strategy storage, execution logs, and AI parsing. Gemini AI converts natural language prompts into structured rules containing one condition and one action.
Chainlink CRE Workflow
A workflow written in TypeScript that runs on the Chainlink Decentralized Oracle Network. The workflow orchestrates the automation process by reading on-chain price feeds, fetching strategies from the backend, evaluating conditions, and triggering on-chain execution.
Smart Contracts (Solidity / Foundry)
SymphonyExecutor contract performs DeFi operations. A SessionManager contract authorizes the Chainlink DON via session keys so that workflows can execute actions on behalf of users securely.
For demo reliability, the project includes mock Aave and Uniswap contracts that simulate protocol behavior while maintaining realistic interfaces.

Links

Created by

  • Shiv Shakti Rai