{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":5151,"path":"conversational-interfaces/virtual-agent/table-bot-response.md","title":"Table bot response control","bundle":null,"doc_type":null,"release":"australia","body":"\n# Table bot response control\n\nUse the Table bot response control in a Virtual Agent topic to display a bot response as a table.\n\nTable bot responses enable users to see information in a more organized way.\n\nFor example, you can organize and display information such as the following:\n\n-   Planned service changes\n-   Company holidays\n-   Contact information\n-   Testing sites\n\nOutput tables can have between one and four columns and may include optional column headers. You can populate tables using the conditioner builder or scripts.\n\n## Table bot response properties\n\n<table id=\"table_vm3_4ry_hfc\"><thead><tr><th>\n\nProperty\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nNode name\n\n</td><td>\n\nName that identifies this Table bot response control node in the topic flow.\n\n</td></tr><tr><td>\n\nPopulate this table by\n\n</td><td>\n\nOptions for populating the table. Select one of the following:-   **Table**: Select the ServiceNow table that contains the data to be displayed.\n-   **Script**: Enter code in the Define rows dialog box.\n\n</td></tr><tr><td>\n\nTable\n\n</td><td>\n\nThe name of the table that contains the data.This field is available only when the **Table** option is selected.\n\n</td></tr><tr><td>\n\nFilter rows\n\n</td><td>\n\nOptions for filtering the contents of the table. Choose one of the following:-   **Condition**: Specify a no-code condition statement using the condition builder. For more information, see [Condition builder](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-user-interface/c_ConditionBuilder.md).\n-   **Script**: Enter a low-code script that specifies a condition.\n\n This field is available only when the **Table** option is selected.\n\n</td></tr><tr><td>\n\nNo records response message\n\n</td><td>\n\nMessage displayed if no records are found.\n\n</td></tr><tr><td>\n\nShow links for each record\n\n</td><td>\n\nSlide this toggle to activate links for each record in the output in your Virtual Agent conversation.The **Show links for each record** toggle is not available by default. It can be enabled by changing the value of the system property sn\\_cs\\_builder.table\\_show\\_links\\_enabled to true.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nColumns and rows\n\n</td></tr><tr><td>\n\nColumns \\(left to right\\)\n\n</td><td>\n\nTable columns that you want to display in the conversation. You can have up to 4 columns.-   **Field**: Select a field from the ServiceNow table to be displayed in the column.\n-   **Display name**: Reflects the selected column name. Use the default name or change the name.\n\n This field is available only when the **Table** option is selected.\n\n</td></tr><tr><td>\n\nSort rows by\n\n</td><td>\n\nOption for sorting returned rows by column. You can sort by one of the selected columns, or by a column not shown in the response to the user. Choose **Ascending** or **Descending** order for the sort.If you don't specify a sort order, rows are sorted by creation date in descending order. If you specify a different sort order, creation date is used as a secondary sort order.\n\n This field is available only when the **Table** option is selected.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nAdvanced\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nHeaders\n\n</td></tr><tr><td>\n\nHeader\n\n</td><td>\n\nHeader or title for the table when the table is displayed in the response output. The header can be a text string, variables, or a script.\n\n</td></tr><tr><td>\n\nDisplay Column Headers\n\n</td><td>\n\nToggle switch that enables the display of column headings.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nHide this node\n\n</td></tr><tr><td>\n\nConditionally show this node if\n\n</td><td>\n\nNo-code condition statement or low-code script that specifies a condition for presenting this node in the conversation. The condition must evaluate to true.\n\n</td></tr></tbody>\n</table>## Channel support\n\n|Channel|Support|Constraints|\n|-------|-------|-----------|\n|Web UI|Supported|None|\n|Mobile UI|Supported|None|\n|ServiceNow Otto panel|Not supported|Not applicable|\n|Microsoft Teams|Supported|None|\n|Slack|Supported|None|\n|Workplace|Supported|None|\n|Facebook Messenger|Not supported|Not applicable|\n|SMS Twilio|Not supported|Not applicable|\n|LINE|Supported|None|\n|WhatsApp|Not supported|Not applicable|\n|Apple Messages for Business|Supported|None|\n|Alexa \\(Voice\\)|Partial support|Supported on devices with screens. For nonscreen devices, the table will be read, if possible. For details, see [Fine-tune Virtual Agent settings and topics for the best Alexa voice chat experience](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-settings-for-alexa.md).|\n\n## Example Table bot response output\n\n**Note:** Asset library controls may display and function differently in other channels.\n\n<table id=\"table_f1f_v2p_xdb\"><thead><tr><th>\n\nResponse properties\n\n</th><th>\n\nTable bot response output\n\n</th></tr></thead><tbody><tr><td rowspan=\"2\">\n\n\\[Omitted image \"table-bot-response.png\"\\] Alt text: Basic properties include the node name, the method of populating the table, the filter, and the columns to be returned.\n\n</td><td>\n\n\\[Omitted image \"table-bot-response-web-ui.png\"\\] Alt text: Table in a chat window that displays the 2020 Company Holidays by Holiday and Date.\n\n</td></tr><tr><td>\n\n\\[Omitted image \"table-bot-response-mobile.png\"\\] Alt text: Table in a chat window that displays the first six 2021 Company Holidays by Holiday and Date. The user can choose an option to view all 11 rows.\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Assistant Designer bot responses](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-bot-responses.md)\n\n"}}