Hands-on Lab: Agentic Data Engineering with MotherDuck and AscendDecember 3, 10am PT / 1pm ET

Skip to main content

SQL Assistant

Built-in SQL functions that use AI to help you work with SQL. Generate SQL queries, execute read-only questions directly, fix errors, explain queries, and more.

These functions can be useful building blocks for AI-driven analytics solutions or used stand-alone on all MotherDuck surfaces (including the CLI).

To use external tools like Claude Desktop or Cursor with MotherDuck, see Connecting AI Tools to MotherDuck.

Available Functions

Notes

SQL assistant functions operate on your current database by evaluating the schemas and contents of the database. You can specify which tables and columns should be considered using the optional include_tables parameter. By default, all tables in the current database are considered.

To point the SQL assistant functions at a specific database, execute the USE database command (learn more about switching databases).

These capabilities are provided by MotherDuck's integration with Azure OpenAI.

For availability and pricing, see MotherDuck's Pricing Model.

If you have further questions or specific requirements, please see our support page.

Regional Processing

Requests are processed based on the region of the MotherDuck organization according to the table below. Functions that are not available within the region (no checkmark) will be processed with global compute resources.

FunctionGlobalEurope
SQL Assistant Functions