MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 74쪽

o the standard ComfyUI, we mainly added the start node and end node. These two nodes are mainly to facilitate packaging the entire workflow into a single node for use by the App Builder. For documentation conciseness, we will not detail the ComfyUI tutorial here, please find ComfyUI tutorials by yourself, there are plenty! {% hint style="info" %} If you do not intend to package the workflow into a widget for the App Builder, you can ignore the start and end nodes and edit the image flow in the ComfyUI way. {% endhint %} ### Importing ComfyUI Workflow (beta) <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/ZEWewMoWq3Yd0MfY3iLY/image.png" alt="" width="375"><figcaption></figcaption></figure> {% hint style="info" %} Currently, we only support ComfyUI workflows exported in JSON format. {% endhint %} After importing, some ComfyUI nodes may not be supported. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/43iNB6Qer8HI5Dp0NDvg/image.png" alt="" width="375"><figcaption></figcaption></figure> Since these unsupported nodes cannot run when the ShellAgent is deployed to the MyShell main site, we currently do not support one-click download of missing nodes, but will be supported soon. We suggest: 1. Replace the node with another node that has the same function (if available). 2. Contact [us](mailto:hance@myshell.ai) to let ShellAgent and MyShell support the node simultaneously. It may take some time, so only do it when such node is very necessary. For missing Models, you can download them in the Manager. See [#model-and-widget-management](#model-and-widget-management "mention") ## Start Node <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/XsL4I8PultdnszU9HpyL/image.png" alt=""><figcaption></figcaption></figure> The start node includes: * **Input**: When you want to run the workflow as a single widget, you can specify which variables need to be input when calling the workflow widget through Input. Each input needs to specify its name and type, and you can add descriptions and validation items in more settings. * **Context**: If there are some primitive variables that are used repeatedly within the workflow, you can choose to collect them all into the context. Each context variable needs to specify its name (including type) and its value. ### Using Input/Context Variables For example, if you want to support users uploading images in Load Image, you can do this: * Change the image of the Load Image widget to the widget's input. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/0uOLQyctMNvlS7qZHwyi/image.png" alt="" width="375"><figcaption></figcaption></figure> * Connect the image in the start node's Input. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/Ia7PUsX8M04gSHecWb1U/image.png" alt="" width="375"><figcaption></figcaption></figure> Each variable has a type, and currently our variables support six types: * text * image * audio * video * text\_file * file These types affect what the form item is when users input. For example, **text** is a text input box, and the other five are file uploads (different types support different file extensions and sizes). {% hint style="info" %} These variables are essentially treated as strings when associated. **text** is a text string, and the other five are paths to images/videos/files. Therefore, when using them, you need to use Load Image or Text Encode to input them into the image generation model. {% endhint %} ## End Node <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/JvgitN4Y73tWo1UtbBpy/image.png" alt="" width="375"><figcaption></figcaption></figure> The Output of the end node is similar to the Input of the start node, indicating what the final output result of the workflow widget should be. {% hint style="info" %} The default type of Output is **unknown**. Because its type depends on the associated input variables, and many input variables are arrays, objects, or other composite types, we cannot represent them well at the moment. When the App Builder calls the output of this Workflow, you need to pay attention to the output of composite types. {% endhint %} ## Run <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/2cmGIpWrPtHEcfxyqa65/image.png" alt="" width="375"><figcaption></figcaption></figure> Run the workflow; after filling in the specified parameters, you can execute it. ## Version Management <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/mxEjUqijlRLTpT1UICb4/image.png" alt="" width="369"><figcaption></figcaption></figure> We also support version management of the workflow. Click **publish** to enter a name to specify the corresponding version. You can return to edit this version later. ## Model and Widget Management Through **Manager**, you can manage local Models and Widgets. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/toDOGPbeEf4VclHWXvQi/image.png" alt=""><figcaption></figcaption></figure> For models not listed in the list, you can customize the installation through **Install from Link** in the upper right corner. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/M5UNa7SQFGWcOjxq4lAA/image.png" alt=""><figcaption></figcaption></figure> If you already have many downloaded models locally, you can adjust the model location by setting the **settings**. <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/Ouql7xy8OsFaxOshewgR/image.png" alt=""><figcaption></figcaption></figure> # 맞춤 위젯 제작 ## Development ### Example Reference code: <https://github.com/wl-zhao/proconfig-diffuser-imagen> The code above provides a simple example of calling the `DiffusionPipeline` in diffusers. The core code is in: <https://github.com/wl-zhao/proconfig-diffuser-imagen/blob/main/diffuser_widget.py> ### Development Process 1. Define the widget's name and category through `NAME` and `CATEGORY`. 2. Define input and output specifications via `InputsSchema` and `OutputsSchema`. Use pydantic syntax to define the schema for each field. 3. Implement the `execute` function to define the widget's actual execution logic. The function's inputs and outputs need to meet the previously defined input and output specifications. 4. In the root directory, 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/l286rcPQIz4KH9dvvcc7/image.png" alt=""><figcaption></figcaption></figure> # 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/QhHmz21wAU14AqHWZD2E/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/unQp6RIj3ZOTXctq4nl1/image.png" alt=""><figcaption></figcaption></figure> # 에이전트 맞춤 가격 설정 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/nR17NEYHBuTv1lRdmE8N/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/ssbXmakc578p7p5zHLj1/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/nqGJUpskqEqjvfl9QAkB/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/3AdDP8185UlqqpS9JNW0/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/u5N8v4HSWarB2s7x3Y4G/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/Qmk304G2AULawtPaDse0/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/YvnS83M28PnmrAXUu28w/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/Ik3FeeM4AHa2iIFcc8hg/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/VFUQV5ZORL9WO1lFc6st/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/ap8ebIktolNYMacDdBhT/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/tml698YorBIDBlUZdqDJ/myshell-shellagentflow-01.png" 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](/ko/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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/c4Ovxed3taGMrOfzBoYS/image.png" alt="" width="375"><figcaption></figcaption></figure> {% endstep %} {% step %} **Choose either type of your agent** <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/4qN1e946yKWRmlv8mwmw/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/KuG1L4aSGz0i3Y1ylvdM/image.png" alt="" width="241"><figcaption></figcaption></figure> {% endstep %} {% step %} **Choose** the MyShell Agent type <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/gzXbjcZ7OZwjYhReSOHb/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/awhU7TOgA4IlUc5YnVCC/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/7NYpjfTcYjbSSkISfmTs/image.png" 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. ![](https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/KibGLfLaw5FvGt9Ek39s/image.png) {% endhint %} <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/2UwKaMvrCCgg4oN8mce2/image.png" 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://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/ZsIh575NB6KYoQCeRooD/image.png" 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. ![](https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/De4GYCUMhgme70D4YQlE/image.png) {% 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 outpu
프로젝트로 돌아가기