This topic describes how to create an AI assistant in AppFlow and integrate it into a web page or WeCom for shared access or enterprise-only access.
Why use AppFlow's AI Assistant?
-
Versatile integration: It provides H5 pages and floating widgets. It integrates with WeCom, DingTalk (coming soon), and WeChat mini programs (coming soon).
-
User-friendly interaction and rendering: It solves issues with native dialog boxes in common instant messaging (IM) applications such as WeCom and Lark, which do not support streaming or rendering complex Markdown content, such as images.
-
Flexible configuration: You can generate custom pages without agent development.
Results
|
Standalone web page |
Floating widget |
WeCom mobile client |
WeCom desktop client |
|
|
|
|
|
Billing
Using AppFlow is free. However, you may incur Alibaba Cloud resource usage fees and fees for model calls—calculated based on the number of tokens used—when you create and use an AI assistant. For more information, see Compute Nest billing, Model billing, and Moonshot AI billing.
Creation flowchart
Procedure
Step 1: Create an RDS Copilot
-
Log on to the AppFlow console.
-
In the navigation pane on the left, select .
-
On the AI Assistant page, click Create AI Assistant to set basic information.
Parameter
Example
Description
RDS Copilot icon
--
The recommended image size is 192 × 192 pixels. Supported formats are JPG, PNG, and SVG.
RDS Copilot Name
AI name
The name can contain Chinese characters, digits, letters, and underscores (_). It must be 3 to 200 characters in length. A Chinese character is counted as 2 characters.
AI assistant overview
AI demo
The name must be 10 to 500 characters long, where each Chinese character counts as two characters.
-
After the configuration is complete, click OK. You are redirected to the RDS Copilot Details page.
Step 2: Import a model and set up the page
Configure page and model parameters. This includes importing a model, selecting connection credentials, and setting configuration items such as the conversation background, welcome message, and preset questions. After completing the configuration, you can add plugins to enhance functionality.
When you set the parameters, the preview page on the right updates dynamically. This lets you see the effects of your configuration in real time to ensure the final result meets your expectations.
-
In the Model section, click Import Model, select a model as needed, and click OK.
NoteThe list of supported models is continuously expanding.

-
In the dialog box that appears, select the connection credentials and click Next.
If you do not have the required credentials, click Add New Credential in the drop-down list. The following table describes how to obtain the API key or token for each model.
Model
Path to obtain API key or token
Alibaba Cloud Model Studio
To obtain an API key for your Model Studio account, see Activate Model Studio and create an API key.
DeepSeek (Alibaba Cloud Model Studio)
Qwen
DeepSeek (PAI)
To obtain your DeepSeek invocation token from Platform for AI (PAI), see Obtain a token.
PAI EAS RAG application
To obtain your PAI EAS RAG invocation token from PAI, see LLM RAG chatbot.
Moonshot AI (Kimi)
To obtain an API key for your Moonshot AI account, see Moonshot AI - User Guide.
-
In the Parameter Settings section, enter the parameters as prompted and click Save.
NoteParameters vary by model. Refer to the console for details.
-
In the Configuration Item Settings section, configure the conversation background, welcome message, and preset questions.
Parameter
Description
Example
Conversation background
Preset the background, role, and tone for the conversation. The assistant will respond based on these settings.
Note-
This increases the token usage for each interaction.
-
This setting only applies to base models. It does not apply to agent platforms such as Alibaba Cloud Model Studio, which use their own prompts, such as for Qwen.
Act as a technical consulting expert with extensive experience in AI, big data processing, and IoT integration.
Welcome message
The first message RDS Copilot proactively sends to the user after they enter the dialog box but before they ask a question.
Welcome to the RDS Copilot.
Preset questions
A list of predefined questions. Users can click a preset question to send it directly to the RDS Copilot.
What is AppFlow?
-
-
In the General Settings section, configure the following items as needed.
Model
Description
Enable context history
Set the maximum number of historical conversation rounds to be sent to the model. A higher number improves conversational relevance.
NoteThis setting only applies to base models. It does not apply to agent platforms such as Alibaba Cloud Model Studio, which use their own context capabilities.
Show document sources
When enabled, the source documents for the generated results are displayed with ordinal numbers. This consumes more tokens.
SLS log record
By centrally storing conversation records in Simple Log Service (SLS), you can easily retrieve and analyze historical conversations to gain insights into user behavior and preferences, thereby optimizing your conversation models and strategies.
Speech input
Using Intelligent Speech Interaction, you can have voice conversations with the RDS Copilot and receive voice responses. For detailed configuration, see Enable speech recognition.
File input
File input is currently supported only for Model Studio applications and Coze. Model Studio applications require configuration. For more information, see Configure file upload. For Coze, simply enable the switch without any additional settings.
Step 3: Integrate with a web page
-
On the Integration tab, click Web Page Integration.
-
On the Web Page Integration page, click Create Integration. In the dialog box that appears, enter an Integration Name and click OK.

