FlowSense

AI-Powered Flow Automation. Execute complex DeFi with one natural language sentence.

FlowSense

Created At

ETHGlobal New Delhi

Project Description

FlowSense is an AI-driven blockchain automation platform built natively for the Flow ecosystem. Our mission is to eliminate the complexity of decentralized finance (DeFi) by transforming difficult, multi-step blockchain workflows into simple, human-readable instructions.

Think of FlowSense as an intelligent agent that sits between you and the Flow blockchain. Instead of manually navigating multiple DeFi protocols, signing complex transactions, and setting exact parameters, you simply tell FlowSense what you want to achieve using natural language.

How It Works:

  1. Intent Recognition: A user types a request, such as "Send 100 FLOW to 0x9c00faae746705fe tomorrow." or "Use my 100 FLOW to buy and stake more FUSD tokens".

  2. Intelligent Discovery: Our AI agent dynamically scans and discovers available actions defined in our Cadence smart contracts on the Flow blockchain. This allows the platform to understand its full range of capabilities.

  3. Action Composition: The AI interprets the natural language request, extracts key parameters (amount, recipient address, action type, timing), and composes a structured, atomic Flow transaction. For complex requests, it can chain multiple actions together (e.g., Harvest Rewards → Swap Token → Add Liquidity).

  4. Flexible Execution:

    - Immediate: For transactions needing instant settlement (e.g., an immediate transfer).
    - Scheduled: For future operations (e.g., "Transfer 50 FLOW to 0x1b23faae746705fe on 5th of this month"), providing a powerful automation layer.
    
  5. Atomic Execution: The final structured transaction is submitted to the Flow network with comprehensive native validation, ensuring real asset movement with built-in checks for balance, receiver verification, and timing.

Core Innovation and Impact:

FlowSense is pioneering a new era of blockchain interaction defined by:

  1. No-Code Flow DeFi: It makes the entire Flow DeFi ecosystem accessible to everyone, regardless of their technical expertise, driving mainstream adoption.

  2. Dynamic Discovery: The platform's ability for AI agents to dynamically discover available actions on the blockchain is a breakthrough. As new protocols launch on Flow, FlowSense can instantly integrate and leverage those capabilities without needing major code changes.

  3. Automation Layer: By supporting scheduled operations and complex action chaining, FlowSense moves beyond simple transfers to allow users to build powerful, automated portfolio management strategies.

FlowSense delivers One Sentence. Atomic Execution. It is the foundation for an AI-powered future where managing digital assets is as easy as sending a text message.

How it's Made

FlowSense was engineered as a robust, full-stack, AI-integrated platform built specifically for the Flow blockchain. Our development centered around creating a seamless bridge between natural language commands and atomic, validated blockchain execution. The core architecture is divided into two highly interconnected layers: the On-Chain Logic built with Cadence and the Off-Chain Interface powered by Next.js and FCL (Flow Client Library).

The On-Chain Layer is the operational core, managing real asset movement and comprehensive validation. This layer is defined by several key Cadence smart contracts and scripts. The central contract, FlowSenseActionsFinal.cdc, handles the execution of transactions, including both immediate transfers and the submission of scheduled operations. Crucially, we developed a custom discovery script, discover_actions_final.cdc, which allows the AI agent to dynamically query the blockchain for a list of all currently available functions. This dynamic knowledge base is what enables the AI to be extensible and instantly understand new DeFi capabilities added to the Flow network.

The Off-Chain Layer is built using Next.js and TypeScript for a fast, type-safe frontend experience. This is where the user's natural language input is processed. An integral part of the system is the Intent Processing Phase, where our NLP model takes a sentence like "Send 100 FLOW to Alice tomorrow" and transforms it into a perfectly structured data object, extracting the action, amount, recipient address, and timing. The Flow Client Library (FCL) serves as the necessary bridge, connecting the frontend to the Flow network. We use FCL to execute queries (like the dynamic action discovery and fetching user analytics) and, most importantly, to submit the final, structured transaction using fcl.mutate to the Cadence contract for atomic execution. This combination ensures that the user interface, AI logic, and blockchain transactions work together flawlessly, achieving our goal of One Sentence. Atomic Execution.

background image mobile

Join the mailing list

Get the latest news and updates