SQL templates
When an SQL statement generated by the Intelligent Conversation Robot fails to accurately match a user's query, you can create an SQL template. This lets you manually map the user question to the correct SQL logic to improve the accuracy of the results.
Access
Starting January 2, 2025, the ability to configure SQL templates will be removed from the Intelligent Conversation Robot.
Go to your Intelligent Conversation Robot space. In the main menu, select Table management > SQL templates to open the SQL template management page.

Manage SQL templates
Create an SQL template
On the SQL templates page, click Create SQL template.
Intervention table: The data table to be queried in response to the user question.
User question: The original question from the user.
SQL statement: The SQL statement that corresponds to the user question.
NoteFor information about SQL statement writing conventions, see SQL statement examples.
Similar question: Other questions that have the same meaning as the primary user question but are phrased differently.

Enable or disable an SQL template
A new SQL template is enabled by default. To disable it, toggle its Enabled switch.

Delete an SQL template
On the SQL templates page, click Delete next to the template to remove, and then confirm the action.