-
After being redirected to the Web Configuration page, set the basic information as prompted.
NoteWhen you set the parameters, the preview page on the right updates dynamically. This lets you see the effects of your configuration in real time to ensure the final result meets your expectations.
-
Select a Logon Configuration as needed. This section uses Anonymity as an example. For more configurations, see Manage logon configurations.
-
Configure deployment information.
-
Select a deployment method based on your business type and click OK to complete the configuration.
-
Standalone page deployment: Deploys the web page separately with a unique URL, allowing it to be accessed and run independently.
-
Iframe page embedding: Uses an Iframe to embed another HTML document within an existing page, displaying external content in a specific area.
-
Floating widget deployment: A small tool fixed to the edge of a web page, such as a customer service window or a "back to top" button, which appears or disappears based on user actions.
-
-
The following figure shows the integration effect when accessing the deployment address of a standalone page.

-
Bind a custom domain name.
ImportantFor compliance reasons, the Alibaba Cloud endpoint is for testing only and is valid for 30 calendar days from the web integration creation date. Bind a custom domain name as soon as possible.
-
In the Deployment Information section, click Bind Custom Domain.
-
The first time you select this option, the AppFlow Service-Linked Role authorization page appears. Confirm and click Authorize.

-
AppFlow provides the following two methods to configure a domain name or IP address.
Use a trusted entity domain name
This method is for domain names that already have an ICP filing with Alibaba Cloud. If you want to create a domain name, see Getting started with domain name registration.
-
Add or select your enterprise's entity domain name.
If you have not added your domain name in AppFlow, click Add Domain and follow the prompts.

-
Click Save to complete the configuration.
Use a Compute Nest Nginx agent
This method is for domain names that do not have an ICP filing with Alibaba Cloud. The Compute Nest service automatically creates and configures an Nginx agent. The Compute Nest instance you select is automatically used as an internal network agent.
-
Select a Compute Nest instance from the drop-down list.
If none is available, click Deploy Compute Nest Instance to deploy one.
-
On the page that appears, configure the parameters as needed and click Next: Confirm Order.
-
Confirm the parameters and billing items for the service instance, and click Create Now.
NoteDeployment usually takes 1 to 3 minutes. Refresh the list and wait patiently.
-
Copy the IP Whitelist and click Save.
ImportantSave the IP Whitelist. You will need to add it later to the trusted enterprise IPs of your WeCom application.
-
-
The following figure shows a comparison after binding a custom domain name.
Test address
Custom domain name


-
-
What to do next
Integrate with WeCom
After you integrate your RDS Copilot with a web page, you can embed it into a custom application in WeCom. This allows employees to access the RDS Copilot directly within WeCom, providing instant assistance and improving work efficiency and experience. For more information, see Integrate with WeCom.
Manage models
After creating an AI assistant, you can manage and adjust existing models and import new models. For instructions on these operations, see Manage Models.
Manage plugins
Adding plugins to your RDS Copilot can significantly improve its efficiency and professionalism. AppFlow offers a variety of ready-made plugins and supports custom plugin development. For more information, see Manage plugins.
Manage logon configurations
If you want to modify user identity verification or access control, you can change the logon configuration. For more information, see Logon configuration.
Configure file upload, speech, and image recognition
Configuring file upload, speech, and image recognition for your RDS Copilot can greatly improve data processing efficiency and enhance the user interaction experience. This might require coordination with other cloud products. For more information, see Configure speech and image recognition and Configure file upload.










