{"title":"Ask Altertable","description":"Ask questions about your Altertable data with an agent that uses shared lakehouse context, SQL, and saved business definitions.","order":100,"askSuggestions":["How do I ask questions from Slack?","How do I teach the agent our metric definitions?","How do I check the SQL behind an answer?"],"navigation":true,"routeId":"queryDataAskAgent","body":{"code":"var Component=(()=>{var p=Object.create;var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),y=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},l=(t,e,r,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let s of f(e))!w.call(t,s)&&s!==r&&o(t,s,{get:()=>e[s],enumerable:!(a=m(e,s))||a.enumerable});return t};var A=(t,e,r)=>(r=t!=null?p(k(t)):{},l(e||!t||!t.__esModule?o(r,\"default\",{value:t,enumerable:!0}):r,t)),x=t=>l(o({},\"__esModule\",{value:!0}),t);var h=b((q,d)=>{d.exports=_jsx_runtime});var S={};y(S,{default:()=>g,frontmatter:()=>v});var n=A(h()),v={title:\"Ask Altertable\",routeId:\"queryDataAskAgent\",description:\"Ask questions about your Altertable data with an agent that uses shared lakehouse context, SQL, and saved business definitions.\",order:100,askSuggestions:[\"How do I ask questions from Slack?\",\"How do I teach the agent our metric definitions?\",\"How do I check the SQL behind an answer?\"]};function u(t){let e={a:\"a\",h1:\"h1\",h2:\"h2\",li:\"li\",p:\"p\",strong:\"strong\",ul:\"ul\",...t.components},{DocsPreviewDocument:r,DocsPreviewSection:a,DocsPrompt:s,DocsPrompts:c}=e;return r||i(\"DocsPreviewDocument\",!0),a||i(\"DocsPreviewSection\",!0),s||i(\"DocsPrompt\",!0),c||i(\"DocsPrompts\",!0),(0,n.jsxs)(r,{anchors:\"ask-altertable what-ask-altertable-can-use use-in-slack good-prompts download-generated-files learn-more\",children:[(0,n.jsxs)(a,{sectionId:\"ask-altertable\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"ask-altertable\",children:\"Ask Altertable\"}),`\n`,(0,n.jsx)(e.p,{children:\"Ask Altertable is the conversational interface for querying and understanding data in Altertable. It can inspect your lakehouse, use semantic models and knowledge, run SQL, create analyses, and remember feedback from previous work.\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Use Ask Altertable for exploratory questions, follow-up analysis, and operational investigations where the right query is not obvious yet. For repeatable reporting, build a \",(0,n.jsx)(e.a,{href:\"/docs/data-apps\",children:\"data app\"}),\".\"]}),`\n`,(0,n.jsxs)(e.p,{children:[\"In the Altertable app, open \",(0,n.jsx)(e.strong,{children:\"Ask Agent\"}),\" to start a conversation.\"]}),`\n`]}),(0,n.jsxs)(a,{sectionId:\"what-ask-altertable-can-use\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,n.jsx)(e.h2,{id:\"what-ask-altertable-can-use\",children:\"What Ask Altertable can use\"}),`\n`,(0,n.jsx)(e.p,{children:\"Ask Altertable works from the same governed context as the rest of Altertable:\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[\"Catalog schemas and table metadata from your \",(0,n.jsx)(e.a,{href:\"/docs/lakehouse\",children:\"lakehouse\"}),\".\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/metrics\",children:\"Metrics\"}),\" that define reusable business calculations.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[\"The \",(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/semantic-layer\",children:\"Semantic Layer\"}),\" that defines business metrics and dimensions over lakehouse tables.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/entries\",children:\"Knowledge entries\"}),\", connected repositories, and organization context.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/memories\",children:\"Memories\"}),\" created from previous agent runs and feedback.\"]}),`\n`,(0,n.jsx)(e.li,{children:\"Data apps, notifications, and task history.\"}),`\n`]}),`\n`]}),(0,n.jsxs)(a,{sectionId:\"use-in-slack\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,n.jsx)(e.h2,{id:\"use-in-slack\",children:\"Use in Slack\"}),`\n`,(0,n.jsxs)(e.p,{children:[\"Ask Altertable is also available in Slack. An organization administrator connects Slack from \",(0,n.jsx)(e.strong,{children:\"Organization settings \\u2192 Integrations\"}),\". Invite the connected app to the channel where you want to ask questions, then mention it with your question. Continue in its thread to ask follow-up questions.\"]}),`\n`,(0,n.jsxs)(e.p,{children:[\"The Slack agent uses the configured environment and its configured data access role for connected channels. An administrator chooses both when connecting Slack and can change them in \",(0,n.jsx)(e.strong,{children:\"Organization settings \\u2192 Integrations\"}),\". Include the time range in your question, and check returned queries and source data before sharing the result with the channel.\"]}),`\n`]}),(0,n.jsxs)(a,{sectionId:\"good-prompts\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,n.jsx)(e.h2,{id:\"good-prompts\",children:\"Good prompts\"}),`\n`,(0,n.jsx)(e.p,{children:\"Start with the business question and include the time period, entity, or segment you care about:\"}),`\n`,(0,n.jsxs)(c,{children:[(0,n.jsx)(s,{children:\"Which customers had the largest drop in weekly usage after the pricing change?\"}),(0,n.jsx)(s,{children:\"Are checkout errors related to payment provider latency over the last 24 hours?\"}),(0,n.jsx)(s,{children:\"How has trial-to-paid conversion changed over the last three months?\"})]}),`\n`,(0,n.jsx)(e.p,{children:\"Ask Altertable may run SQL, inspect schemas, or ask clarifying questions before answering. When the answer depends on an assumption, ask it to show the query or explain the fields it used.\"}),`\n`]}),(0,n.jsxs)(a,{sectionId:\"download-generated-files\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,n.jsx)(e.h2,{id:\"download-generated-files\",children:\"Download generated files\"}),`\n`,(0,n.jsx)(e.p,{children:\"When the agent produces an artifact, use its download action in chat to save the file. In Slack, generated artifacts can be uploaded into the conversation thread. Ask for a file export when you need complete query results outside the conversation.\"}),`\n`]}),(0,n.jsxs)(a,{sectionId:\"learn-more\",anchors:\"\",ancestors:\"\",index:\"5\",children:[(0,n.jsx)(e.h2,{id:\"learn-more\",children:\"Learn more\"}),`\n`,(0,n.jsxs)(e.ul,{children:[`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"})}),\": run and refine SQL directly.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/metrics\",children:\"Metrics\"})}),\": define reusable business calculations.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/semantic-layer\",children:\"Semantic Layer\"})}),\": define reusable business concepts.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.a,{href:\"/docs/agents/knowledge/memories\",children:\"Memories\"})}),\": review the context Ask Altertable learns over time.\"]}),`\n`,(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.strong,{children:(0,n.jsx)(e.a,{href:\"/docs/agents/mcp\",children:\"MCP\"})}),\": connect external AI clients to the same data and tools.\"]}),`\n`]})]})]})}function g(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(u,{...t})}):u(t)}function i(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return x(S);})();\n;return Component;"},"_id":"docs/agents/ask.mdx","_raw":{"sourceFilePath":"docs/agents/ask.mdx","sourceFileName":"ask.mdx","sourceFileDir":"docs/agents","contentType":"mdx","flattenedPath":"docs/agents/ask"},"type":"Docs","path":"/agents/ask","level":2,"parent":"agents"}