Use the conversation rewriting template to ask questions about a specific subject, and then select and rewrite the most suitable bot response.
Sample data formats
Each column in the CSV and XLSX formats, and each sub-field of the data field in the Manifest format, corresponds to a dataset field. You can customize the field names by selecting a name for each field.
CSV and XLSX formats
topic |
scene |
description |
details |
Food 01 |
home01 |
Talk about a fruit 01 |
Introduce a fruit and ask for its price |
Food 02 |
home02 |
Talk about a fruit 02 |
Introduce a fruit and ask for its price |
For a file demo, see conversation_rewriting_data_demo.csv.
Manifest format (JSONL format)
{"data":{"topic":"Food 01","scene":"home01","description":"Talk about a fruit 01","details":"Introduce a fruit and ask for its price"}}
{"data":{"topic":"Food 02","scene":"home02","description":"Talk about a fruit 02","details":"Introduce a fruit and ask for its price"}}
For a file demo, see conversation_rewriting_data_demo.manifest.
Configuration
Question area (Current topic is required)
Use the Question area to configure the subject and its description.
Click items such as Current topic and Scenario, and select the corresponding dataset. In the Configuration area on the right, configure the parameters. The following table describes the parameters.
Parameter |
Description |
Title |
Do not modify the default title area. |
Dataset field |
Select the field that corresponds to the title. Field names can be customized. |
Prompt |
Do not modify the default prompt area. |
Click link to jump |
No configuration is required. This parameter does not take effect. |
Text highlight |
No configuration is required. This parameter does not take effect. |
Card style configuration |
No configuration is required. This parameter does not take effect. |
Conversation area (Optional)
Use the Conversation area to configure questions that are asked after the bot provides a response.
Click a question in the conversation area. In the Configuration area on the right, configure the parameters. The following table describes the parameters.
Parameter |
Description |
Title |
Configure the question title as needed. |
Options
Note
This parameter is required when the question type is Single-select, Multi-select, or Tree select. |
|
Placeholder text
Note
This parameter is required when the question type is Single-line text box or Text box - Markdown preview. |
The placeholder text for the input field. This text guides users on what to enter. |
Prompt |
The tooltip text that appears when a user hovers over the question title. |
Required |
Specifies whether the question is required. If a question is required, a validation check is performed when the user submits an answer. |
Supported Search Options
Note
This parameter is required when the question type is Single-select or Multi-select. |
Enables a search bar that allows users to search for specific options. |
Effective stage |
The stage at which the question becomes active. If you do not select a stage, the question is active throughout process by default. |
Global questions (Optional)
Use Global questions to ask questions about the entire subject.
Click a question. In the Configuration area on the right, configure the parameters. The following table describes the parameters.
Parameter |
Description |
Title |
Configure the question title as needed. |
Placeholder text
Note
This parameter is required when the question type is Single-line text box or Text box - Markdown preview. |
The placeholder text for the input field. This text guides users on what to enter. |
Options
Note
This parameter is required when the question type is Single-select, Multi-select, Tree select, or Multi-select tree. |
|
Prompt |
The tooltip text that appears when a user hovers over the question title. |
Required |
Specifies whether the question is required. If a question is required, a validation check is performed when the user submits an answer. |
Supported Search Options
Note
This parameter is required when the question type is Single-select or Multi-select. |
Enables a search bar that allows users to search for specific options. |
Effective stage |
Specifies the stage when the question takes effect. If you do not select a stage, the question is effective throughout process by default. |
Global configuration
Use Global configuration to configure the user-defined functions (UDFs) for the template.
Click
. In the Configuration area on the right, configure the parameters. The following table describes the parameters.
Parameter |
Description |
Title |
Do not modify the default title area. |
Reply selection method |
Select a more suitable reply selection method as needed. |
Component version |
No configuration is required. This parameter does not take effect. |
Pre-annotation |
Configure this parameter as shown in the figure. Do not change any parameters except return_nums. return_nums specifies the number of bot responses. Change this value as needed. A value of 5 or less is recommended. |
Data validation |
No configuration is required. This parameter does not take effect. |
Configure the UDF exactly as shown in the figure. The input_data and MarkResult parameters ensure that the UDF correctly accepts input parameters and must not be changed. The return_nums parameter specifies the number of bot responses. You can change this value as needed. A value of 5 or less is recommended.
Operation demo
Question area: Displays the information for the current subject.
Q&A area: After a user asks a question, the bot provides a response. The user can then rewrite the bot's response and answer any follow-up questions.
Global questions area: An area where users can answer global questions.