Quick start: Build a conversational bot
This topic shows you how to use the Chatbot trial version to quickly build a customer service bot that uses document knowledge to answer questions about mobile phones.
See it in action

Prerequisites
Purchase a business space
Use an Alibaba Cloud account (primary account) or a RAM user to purchase a business space, which is similar to an instance. After purchasing a business space, you can create a bot within it.

Grant RAM user permissions (optional)
If multiple users need to manage a bot, you can create multiple RAM users and grant them the necessary permissions for the business space. For example, different departments might need to upload documents to the knowledge base to handle their daily inquiries. This approach enables fine-grained permission control and resource allocation.
Grant a RAM user permission to manage Chatbot (
AliyunChatbotFullAccess). If you do not have a RAM user, create one first.After this permission is granted, the RAM user can log in to Chatbot but cannot view data in any business space. You must then add the RAM user to the business space and grant the required permissions. For more information, see User Management.
Procedure
Follow these four steps to build your bot:
Create a bot
Log in to the Chatbot management console. From the left-side navigation pane, choose application management > bot > New bot.
In the dialog box that appears, enter the basic information for your bot, including its avatar, name, and description.
After you complete the fields, click OK to create the bot.
Configure the bot
Click the bot that you created to enter its configuration space.

In the top navigation bar, choose knowledge base > document management, and then click Import document.
NoteDocument import limits:
Supported formats: PDF, DOC/DOCX, and TXT.
Maximum of 100 pages per file.
Maximum of 50 files per import. If you have more than 50 files, upload them in batches.
File size limits: PDF (100 MB), DOC (100 MB), DOCX (100 MB), and TXT (200 KB).
After uploading the document, select automatic parsing and segmentation. This option automatically selects a built-in parsing strategy based on the document content. For details about custom and automatic parsing, see Document parsing rules.

When the status of the uploaded document changes to In Progress, it indicates the upload was successful. You can then click Test in the lower-right corner.

Test the results
When a user asks a question related to the uploaded content, Chatbot responds with information from the documents.

Publish the bot
After you finish configuring the bot, click Publish bot.

Select the bot and the knowledge to publish, then click OK.

Publishing moves the bot and its knowledge from the test environment to the production environment. This process ensures the stability and security of the production service. Knowledge in a single-environment setup does not need to be published.
Publishing method | Description | Example |
Publish the bot | When you publish only the bot, its basic information, response strategies, transfer to agent settings, and knowledge bindings are published. The knowledge content in the test environment's knowledge base is not published, and the knowledge base in the production environment remains unchanged. |
|
Publish the bot and knowledge | When you choose to publish the bot and its knowledge, the bot's basic information, response strategies, transfer to agent settings, knowledge bindings, and the content of the knowledge base are published to the production environment. |
|
Publish knowledge at the business space level | When you publish knowledge at the business space level, all bots within that space that are associated with the knowledge will be updated. For document answers, you can select specific categories to publish. For website knowledge, you can select specific websites to publish. For more information, see Publish the bot and knowledge. |
|
Next steps
The deploy application feature allows for quick integration. It currently supports deployment to web pages, DingTalk, and WeChat Customer Service. Building a channel creates an instant chat interface. This feature supports various engagement options, such as cards and templates, to enrich the chat homepage and streamline integration with your website. For more information, see Deploy application.





