Building a Degen Agent that Apes in low-caps on Solana

This tutorial shows you how to create an AI-Agent using Loomlay that autonomously identifies and trades low market cap Solana tokens.

Plugins You'll Need

  • Solana Wallet

  • Jupiter Plugin

  • Telegram Plugin (Check out our short guide on how to retrieve your Telegram Bot token and Chat ID here)

Workflow 1

Workflow Type: Run on Repeat (Every 60 minutes) Workflow Instructions:

1. Check the latest posts of the SolanaDexPaid channel in Telegram (channel ID: -1002341018601).
2. Each post will include information about a specific token, including its "CA:", "Last 1H:", "Market Cap:", and ticker symbol (e.g.$DEEPVINE).
3. Exclude posts that have a "Market Cap:" value greater than 80K (K stands for thousands, so filter out posts with a Market Cap value above 80,000). Ignore posts where the "Market Cap:" contains "M" or "B" (for millions or billions e.g 1B or 1M).
4. Exclude posts with a "Last 1H:" value of less than 20K (20,000).
5. When filtering is complete, randomly pick one ticker and extract the Solana contract address ("CA:") and ticker symbol from the filtered post.
6.Pass the Solana contract address ("CA:") and ticker symbol to the **buy_decision** workflow as context.

Workflow 2

Workflow Type: Custom Workflow name: buy_decision Workflow Instructions:

1. Receive Solana address as context and check your Solana wallet ({wallet_address}) with the 'balance' function to know if you already hold this token. If you do - finish here
2. Check your current SOL balance in your Solana wallet using the 'balance' function
3. Use 3% of available SOL in your Solana wallet to buy the token through Jupiter plugin's 'jupiter_buy" function
4. Message me to my Telegram (ID {user_id}) with the caption: "Aped in this token like a real human degen!" and include the ticker, contract address and number of tokens bought
5. Finish

💡 Important Notes:

  • Fund your agent's Solana wallet before starting, ensure there's sufficient SOL balance for the Agent to perform trades.

  • Review token screening parameters carefully.

  • Consider ChatGPT API pricing when adjusting workflow frequency.

  • NFT minting is required (one-time process)

Last updated