DeFAI Agent (ft. BNB Chain)
Unlocking ShellAgent’s DeFAI Features in Crypto
Last updated
Unlocking ShellAgent’s DeFAI Features in Crypto
Last updated
ShellAgent already provides a robust suite of multi-modal development tools, making AI agent creation more powerful and accessible than ever. But for many creators, the missing piece has been DeFAI integration, from token transfers and swaps to seamless token deployments.
If you’ve been waiting for this, good news! MyShell has now introduced blockchain functionality to ShellAgent, unlocking a new realm of possibilities for AI agents.
This document will walk you through the process, ensuring you can seamlessly build and launch on-chain AI agents. Let’s get started!
You can choose either ShellAgent local upload or ShellAgent cloud selection.
Go to https://app.myshell.ai/robot-workshop/create and select ShellAgent Mode
If you’ve already created an agent in ShellAgent Cloud, click “Cloud” and select your agent.
If you haven’t created any agents in Cloud yet, you can import a JSON file in Local Mode instead.
Right-click on the above .json link and select "Save link as..." to download the .json file.
Create an agent from templates
Choose the template
Choose the template of DeFAI Agent.
Save your configuration
Click the Save button on the top right corner of the interface
Create a greeting message here to define your agent’s personality and clearly communicate its purpose to users.
The Transfer workflow is structured into three key states, managing your agent’s transfer functionality. The default settings are optimized to work seamlessly without the need for modifications.
When users initiate the “Transfer Token” workflow, they can define the token type, transfer amount, and recipient address. These details are then passed to the next state for processing.
Once the Transfer Form input is received, the system queries the Wallet Asset Explorer widget and utilizes LLM to generate the transfer details.
Once the information is displayed, the process advances to its final state.
The transition is smooth and intuitive, allowing users to review the recipient address and details before proceeding.
When users click the “Transfer” button, a wallet popup will appear, prompting them to sign the transaction.
The Swap token workflow has three states designed to guide users through the token swapping process.
Swap form:
⚠️ Swap Tokens Protection: To minimize slippage in illiquid pairs, only a curated selection of popular tokens is available.
⚠️ Only WBNB pools are supported. Make sure either the base token or the quote token is WBNB.
The Swap function is a predefined feature, not a widget. Do not modify the token options in the list or the token variables in the output, as this will cause errors.
Once the “Swap Token” workflow is triggered, users can enter the swap amount (how much base token to pay) and select the From/To tokens using the dropdown menu.
Before placing a swap order, users must grant approval for the PancakeSwap v3 contract to access their tokens.
Clicking the "Approve" button in this state triggers an authorization popup.
Clicking "Skip" automatically advances to the next state.
In this state, users can review and confirm their trading pair. Clicking “Swap” will trigger the wallet plugin to process the transaction.
The process consists of two main states, making it simple and easy to follow.
When users start the “Deploy Token” workflow, they only need to enter their desired token name and symbol to get started.
The deployment process is powered by the “Contract Call Encoder” widget.
Once users confirm the format and options, clicking “Deploy” will trigger a wallet popup to finalize the process.
Once you’ve made your modifications, simply hit “Run” in the top-left corner to see your agent in action!
For years, crypto and DeFi applications have struggled with complex user experiences, limiting accessibility for many users. But with the rise of AI agents, those barriers are starting to break down. Now, with more crypto features on ShellAgent, AI x DeFi isn’t just a concept—it’s something you can build today.
Whether you’re creating a DeFi-powered AI assistant, an automated trading bot, or an on-chain agent, ShellAgent equips you with the tools to make it happen.
While MyShell has already seen innovative AI agents in image & video generation and companion AI, the real breakthroughs are just beginning. With more powerful, versatile, and intelligent AI agents, the next wave of AI innovation is here.
Start building, experiment with crypto integrations, and take your AI agent to the next level with MyShell!