bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 36쪽
ory, define `__init__.py` (e.g., <https://github.com/wl-zhao/proconfig-diffuser-imagen/blob/main/**init**.py>), and import the written widget inside.
## Usage
You can install it via **Install from Git** in the Manager.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FtFNqxXEXyIsVg0hPhpEr%2Fimage.png?alt=media&token=8ec30135-f13a-4f69-ab6b-73c331d03c4a" alt=""><figcaption></figcaption></figure>
# Publish to MyShell
## Publishing the Agent to MyShell
You only need to export the Agent in the App Builder to obtain a JSON file.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FAsNxMwi3Am1YsYEsyJjx%2Fimage.png?alt=media&token=1d6f8f87-d9b5-4936-9ce6-5aaa0616dd5e" alt=""><figcaption></figcaption></figure>
Then upload that JSON under the ShellAgent mode next to the original Pro Config editor on the main site.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FcgVmPfphpavCB2QgQsag%2Fimage.png?alt=media&token=f0042098-560e-4608-9b01-dcd91933d78d" alt=""><figcaption></figcaption></figure>
# Customized Pricing For Your Agent
Our **Customized Pricing For Your Agent** feature puts you in the driver’s seat—roll out subscriptions for your AI agents, drop one-time purchases, or flex with pay-per-use options. Your work, your rules.
**Understand The Basics**
* A paid plan bundles multiple features with one payment method.
* A feature = a stack of ShellAgent nodes (states).
* Anything not tied to a paid plan? It’s free for users—your call.
**Organize Your Features**
* Break your ShellAgent App into features. Pick what’s worth a price tag and what’s a free teaser.
**Launch Your Plan**
* Build a paid plan, link it to your chosen features, and set a price.
* Save your Agent, and boom—when users tap a premium feature, they’ll see your plan pop up, ready to onboard them.
### Step 1: Enable Monetization
Go to your agent’s settings and toggle the **Monetization** switch to **ON**. This activates the ability to set up paid features.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FNSC0okda8SubqZCf2qJ3%2Fimage.png?alt=media&token=2aac7b18-db2e-4a04-9bb3-d1b5475306a2" alt=""><figcaption></figcaption></figure>
### Step 2: Define Your Features
Features are the specific functionalities in your app that you want to charge for. Here’s how to set them up:
#### 2.1 Open the Features Editor
In your agent’s dashboard, click **Edit Features** to start defining what users will pay for.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FkV14wWNiRfHoObchVcBx%2Fimage.png?alt=media&token=0d1ecef7-ed1a-4002-a418-837793e98c46" alt=""><figcaption></figcaption></figure>
#### 2.2 Create a New Feature
Write a clear, user-friendly description of the feature. This is what users will see, so make it simple and compelling.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2F4kQihe2utIAXr1yWSI8a%2Fimage.png?alt=media&token=3607b882-880d-4773-b534-7e162a565f5b" alt=""><figcaption></figcaption></figure>
On the app canvas, select the **States** (ShellAgent nodes) that make up this feature by checking the corresponding boxes.
* **Important**: Be precise when selecting states. Missing a state or including unnecessary ones can confuse users and hurt their willingness to pay. For example, if you’re charging for a “Generate Content” feature, don’t forget to include the state that displays the generated results.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FdTBlq80E6OPRBYUWaUZK%2Fimage.png?alt=media&token=71ed511f-d778-49f9-ac65-f3edda940a6b" alt=""><figcaption></figcaption></figure>
#### 2.3 Add More Features
Repeat the process to create additional features until all paid functionalities are covered.
Once done, save your changes and close the window.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FzZgnw5othPfxJul1cNZf%2Fimage.png?alt=media&token=aab47f97-c978-4e5e-8d05-a676558913bc" alt=""><figcaption></figcaption></figure>
### Step 3: Set Up Your Plan
A plan bundles features together and assigns them a price. Here’s how to create one:
#### 3.1 Create a New Plan
Give your plan a short, catchy name and an appealing description to entice users.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FXBZE4U5ixDNZlEU0grHC%2Fimage.png?alt=media&token=a405bb3a-70a3-47fa-9656-9f6e9f69f14a" alt=""><figcaption></figcaption></figure>
Select the **Features** you want to include in this plan. On the canvas, selected features will appear fully visible, while unselected ones will be semi-transparent.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FrcGiqovJWKz87Wghed5o%2Fimage.png?alt=media&token=54aa2e29-e4c5-4ef3-9c8c-fe457fa8c0e7" alt=""><figcaption></figcaption></figure>
Choose a payment method. Currently, only **monthly subscriptions** are supported, and due to App Store restrictions, you can only pick from a few fixed price tiers.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FtcRVqRSvC60AX6rOIs8X%2Fimage.png?alt=media&token=2ee00584-03ce-4a4c-ab8b-2ae1423e7d76" alt=""><figcaption></figcaption></figure>
#### 3.2 \[Optional] Create Additional Plans
If one plan doesn’t meet your needs, you can create multiple plans to offer different tiers or combinations of features.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FadC7iiT4SAgl6CE9IzYQ%2Fimage.png?alt=media&token=7200f254-9de0-41ce-87e7-3f5a8a5ab16a" alt=""><figcaption></figcaption></figure>
#### 3.3 Review Your Setup
* Save your plan settings and close the pop-up window.
* Double-check your configuration to ensure everything looks correct.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FhLSKoF5devyl3QT2BoiU%2Fimage.png?alt=media&token=78afbd76-8e3d-4ea8-9b25-b430693d5e94" alt=""><figcaption></figcaption></figure>
### Step 4: Save and Activate
* Click **Save Agent Settings** to finalize your changes. Your paid plans are now live!
* When users interact with a paid feature, they’ll see your plan details and can subscribe.
# Example
# Child Book X Agent w/ DeepSeek
Building a Child Book AI Agent on X using ShellAgent with DeepSeek
> DeepSeek’s groundbreaking innovation is yet another testament to the sheer power of open-source AI. With these next-level foundation models and cutting-edge multi-modal AI, we’re stepping into a new era for multi-agent systems and consumer layer applications.
>
> The real game-changer ahead isn’t just another chatbot—it’s the rise of multi-modal, multi-functional AI Agents, on MyShell.
>
> Building AI applications today requires zero coding. That’s right—NO CODE, no hassle. With MyShell, creating a next-gen AI agent is as easy as clicking a few buttons, just like steps in this tutorial.
## Clarify Your Idea First
Before you start building, take a moment to **outline a clear plan** detailing what your AI agent will do and how it will function. ShellAgent is magical, but isn’t pure magic—it bridges the gap between ideation and execution, while it cannot generate original ideas for you.
Let’s use the Child Book AI agent as an example. **You need a clear vision of how the 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 Child Book 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.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FBTTNqxzh1W5KWS27bwy0%2Fmyshell-shellagentflow-01.png?alt=media&token=0b593ca4-3ab7-4a36-b872-9fb8df38f063" alt=""><figcaption></figcaption></figure>
## Start Building with ShellAgent
**To get started, first visit** [**ShellAgent**](https://shellagent.myshell.ai/) (cloud version). We offer the cloud version for everyone.
{% hint style="info" %}
ShellAgent is also an open-source project that you can deploy on your own computer—learn more at our [GitHub repository](https://github.com/myshell-ai/ShellAgent), or revisit the [Download and Installation chapter](/create/shellagent-mode/installation).
{% endhint %}
We provide some **quickstart templates** for beginners. You might prefer creating from a template to take a quick look of all the configuration details below.
### Quickstart templates for beginners
Please skip this part and go to the [#build-the-myshell-agent](#build-the-myshell-agent "mention") chapter if you are a veteran or you want to learn more about the processes.
{% 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%2FH4PTUt1U1dkLUMAh5g7h%2Fimage.png?alt=media&token=46ecfccc-9a83-475f-94a7-24a1c7d97264" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Choose either type of your agent**
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Ftu1bVLl3FRtjoZ8RhxPe%2Fimage.png?alt=media&token=ae4bb262-3b4d-48c2-a1ae-c704a34790c0" alt=""><figcaption></figcaption></figure>
After creating from a template and saving your MyShell Agent or X Agent in ShellAgent cloud version, you can directly go to the [#deploy-the-myshell-agent](#deploy-the-myshell-agent "mention") chapter or the [#deploy-the-x-agent](#deploy-the-x-agent "mention") chapter accordingly.
{% endstep %}
{% endstepper %}
### **MyShell Agent & X Agent: two different types**
In this tutorial,
* **AI Child Book - MyShell** (right side in the image above) is a `MyShell Agent` which users can interact with on MyShell;
* **AI Child Book - X** (left side in the image above) is an `X Agent` designed for X account automation.
The tutorials below will first introduce the development of the `MyShell Agent`, and then the `X Agent`.
## **Build the MyShell Agent**
{% stepper %}
{% step %}
**Create** a blank agent
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Fsp3Gik3oe2Nb9H7PvoSQ%2Fimage.png?alt=media&token=e02ec937-1df2-42a6-8d15-871fb8b40753" alt="" width="241"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**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%2F9keF3LUrnmve7tvac4rA%2Fimage.png?alt=media&token=343cb8aa-1e43-42ae-87e0-89ef13007e14" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Set Context Variables**
You will set `story` and `reply` as `text type` variable, and `image` as `image type` variable. Context variables are like a thread that connects everything within ShellAgent.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FbEHopOCbAx7wjPJjDfxB%2Fimage.png?alt=media&token=80201200-68c3-460d-b39b-78cb14e72083" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Edit the Introduction**
You can have cool introductions if you want to add `Audio`/`Images`/`Buttons` for the sake of simplicity of this demo, we will just do text intros.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FT1q5W4r3gnbBnNwtN9YT%2Fimage.png?alt=media&token=1f755e78-62e6-4217-b61d-851f49d253eb" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Generate Replies Using AI Models**
This step processes user input with DeepSeek R1, refining and optimizing prompts for the child book scenario. Flux then generates the corresponding images. The results are also stored as context variables for reuse in subsequent states.
You start by clicking `State` from the left menu bar to add one to the Canvas. Then, add the input to this state, let’s name it `Generate` . In this example, we simply named the input `prompt` , and connect that with the Chat Input Box of Intro State, shown by the yellow line.
You will add different widgets to perform Tasks to `Generate` , which in our plan will be **DeepSeek R1** & **Flux1-dev** , the current SOTA image gen model. We will skip the configuration details for models and you can check it via our template. Here at Tasks, you can actually select ANY widgets that are displayed at the left menu bar, all the way from LLMs, Image Processing, General Tools, Searching, Image Generation, and even Web3 relevant widgets with 50+ widgets supporting diverse functionalities. We’ll be supporting more and more in the future.
You also need to add Context Variables that you set previously into the the output section, ensuring that the output of models can be stored and transported across states. Remember, when editing outputs, you can go with `select output` and directly select the `image` and `reply` variables you created beforehand.
{% hint style="info" %}
You should be careful when editing the Flux widgte prompt, remember you should use `/` command to reference the variables passed from DeepSeek, not by typing it.

{% endhint %}
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Ff2QrKLs8BnmMDp1wh2wy%2Fimage.png?alt=media&token=dd08319a-0bc2-4b1b-8f4b-13cf8cdf2bc2" alt="" width="563"><figcaption></figcaption></figure>
You also need to add Context Variables that you set previously into the output section, ensuring that the output of models can be stored and transported across states. Remember, when editing outputs, you can go with `select output` and directly select the `image` and `reply` variables you created beforehand.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FwOg337rcKksfdcdFjhsC%2Fimage.png?alt=media&token=d793dc31-6b0a-43ca-acf1-a6fae30cd74e" alt="" width="563"><figcaption></figcaption></figure>
{% hint style="info" %}
We provide an additional setting here to control if users see the **thinking processes** of DeepSeek R1.

{% endhint %}
{% endstep %}
{% step %}
**Display Results and Provide Options**
We display DeepSeek’s text result and Flux’s image result at the same time. Because the job of `Display` state is purely to show users the generated images/story without performing too much of tasks; thus it doesn’t have input or tasks. You simply add the `story` and `reply` context variables as output so that these doesn’t get lost. On Message part, here is how you actually render the output out.
Simply go to `Ref Mode` ,select `Context→Reply`. By doing that, you’re rendering the reply of the LLM out. You will do the same for the image generated by Flux. Go from `Text` to `Image` section and select the context variable `image`.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2F5X1JshG5RtvBr2xIvEMv%2Fimage.png?alt=media&token=4d5e2869-d830-46dc-973c-05df6ac42b25" alt="" width="129"><figcaption></figcaption></figure>
Moreover, creating two buttons to allow users to decide whether they want AI to continue the story or restart a new one. Let’s name them `Auto-Write` and `Restart`
Don’t remember to add the new reply to the whole story in the context. So that the agent doesn’t forget what happened before and keep writing good stories for you.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2Fh1RI6P4tcgdcdkQNlEu2%2Fimage.png?alt=media&token=3edc64cd-4cc5-44e8-99cc-ca76dac2002a" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Auto-Write Story**
This step is similar to the ‘Generate’ state but differs in two ways:
1. It doesn’t require user input.
2. DeepSeek R1 uses a different system prompt to process the entire story.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FcxOtWAs0JYbjqhl8M20r%2Fimage.png?alt=media&token=e0536a87-fa3c-4e29-a3ff-6604c8045056" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Restart a Story**
Simply clear the context values to start fresh.
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2FWrO61pQ0dHohOfbGGx85%2Fimage.png?alt=media&token=c1f8823e-a628-420d-be2c-2200a01c685a" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Adding Transitions (Connect the lines!)**
We’ve completed all necessary states at ShellAgent, now you need to add transitions to make the state machine running. The `“+”` sign on the left and right side of each state node represents the flow of states. Under the Transition section of each state represents where user interaction will change the flow of states.
Le’s go there one by one:
* `Start` to `Intro` , that’s default
* `Intro` uses the type box connects to `Generate` , this means that `Generate` gets input from user’s input at `Intro`'s type box.
* `Generate` connects to `Display` via the `“+”` sign, means no additional user action is needed
* At `Display` state
* `Auto-write` button connects to `Auto-writes` state
* `Restart` button connects to `restart` states
* Type box (means users wants to keep writing the story) goes to `Generate`
* `Auto-write` connects to `Display` via the `“+”` sign
* `Restart` connects to Intro via the `“+”` sign
<figure><img src="https://2975681513-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDtmZwLatyyBFLUK6P6Pj%2Fuploads%2F01H9nG9sxE5aO8hCl0Sq%2Fimage.png?alt=media&token=e1550b39-d423-4d48-8fe8-8e10eacf2292" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% step %}
**Save**
Make sure to click the **save** button in ShellAgent (even we have the auto-save function).
That’s it! You’ve completed a basic bot at ShellAgent, congrats!
We will introduce how to deploy the MyShell Agent you've created on M프로젝트로 돌아가기