bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 37쪽
yShell in the next chapter.
{% endstep %}
{% endstepper %}
## **Deploy the MyShell Agent**
{% stepper %}
{% step %}
[**Create a new agent**](https://app.myshell.ai/robot-workshop/create) from MyShell Workshop for deployment and fill in the required fields
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FSesCmC6vAwmGh4sn3PHj%2Fimage.png?alt=media&token=666a6a0a-5384-4470-bc3f-90d3dabe8cd7" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
Choose **ShellAgent Mode** and **select the configuration** you created in ShellAgent
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FxgqmqsdF1Bbf2mP3jgGc%2Fimage.png?alt=media&token=06c9c5e0-da34-4767-9c76-c3874a34ead9" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Save** it and enjoy your AI agent on MyShell.
{% endstep %}
{% endstepper %}
## **Build the X Agent**
We will create an X Agent that **monitors the comments of the pinned post on your account**. When users comment on your pinned post, the agent's account will automatically respond with the generated results.
In this example, if users comment with their ideas (e.g., a puma at large), the X Agent will respond with a full story and an image based on the idea.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FGFeVf9ML0g9QDnDJjmQI%2Fimage-imageonline.co-merged.png?alt=media&token=992fdc6f-9c72-4406-82f4-f4e5111682d9" alt="" width="375"><figcaption></figcaption></figure>
{% stepper %}
{% step %}
**Create** a new **X Agent** in ShellAgent
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FiI3iKxlMPrYovE16NF6p%2Fimage.png?alt=media&token=1fc2964b-7c93-49c2-8ebc-95b6a2385ceb" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
Set a **text-to-image** workflow
The X Agent simply performs text-to-image generation just like the MyShell Agent above.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FsESoLno3AJKZJlbEvAw6%2Fimage.png?alt=media&token=75b99ffd-9cb4-4f0a-aa4e-bd10b831a56e" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
## Deploy the X Agent
If you follow the steps in [#deploy-the-myshell-agent](#deploy-the-myshell-agent "mention"), you should have a MyShell Agent in Workshop now. 
{% stepper %}
{% step %}
Navigate to the **Setting** tab of the MyShell Agent you have created in Workshop.
{% endstep %}
{% step %}
Scroll down to the end of the page and select the **X Agent's configuration** you just created in ShellAgent.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FlHQo7OUfP7sACKzTBRfK%2Fimage-2.png?alt=media&token=1275d890-6a9e-4337-a588-7d9986b07f97" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Create a new X account** for your X Agent
There are two requirements:
1. The account must follow our official X account [@myshell\_ai](https://x.com/myshell_ai).
2. The account must include a `MyShell Agent’s URL` in the “Website” section of its profile.
{% endstep %}
{% step %}
Make sure your X Agent's account **has followed** our official X account [@myshell\_ai](https://x.com/myshell_ai)
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2F8EI52fZMwQd5QaGLYT2N%2Fimage.png?alt=media&token=e40af8be-fd0d-44bd-b33a-be5f44335d67" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Copy your AI Agent's link** by click the button below
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FX9DM9wl9Rq9vkRzFbWM7%2Fimage.png?alt=media&token=a5294d6f-33ee-4798-b42d-336501171ab2" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Paste the link** into the `Website` field of your X account's profile settings and save it
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FKfMcuD218poAUmbkMUOS%2Fimage.png?alt=media&token=350afb05-e372-46b8-8802-4cce2ca0fc0f" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Connect with X**
Go back to MyShell and connect your X Agent with your X account
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FbV49s9slVjVYh8U5baU4%2Fimage.png?alt=media&token=bd2b2ee3-6f1d-481e-a9c0-9908e771d6d0" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Save** the settings of your X Agent
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FXvQ0MKSogtHsmnDYn0dr%2Fimage.png?alt=media&token=2c98ad45-67a7-433e-954e-b39766740f4c" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
You are all set, but please read the content below.
{% hint style="info" %}
Due to X's restrictions on API calls and third-party app interactions, currently ShellAgent only supports **basic request-and-reply interactions with Premium (blue check/verified) users**.
For the first time, it may take about **one hour** to connect with X. **Please be patient.**
{% endhint %}
## Automated X Account Label
We highly recommend you mark your X Agent account as an `Automated` account to reduce the risk of restrictions. Follow the steps:
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FPhiVtzDfEP45DSLlKY45%2FXAuto.gif?alt=media&token=e858617d-9faf-42b0-a6fb-163995eb1b26" alt=""><figcaption></figcaption></figure>
***
> As MyShell is open to all for building powerful AI Agents, anyone can become a solo entrepreneur.
>
> The AI playing field has never been more wide.
>
> And with crypto in the mix, everything is about to accelerate even faster.
# Kids Book NFT AI Agent w/ BNB Chain
Create a Kids Book AI agent integrated with NFT minting function on BNB Chain
In our previous case study, we demonstrated [how to create a children's book AI agent using ShellAgent with DeepSeek](/create/shellagent-mode/example/child-book). Following a significant update to ShellAgent, AI agents on MyShell now support on-chain interactions including blockchain data analysis, transaction execution, and smart contract engagement.
This case study explores how we integrated NFT minting capabilities into our kids book AI agent. After the agent generates a story, users can opt to mint an NFT on **BNB Chain**. BNB Chain offers substantially lower transaction fees than Ethereum, making it ideal for high-volume operations like NFT minting. This integration creates a natural synergy of AI agents between multi-modal storytelling and BNB Chain's strengths.
## Clarify your idea first
Before getting started, you need a clear vision of how the AI agent will interact with users to accomplish its tasks, setting realistic expectations for different models handling various functions.
Below is a simplified overview of how the Kids Book NFT AI Agent works. We use DeepSeek to transform user text input into prompts that image-generation models can understand, then display both the story and images. Users can continue writing the story, start a new one, or ask DeepSeek to continue the narrative. After the story generation, users can choose whether to mint a NFT for the story on BNB Chain.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FtdaLzAXPWGlKNfttn2Uq%2Fimage.png?alt=media&token=5eab4d3d-8de0-45e1-b89f-3742d614760b" alt="" width="375"><figcaption></figcaption></figure>
Main functions and related widgets:
* Story writer: DeepSeek
* Image generator: Flux
* NFT image uploader (via IPFS): Metadata Uploader
* NFT minting (on BNB Chain): Contract Call Encoder
## A quickstart template for beginners (optional)
Please skip this chapter and go to the next chapter if you are a veteran or you want to learn more about the processes.
There are two ways for quickstart: local upload or cloud selection.
### Local upload
{% stepper %}
{% step %}
[**Create a new agent**](https://app.myshell.ai/robot-workshop/create) from MyShell Workshop and fill in the required fields.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FbLhgxSZdIVDpzdgjuVVJ%2Fimage.png?alt=media&token=63371f76-5e94-4a9c-9436-1799653527aa" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Choose ShellAgent Mode**
Choose **ShellAgent Mode** - Local Upload and then upload the .json configuration below:
{% file src="/files/YJT689mv01GNuf7LmFAh" %}
{% hint style="info" %}
Right-click on the above .json link and select "**Save link as...**" to download the .json file
{% endhint %}
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FJJwLJMjdlrQJr3e5cQIM%2Fimage.png?alt=media&token=c3c193ad-6654-4425-a048-d4c263d389ae" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Save and publish**
Save it and you may publish it if you have a creator pass.
You are all set. Enjoy your agent!
P.S. You may also read this [notice](#notice) if you encounter errors.
{% endstep %}
{% endstepper %}
### Cloud selection
{% stepper %}
{% step %}
**Create an agent from templates**
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2F3CS3xUEB3I6mLAJElnz4%2Fimage.png?alt=media&token=6b478208-3239-444d-984e-d3456dc39b3b" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Choose the template**
Choose the template of <mark style="color:purple;">Kids Book NFT AI Agent</mark>.
{% endstep %}
{% step %}
**Save your configuration**
Click the **Save** button on the top right corner of the interface
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FHk5MAgyURAjXEMdjtryh%2Fimage.png?alt=media&token=8172df78-c257-4a92-9a0a-87f8664ba02f" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Go to the** [**Deployment chapter**](#deployment)
{% endstep %}
{% endstepper %}
## Build the agent from 0 to 1
{% hint style="info" %}
First, please visit [ShellAgent](https://shellagent.myshell.ai/).
{% endhint %}
### Create a blank agent canvas
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FW8nNANOZuf6b4yWJ8ye5%2Fimage.png?alt=media&token=abf3a599-1bd6-4318-98d7-648351cd845a" alt="" width="241"><figcaption></figcaption></figure>
### Enter the name and choose the type
Choose the **MyShell Agent** type.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Fpk5KkWqMcIjxIvl9djdW%2Fimage.png?alt=media&token=63c342ed-c0b2-4b7c-a436-4f40bcafac9c" alt="" width="375"><figcaption></figcaption></figure>
### Edit the Start state
Context variables are like a thread that connects everything within ShellAgent.
{% stepper %}
{% step %}
Add `story`, `reply`, and `calldata` as `text` Type variable.
{% endstep %}
{% step %}
Add `image` as `image` Type variable.
{% endstep %}
{% step %}
Add `USER_WALLET` by `Select System Context` variable and set it as `text` Type variable.
{% endstep %}
{% step %}
Add `nft_address` as `text` Type variable and enter `0x0Cb5c79D59847ACEdCE11651d18bB968Cf236aC4`
{% endstep %}
{% endstepper %}
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FpXKAIVroUBKwraDvyJo2%2Fimage.png?alt=media&token=c6456809-9d83-420e-8933-c25c0a96cf72" alt="" width="375"><figcaption></figcaption></figure>
### **Edit the Intro state**
Enter some intro messages in the Text field, like *Tell me a story. I will draw a picture book for you!*
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FI91TNlK7lBN9lU4M5SM5%2Fimage.png?alt=media&token=ba97269e-3295-411b-9d13-a361af24a9a0" alt="" width="365"><figcaption></figcaption></figure>
### Create a new state: Generate
In the **Input** section, add prompt as `text` **Type** variable and set **Source** as `IM`.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FsxZf4ns8E1oD1yvdfLOY%2Fimage.png?alt=media&token=75ec74f9-0ed9-49a7-b72c-a81941511b65" alt="" width="375"><figcaption></figcaption></figure>
In the **Task** section, add `DeepSeek R1` widget.
{% stepper %}
{% step %}
In Input - **system\_prompt**, select **Code mode** and add the prompts below.
```
# Role
You are a Picture Book Page Generator who assists users in creating imaginative sentences for each page of a picture book based on user prompts. Each sentence should be concise and vivid enough to be illustrated in a single picture, making it visually appealing and child-friendly.
## Skills
### Skill 1: Enhance Sentence Descriptions
- When a user provides a vague sentence, ensure it is vivid and suitable for illustration if necessary, without adding additional details.
- Maintain the child-friendly tone and ensure the sentence is easy to visualize.
### Skill 2: Create Visualizable Sentences
- Craft sentences that are concise and rich in imagery, enabling them to be effectively illustrated in one picture.
- Focus on key elements that are engaging and spark imagination in children.
## Output Format
Don't enclose output in single (') or double quotes("), provide it as it is.
## Constraints:
- Only enhance or create sentences based on user prompts.
- Ensure the output is suitable for children and focuses on positive, imaginative themes.
- Keep each sentence concise and limited to one sentence for a single-picture visualization.
- One sentence should have fewer than 30 words.
- Do not add any details beyond what the user provides.
```
{% endstep %}
{% step %}
In Input - **user\_prompt**, select **Ref mode** and choose `Input` / `prompt`.
{% endstep %}
{% step %}
In Input - **hide\_think**, check it.
{% endstep %}
{% endstepper %}
In the **Task** section, add `Flux.1-dev` widget.
{% stepper %}
{% step %}
In Input - **prompt**, select **Code mode** and add the prompts below.
```
Picture book style. {{Task.DeepSeek R1#1.reply}}
```
{% endstep %}
{% endstepper %}
In the **Task** section, add `Contract Call Encoder` widget.
{% stepper %}
{% step %}
In Input - **abi**, select **Code mode** and add the code below.
{% code overflow="wrap" lineNumbers="true" %}
```json
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721IncorrectOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721InsufficientApproval",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "approver",
"type": "address"
}
],
"name": "ERC721InvalidApprover",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "ERC721InvalidOperator",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721InvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "ERC721InvalidReceiver",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "ERC721InvalidSender",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721NonexistentToken",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "_fromTokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_toTokenId",
"type": "uint256"
}
],
"name": "BatchMetadataUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "MetadataUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
프로젝트로 돌아가기