The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Docs: Metabot inline SQL editing (#67362)
Abed Habli0972cf4e5bae
diff --git a/docs/ai/images/inline-sql.png b/docs/ai/images/inline-sql.pngnew file mode 100644index 00000000000..0882dbe4db6Binary files /dev/null and b/docs/ai/images/inline-sql.png differdiff --git a/docs/ai/metabot.md b/docs/ai/metabot.mdindex e38f4ce801a..ab9bbecae91 100644--- a/docs/ai/metabot.md+++ b/docs/ai/metabot.md@@ -21,6 +21,7 @@ Metabot can help you to:- [Create a chart using the query builder](#how-metabot-uses-the-query-builder) from a natural language query.- [Generate SQL in the native editor](../questions/native-editor/writing-sql.md) from natural language. (Currently, only SQL is supported.)+- [Edit SQL directly in the native editor](#inline-sql-editing).- [Analyze a chart](#analyze-charts-with-metabot).- [Fix errors in SQL code](#have-metabot-fix-sql-queries).- Answer questions from our documentation (as in, the literature you're reading right now).@@ -93,6 +94,17 @@ If you don't specify a specific table in a natural language question, Metabot wiWhen you get an error in a SQL query, you can click the **Have Metabot fix it** button, and Metabot will try to correct the query. You can also ask Metabot to fix your SQL in the chat.+## Inline SQL editing++++You can ask Metabot to generate or edit code in the SQL editor, without using the [chat sidebar](#the-metabot-chat-sidebar):++1. Open the [SQL editor](../questions/native-editor/writing-sql.md).+2. Press Cmd+; on Mac or Ctrl+; on Windows.+3. Describe the SQL you want to generate or modify.+4. Review the generated code and accept or reject it.+## Navigating after Metabot creates a chartIf Metabot creates a query or takes you to a new item but you want to return to the previous screen, you can navigate using your browser's back button.