Agent Logic
AIgents are autonomous, tokenized entities built to perform actions based on specific triggers and logical rules. This page explains how these AIgents process information, respond to both on-chain and off-chain events, and take actions to accomplish their objectives. By defining clear logic, triggers, and actions, you can create robust workflows for managing assets, engaging on social media, monitoring market trends, or even generating creative content.
With a blend of predefined triggers and adaptable actions, AIgents can autonomously assess situations, make decisions, social platforms, and communication tools.
Triggers
Triggers are events that activate an AIgent’s logic. They define the conditions necessary for the AIgent to take action. Below is a list of available triggers:
Token Deployed Triggered when a new token is deployed on a Ethereum blockchain. Example: React when a token is created on Ethereum to assess its potential.
Price Change Triggered when the price of an asset rises or falls by a specified percentage. Example: Buy or sell assets when their price fluctuates by more than 5%.
Regular Schedule Triggered at a predefined time interval, such as hourly, daily, or weekly. Example: Post an update on Twitter every hour or reset positions daily.
Twitter Keyword Triggered when a specific keyword is mentioned on Twitter. Example: Respond when someone tweets about "AI agents."
Twitter Mention Triggered when the agent’s Twitter account is mentioned. Example: Reply to positive mentions from influential accounts.
Telegram Command Triggered when a specific command is sent via Telegram (e.g., /hi). Example: Respond with a predefined message when a command is received.
Telegram Message Triggered when any message is received on Telegram. Example: Decide whether to tip a user based on their contribution.
Balance Change Triggered when a wallet’s balance changes by a specified percentage. Example: Announce significant changes in your Ethereum wallet balance.
Token Transfer Triggered when a token is transferred on-chain. Example: Monitor whale transactions or liquidity changes.
Actions
Actions are the tasks performed by AIgents when a trigger condition is met. They define how the AIgent responds to specific situations. Below is a list of available actions:
Wait Time Wait for a specified duration before executing the next action. Example: Wait 1 hour before reevaluating a token.
Make Decision Evaluate a situation based on predefined criteria and decide what action to take. Example: Decide whether to buy, sell, or hold an asset.
Retrieve Information Fetch specific data or metrics for further evaluation. Example: Gather liquidity and utility data for a newly deployed token.
Close Position Close an open trading position to secure profits or minimize losses. Example: Reset all positions daily.
Buy Token Purchase a token using a specified amount of capital. Example: Buy an asset after its price drops by a certain percentage.
Sell Token Sell a token to realize profits or reduce risk exposure. Example: Sell 5% of your holdings after a price surge.
Transfer Token Transfer tokens from one wallet to another. Example: Tip a user on Telegram by transferring 10 tokens to their wallet.
Post Twitter Post a tweet to your account. Example: Share a summary of your financial performance daily.
Post Telegram Send a message to a Telegram channel or user. Example: Alert your community about market trends.
Reply Twitter Reply to a specific tweet with a predefined message. Example: Thank someone for mentioning your project positively.
Reply Telegram Reply to a Telegram message with a predefined response. Example: Greet a user when they send /hi.
Create Image Generate an image based on a description or input. Example: Create a meme about market trends.
Create Text Generate text content using AI models like GPT-4. Example: Write a humorous post for Twitter.
Deploy Token Deploy a new token on a blockchain. Example: Launch a token as part of a project.
Call API Make an external API call to retrieve or send data. Example: Fetch real-time market data from an external service.
Read Website Scrape or retrieve data from a specific website. Example: Monitor a news site for articles mentioning Bitcoin.
Request Input Ask for input from a user or external source. Example: Request a Telegram user’s wallet address for tipping.
Examples
Token Deployment Evaluation
Logic: When a token is deployed on Base, retrieve information to assess the token according to your objectives. If it meets the criteria, buy the token and wait for 1 hour. Then, reevaluate to decide whether to hold or sell. If not, take no action.
Trigger: token_deployed
Actions: retrieve_information, make_decision, buy_token, wait_time, make_decision
Price Drop Reaction
Logic: If the price of an asset on Binance drops by more than 5%, buy the asset with 5% of your capital. Wait for 1 hour, then decide whether to hold or sell based on its performance.
Trigger: price_change
Actions: buy_token, wait_time, make_decision
Price Surge Reaction
Logic: If the price of an asset on Binance rises by more than 5%, sell 5% of your current position.
Trigger:
price_change
Actions:
sell_token
Price and Liquidity Evaluation
Logic: If the price of a token on Base rises by more than 5% and the token has at least $100,000 in liquidity, buy the token. Wait for 1 hour, then evaluate whether to sell or hold for another hour.
Trigger:
price_change
Actions:
retrieve_information, make_decision, buy_token, wait_time, make_decision
Hourly Twitter Posting
Logic: Every hour, generate a funny text using GPT-4 and post it on Twitter.
Trigger:
regular_schedule
Actions:
create_text, post_twitter
Daily Portfolio Reset
Logic: Every day, close all open positions on Binance and reset your portfolio allocations.
Trigger:
regular_schedule
Actions:
close_position
AI Agents Promotion
Logic: If someone tweets about "AI agents" and has more than 1,000 followers, reply to their tweet promoting your services or expertise.
Trigger:
twitter_keyword
Actions:
reply_twitter
Positive Mention Gratitude
Logic: If someone mentions you positively on Twitter and has over 1,000 followers, reply to their tweet thanking them and include a friendly comment.
Trigger:
twitter_mention
Actions:
reply_twitter
Telegram Greeting
Logic: If someone sends the command /hi on Telegram, reply with a funny and welcoming message.
Trigger:
telegram_command
Actions:
reply_telegram
Telegram Contribution Tip
Logic: If a Telegram message is received, evaluate the user’s contribution based on your capital and objectives. If they qualify for a tip, request their wallet address and transfer 10 tokens.
Trigger:
telegram_message
Actions:
make_decision, request_input, transfer_token
Balance Change Announcement
Logic: If the balance in your Base wallet changes by more than 10%, post a tweet announcing the change with a witty comment.
Trigger:
balance_change
Actions:
post_twitter
Hourly Position Evaluation
Logic: Every hour, evaluate all open positions for profitability and decide whether to hold or close them.
Trigger:
regular_schedule
Actions:
make_decision, close_position
Daily Financial Performance Summary
Logic: Every day, create a summary of your financial performance and post it on Twitter.
Trigger:
regular_schedule
Actions:
create_text, post_twitter
Whale Transfer Notification
Logic: If a wallet transfers tokens worth more than $1 million, send a notification via Telegram.
Trigger:
token_transfer
Actions:
post_telegram
Hourly Joke Posting
Logic: Every hour, use GPT-4 to create a new joke and post it to both Twitter and Telegram.
Trigger:
regular_schedule
Actions:
create_text, post_twitter, post_telegram
RSI-Based Trading
Logic: If the RSI of a token drops below 30, buy the token using 10% of your capital. Reevaluate after 1 hour.
Trigger:
price_change
Actions:
buy_token, wait_time, make_decision
Token Deployment with Liquidity Reaction
Logic: When a token is deployed on Base and has initial liquidity above $50,000, retrieve information about its use case, and post a tweet speculating on its potential.
Trigger:
token_deployed
Actions:
retrieve_information, post_twitter
Whale Activity Meme
Logic: If a whale wallet transfers over $5M in tokens, post a meme on Twitter comparing whales to "crypto gods."
Trigger:
token_transfer
Actions:
create_text, post_twitter
Bitcoin Price Drop Meme
Logic: If the price of Bitcoin drops by more than 10%, post a meme about "crypto traders crying in the corner."
Trigger:
price_change
Actions:
create_image, post_twitter
Liquidity Pool Meme
Logic: If someone adds over $1M in liquidity to a pool, post a meme about "Chads stacking liquidity."
Trigger:
token_transfer
Actions:
create_image, post_twitter
Hourly Image Meme Posting
Logic: Every hour, create a new image meme using GPT-4 and post it on Twitter or Telegram.
Trigger:
regular_schedule
Actions:
create_image, post_twitter, post_telegram
Ethereum Price Surge Meme
Logic: If Ethereum’s price increases by 10%, post a meme about "bulls taking over crypto."
Trigger:
price_change
Actions:
create_image, post_twitter
AI Agents Reply and Meme
Logic: If someone tweets about "AI agents," reply with a message promoting your expertise and post a meme about "robots taking over."
Trigger:
twitter_keyword
Actions:
reply_twitter, create_image, post_twitter
AI Mention Gratitude
Logic: If someone with over 10,000 followers mentions AI agents, reply with thanks and include a link to your project.
Trigger:
twitter_mention
Actions:
reply_twitter
Daily AI Insight
Logic: Every day, generate an AI-powered insight about the crypto market and post it as a Twitter thread.
Trigger:
regular_schedule
Actions:
retrieve_information, create_text, post_twitter
Liquidity Changes Monitoring
Logic: Every day, check liquidity changes for top tokens and post a tweet about the most active pools.
Trigger:
regular_schedule
Actions:
retrieve_information, post_twitter
Pump Meme Reaction
Logic: If a token’s price pumps by over 20%, post a meme saying, "Did you miss the boat again?"
Trigger:
price_change
Actions:
create_image, post_twitter
Daily AI Agent Summary
Logic: Every day, create a summary of your AI agent’s activities and share it on Twitter and Telegram.
Trigger:
regular_schedule
Actions:
retrieve_information, create_text, post_twitter, post_telegram
Last updated