graph LR
1["`<strong>userInteraction</strong><br>config`"]
5["`<strong>marketData</strong><br>get chart image`"]
6["`<strong>ai</strong><br>ai chat`"]
4["`<strong>bluefin</strong><br>get position detail`"]
9["`<strong>userInteraction</strong><br>sign transaction`"]
8["`<strong>bluefin</strong><br>auto rebalance`"]
10["`<strong>telegram</strong><br>send msg to telegram`"]
Start(["`Start`"])
3{"`<strong>if</strong><br>If position exists`"}
2["`<strong>bluefin</strong><br>fetch user positions`"]
7{"`<strong>if</strong><br>If price out of range`"}
1 ---> 2
5 ---> 6
6 ---> 7
4 ---> 5
9 ---> 10
8 ---> 9
Start ---> 1
3 ---> 4
2 ---> 3
7 ---> 8
Keep your trading positions optimized using AI predictions that analyze market trends and automatically adjust your position ranges when needed.
This workflow is designed for DeFi users who have CLMM (Concentrated Liquidity Market Maker) positions on Bluefin and want to automatically rebalance them based on AI market predictions.
CLMM positions can become inefficient when prices move outside the intended range. Manually rebalancing requires constant monitoring and market analysis. This workflow uses AI to analyze market trends and predict optimal price ranges, then automatically rebalances your positions when they drift more than 20% from the predicted range, helping you maintain optimal position efficiency.
Fetches your current CLMM positions from Bluefin
Uses AI to analyze market charts and predict optimal price ranges
Compares your current position range with the AI's prediction
Triggers rebalancing when position is more than 20% off from predicted range
Creates, signs, and submits the rebalancing transaction to the blockchain
Set the tradingview symbol in the config node (default: "BLUEFIN:SUIUSDC_15DBCA.USD")
Set the interval in the config node (default: "1D")
Set coin A in the config node (default: "SUI")
Set coin B in the config node (default: "USDC")
Enter your wallet address in the config node (Sui wallet)
MarketData - Analyze Market with AI: Analyzes market data using AI to provide insights and predictions
Bluefin - Get User Positions: Retrieves all liquidity positions for a user account on Bluefin protocol
Bluefin - Get Position Details: Retrieves detailed information for a specific liquidity position, including price range, token amounts, and current status
Bluefin - Auto Rebalance Position: Automatically rebalances a liquidity position to new price ranges
ChainKit - Sign Sui Transaction: Signs a transaction on Sui blockchain
Telegram - Send Telegram Message: Sends text messages through Telegram's bot API using _chatId, message, and optional parameters
_
Tip: This executable workflow was automatically generated by SeamFlux Bot. To use it, create an execution and test it with your data to ensure it meets your needs.
Ready to get started?
to run this template or create a scheduled task, and ask AI about detailed node execution steps.
Run Locally — download this workflow as a ZIP or run it via Seamflux CLI in your terminal; use the "Run Locally" button above to choose.
Build a workflow from scratch using AI chat. No complex parameter configuration or flowchart dragging needed.