The Alibaba Cloud Model Studio UI Designer provides a visual application development environment. You can build application interfaces by dragging and dropping components and publish them as web-based UI applications.
Benefits
The Model Studio UI Designer integrates capabilities from the Alibaba Cloud Low-Code Development Platform. It offers the following core benefits:
Low-code: You can use the visual editor to quickly build pages. Drag and drop components and configure routing and layout.
Service integration: You can integrate multiple resources, such as Model Studio agents, Large Language Models (LLMs), databases, and HTTP services. This lets you flexibly extend your application’s capabilities.
Permission management: Built-in test accounts support one-click logon with DingTalk and WeCom. The system is compatible with standard protocols, such as OpenID Connect (OIDC) and OAuth 2.0. You can manage access permissions using permission groups.
One-click publishing: By default, you can publish to the development environment for free. Access your app using the built-in domain name. For production environments, bind a custom domain name.
Preparations
To integrate AI chat capabilities, create and publish a Model Studio agent application or workflow application. Then obtain an API key to call Model Studio services.
Your Model Studio application, API key, and UI design must belong to the same workspace.
Publish an existing application as a UI
You can go to the application’s publishing channels page. Select UI application and click Create.
The system automatically fills in basic information based on your existing application. This information includes the application title and description, Model Studio API key, Model Studio agent, profile picture, and preset questions. Edit the information as needed. Click Create Now when ready.
After creation, click the link to try the web UI application. The link expires in 24 hours. To adjust the interface, click Edit UI. For more information, see Create a UI application using the UI Designer.
NoteFor workflow applications, if you configured a custom parameter of type file, edit the UI in the UI Designer. Specify the custom parameter
{{{file_name:files[0]}}}. Replacefile_namewith your actual variable name. This ensures that the application correctly reads files uploaded by users in the UI.
Create a UI application using the UI Designer
Step 1: Create a UI
Creating a UI generates the initial page structure. You can use it as the foundation for adding components and designing layouts.
Select a UI template
You can go to the UI Designer page. Click Create UI and choose a UI template from the left panel.
Model Studio provides four preset templates: Smart Travel Assistant, Agent Portal, Basic AI Chat, and Enterprise AI Knowledge Base Lite. It also offers a blank template. Preset templates include prebuilt components and interfaces, which you can modify directly or use for custom development. The blank template requires full design from scratch.
We use the Enterprise AI Knowledge Base Lite template as an example.
Fill in basic information
Application name and application description: Enter custom values. Use meaningful names and descriptions to identify the purpose of the application.
Model Studio API key: You can select a Model Studio API key.
Model Studio Agent: Select a published Model Studio application.
Upload icon (optional): You can upload your own icon.
If you cannot select an API key or Model Studio application, confirm that the workspace where you create the UI matches the workspace of the required API key and application.
Configure database table mapping
Some UI templates include built-in database tables for storing runtime data, such as the
kb_chat_listsession records. These tables have a fixed structure and cannot be modified. You can click the Database Table Name In Template column's
icon to view them.When configuring the mapping, specify only the table name. If the table does not exist in the database, the system automatically creates it using the template structure. If a table with the same name exists, the system uses it and retains existing data.
Note: When using an existing table, ensure its structure matches the built-in template table exactly. Otherwise, runtime errors may occur.
After UI creation, you can view table details in the database. If the table has no data, it is likely because no related actions have been taken yet. For example, the
kb_chat_listtable generates records only after users ask questions.
Step 2: Edit the UI
You can build pages by dragging and dropping components. The component panel on the left provides UI elements, such as buttons, input fields, display widgets, and navigation bars. Add the required page components to your page. Adjust their positions and styles to meet your business needs. Complete page building.
If you need custom images or files, upload them during page building. Alternatively, upload them in advance on the files page. Uploaded files appear on the files page. For more information, see UI application data.
Step 3: Publish and share
After building the UI, click the Publish button in the top-right corner of the designer. You can publish to the development environment or production environment. After publishing, click Access application to try your UI.
Environment comparison
Development environment
Production environment
Environment Description
Used for development, testing, and validation.
An environment deployed with the end-user software version.
Access method
Access via the domain name provided by the platform.
Access via the domain name provided by the platform or set a custom endpoint.
Validity period
The published UI expires in 24 hours. Republish to access again.
The published UI remains valid indefinitely.
Is there a fee?
Free
Subscribe to a paid plan. Also configure a domain name. For details, see Product billing.
On the UI Designer page, hover over a published UI. Click Environment deployment.
Share the application URL with other users. By default, any Alibaba Cloud user with the link can access it. Click Unpublish to stop the application.
Configure access permissions (optional)
By default, any Alibaba Cloud user with the link can access the published UI. You can also allow anonymous users to access the UI. Anonymous users can ask questions in the chat session but cannot access the admin console.
In the UI Designer, click the
icon in the bottom-left corner. In Logon configuration, turn on Allow anonymous access. Then click Anonymous user permission group configuration.Select an environment. On the Application access permissions tab, check the UI you built. Click Permission settings.
Select the pages to expose to users. Click Confirm.
Log out of the administrator account. Open the UI URL and verify that the permission settings work.
Billing
The UI Designer itself is free. However, you may incur costs during use:
Model invocation fees: AI chat sessions invoke models and incur charges. For more information, see Model List.
Alibaba Cloud Model Studio offers a free quota for new users. After the quota is used up, you pay per token.
UI application data: UI design consumes quota resources, such as file storage and built-in database capacity. Model Studio provides 1 GB of free file storage and 0.3 GB of free database capacity by default. Usage beyond the free quota or your plan’s quota incurs pay-as-you-go charges.
Subscription plans: To publish to production, subscribe to the Team Edition (or higher). This incurs monthly charges. For more information, see Plan specifications.
Tutorials
For more UI design use cases, such as building AI knowledge bases, intelligent customer service, or adding AI assistants to apps, see Tutorials.
FAQ
On the UI Designer page, I see “This application is currently being edited” while editing or configuring a UI. How do I fix this?
This happens if the UI is open in another browser window. You can close that window to resume editing. Alternatively, click Get edit permission to force-close other open windows.
