Skip to content
Last updated

AI Chat Interface

WebDesktopMobile

Ask a question in plain language and watch Studio translate it into executed queries, segment definitions, and production-ready files — all streamed in real time so you can see every decision the AI makes. This page covers the chat surface itself: sending a message, reading the response as it streams, answering the AI when it asks for something, and attaching files. For the session that runs behind the chat — status labels, time limits, and how a chat resumes — see Chat Sessions & Limits.

Note

The AI executes all actions inside a server-side sandbox. Every tool call (queries, API requests, file operations) is visible and expandable in the chat stream, so you can verify what happened before acting on results.

Prerequisites

  • Signed in to Treasure AI Studio (Getting Started)
  • At least one database accessible in your Treasure AI account (for query-related tasks)

Sending Messages

Type your message in the input area at the bottom of the screen and press Enter (or tap the Send button) to send.

Web & Desktop

  • Type in the message text area at the bottom of the screen
  • Press Enter to send, or Shift+Enter for a new line
  • While an input method editor is converting text (Japanese, Chinese, or Korean input), Enter commits the conversion instead of sending — press it again to send
  • Use the microphone button to dictate your message instead of typing (Web and macOS; see Voice Input)

Before you type, the input shows a rotating example prompt (for instance, "e.g. build a segment of high-value shoppers who haven't purchased in 30 days") to suggest the kinds of requests Studio handles.

Chat input area with a plus button, a Balanced model tier selector, the Ask command approval selector, and microphone and send buttons, with the notice that AI-generated output may be incorrect below it

The composer also carries these controls:

  • Model selector — names the tier this chat is using (Pro, Balanced, or Fast). Switching tiers applies from your next message and preserves the conversation, so you can explore on Fast and switch to Pro for the hard part. See AI Model Tiers.
  • Credit indicator — appears only when your organization sets a daily credit limit, showing your usage for the day (for example, "3.5 / 10 credits used"). See Credit Policy.
  • Command approval — choose Ask or Auto to decide whether the agent asks before it runs a tdx command in this chat. Ask is the default. See Choosing Ask or Auto.

Studio also keeps a standing reminder under the composer: "AI-generated output may be incorrect. Verify important information before relying on it." Review generated SQL, segment rules, and configurations before you rely on them — see Reviewing What the Agent Produces.

Mobile

  • Tap the message input area at the bottom of the screen
  • Tap the plus button (+) to attach files (see Adding Files to a Message)
  • Tap the model tier pill (Pro, Balanced, or Fast) to open the Model tier sheet and choose the tier for your next message. It is disabled while a response is streaming, and in the Korea region (AP02), which offers only Balanced, the sheet lists that one tier
  • Use the microphone button to dictate your message instead of typing (see Voice Input)
  • Tap the Send button to send. While the AI is responding, it becomes the Stop button

Invoking a Skill with a Slash Command

On Web and Desktop, type / as the first character of a message to open the Skills menu, which lists the skills available in the chat and names the plugin each one comes from ("via plugin"). Filter the list by typing either the skill name or its plugin, select an entry to insert the invocation, then add your instructions and send. A / typed anywhere else in a message is ordinary text and opens nothing.

The menu is a shortcut for the explicit form, /{plugin-name}:<skill> (for example, /tdx-skills:segment), which you can always type in full. Skills also activate on their own when your request matches one — the menu is for the times you want to force a specific skill. The mobile app has no slash-command menu. See Skills & Marketplace for what each skill does, and Actions for skills that run as one-click actions.

Starting a New Chat

Web & Desktop

Click New Chat at the top of the sidebar. Studio opens the landing page: the heading "Let's use AI marketing to drive" followed by a word that cycles through Growth, Performance, Activation, and Retention, with a composer beneath it. Nothing is created until you send your first message.

The composer here carries one control the in-chat composer does not: a work folder chip naming where this chat will be saved — General unless you have changed your default. Click it to choose a different folder, any time up until you send. See Work Folders.

The composer also has the command approval selector (Ask or Auto), and the mode you choose applies to your first message. See Choosing Ask or Auto.

Treasure AI Studio landing page with the heading Let's use AI marketing to drive Activation, a composer showing the General work folder, Balanced model tier, and the Ask command approval selector, and four sample prompt cards labeled Identify audience, Plan campaign, Map journey, and Analyze data under a Marketer role filter

Start With a Sample Prompt

Below the composer, Start with a sample prompt offers four cards for one role at a time — Marketer, Data Engineer, or Executive, selected in the dropdown beside the heading. Each card shows a colored category pill (Identify audience, Plan campaign, Map journey, or Analyze data) above an illustration of the kind of output that prompt produces. The prompt text is not printed on the card, so selecting one is how you read it:

  • Selecting a card fills the composer with the full prompt and scrolls back to it, briefly highlighting the input. Nothing is sent — read it, edit it, then send when you are ready
  • Shuffle drops a random prompt into the composer the same way. Its label rotates through Shuffle, Surprise me, I'm feeling lucky, and Randomize
  • Every prompt in the catalog asks the AI to propose a plan and wait for your approval before it acts, which makes the cards a low-risk way to see how Studio works against your own data
  • The role you select is kept in the page URL, so a filtered view can be bookmarked or shared
  • Free accounts get an additional industry filter (Retail, Travel, Finance, and six more) over a catalog written for that industry

Mobile

The app opens on the new-chat composer, so you can start typing right after you sign in. To start another chat, open the navigation drawer (tap the menu button at the top left, or swipe right from the left edge of the screen) and tap the New chat button at the bottom right, or tap the Treasure AI Studio title row at the top of the drawer. On a work folder's page, the New chat button starts a chat in that work folder.

The new-chat screen shows the same Let's use AI marketing to drive heading and rotating word as Web and Desktop, and a work folder chip directly above the composer names where this chat will be saved. The chip starts on your default work folder; tap it to choose a different one before you send. The mobile app has no sample prompt cards. Nothing is created until you send your first message.

How the AI Responds

When you send a message, Studio shows the AI's response as it generates in real time. The first message in a chat takes a few seconds to get moving, and a status label above the input names the stage while you wait — "Booting secure sandbox...", "Initializing agent...", then "Waiting for response..." (see Status Indicators).

Thinking Phase

Before responding, the AI may spend time reasoning about your request. While it does, a "Thinking" indicator appears. When the reasoning is relevant, it is shown in a collapsible block you can expand to follow how the AI planned its response — which tools to call, in what order, and how to structure a complex answer.

Streaming Phase

The AI's text appears word by word as it generates. If the AI needs to execute actions (run a query, read a file, call an API), you see each tool call displayed inline as it happens.

Tool calls display:

  • Tool name and status (running, completed, or failed)
  • Expandable details showing the tool's input and output
  • Real-time progress — you can watch queries execute and results return

When the AI uses the same tool three or more times in a row, Studio rolls those calls into a single collapsible group rather than a wall of rows. The group header reports progress while the run is live ("Running Read (2/5)…"), then how it finished — "Used Read 5 times", or "Read 3/5 succeeded" when part of the run failed. Expand the group to see the first three calls and "+ N more" for the rest.

Studio's built-in agents can read the web during a chat, using both a web search tool and a page fetch tool. They decide on their own whether external context is needed — there is no setting to turn on and no command to type — so a question about recent market trends, competitor announcements, or another time-sensitive topic can pull in current information, while a question your Treasure AI data already answers does not.

Web access is visible like any other action: a Web search or Fetch page tool call appears inline in the stream, and expanding it shows the query or URL and what came back. See Available Tool Categories for the full set of tools the agents can reach for.

Stopping a Response

If you want to interrupt the AI mid-response:

  • Web & Desktop: Click the Stop button (square icon) that replaces the Send button during generation
  • Mobile: Tap the Stop button (square icon)

Stopping ends the current turn only. The chat stays open and keeps everything produced up to that point, so you can send a corrected instruction immediately.

When Studio Needs Something From You

Some turns pause and wait for you. Studio raises three kinds of prompt inline in the chat, and each one blocks the AI from continuing until it is resolved.

Question Cards

When the AI needs more information before proceeding, a question card appears in the chat. A card can carry one question or several:

  • Each question offers selectable options, and some accept more than one selection
  • "Other..." opens a text field for an answer that is not on the list
  • A card with several questions paginates one question per page — the dots navigate freely between pages, and the last page submits all your answers together
  • The regular chat input is disabled with the placeholder "Answer the question above..." until you respond

A question left unanswered for five minutes is marked "Question timed out" and the AI continues without your input, so answer promptly — or send a new message carrying the detail it was missing.

Approving tdx Commands

In Ask mode, the default, a question card is also how the agent asks for approval. Before running a tdx command — the CLI behind every Treasure Data CDP operation, read-only queries included — the agent normally shows the exact command on a card and asks whether to run it. Approve it to let the command run; decline it and the agent does not run it. A card that times out is treated as a decline.

In Ask mode, the agent decides when to ask, so a command can occasionally run without a card, and scheduled runs never ask. Read Approval Before tdx Commands for what the card covers and where the real boundary lies.

Choosing Ask or Auto

The command approval selector in the composer sets how the agent handles tdx commands in the current chat. Ask instructs the agent to request approval before running tdx commands. Auto runs them without a card, so the agent moves from one command to the next without waiting for you. Use Auto for a chat where you trust the commands the agent will run, and rely on your Treasure Data CDP permissions for anything that must not happen.

The command approval selector open above the chat composer, showing Ask, described as Confirm before running tdx commands, and Auto, described as Run tdx commands without asking
  • Ask is the default. A new chat starts in Ask, and the mode you choose is saved with that chat. The mobile app has no selector, but the same chat there shows the mode you set on the web.
  • A change applies from the next model request. In a multi-step response, that can be partway through a response you are still watching.
  • Ordinary questions still appear. In Auto, the agent can still send a question card when it needs a detail. Only the tdx approval card is skipped.
  • Your own instructions still apply. Ask and Auto change only the built-in approval card. A checkpoint you write in a message or in Custom Instructions stays in the instructions the agent receives, but which one the agent follows is not guaranteed when it conflicts with Auto. See Approval Before tdx Commands.
  • Switching to Auto runs the pending command. If a tdx approval card is open when you switch to Auto, Studio counts it as Approve, so that command runs. Switch only when you are ready for it to proceed.
  • Switching back to Ask does not stop a command already in progress. A command the agent is already generating under Auto can still run, and commands you approved stay approved.
  • An unconfirmed change reverts. If Studio does not confirm the change within 30 seconds, or the change fails, the selector returns to the previous mode and a message says so.
  • The selector is unavailable while your message is being sent, a file is uploading, or an edit or stop is in progress. It is also hidden in scheduled chats, which never ask.

Connection Requests

When a task needs a data source you have not connected, the AI raises a "Connection Required" card naming the service (for example, Databricks or Snowflake):

  • Connect starts the authorization flow; the card resolves to "Connected: service" and the AI continues
  • Decline refuses the request, and the card is marked "Connection declined"
  • An untouched request eventually shows "Connection timed out"

See Connections for what each connector reaches and how to set one up in advance.

Daily Credit Limit

If your organization sets a daily credit limit and you reach it, the chat stops accepting messages: the credit indicator reads "Daily limit reached" and Studio names the time your quota resets. Work resumes after the reset, or when an administrator raises the limit. See Credit Policy.

Message Actions

Copying a response and editing a message are available on Web and Desktop. The mobile app does not offer them.

Copying a Response

Hover over any assistant message to reveal a Copy button. Click it to copy the full response text to your clipboard. A checkmark icon confirms the copy.

Editing and Resending

Hover over any of your messages to reveal a pencil icon. Click it to edit your message:

  1. The message text becomes editable in a text area
  2. Modify your message
  3. Press Enter (or click Submit) to resend, or press Escape (or click Cancel) to discard your changes
Technical Note

Editing a message rewinds the conversation to that point. Studio truncates the session transcript at the edited message, so everything after it — your later messages, the AI's replies, and the tool results behind them — leaves the AI's context as well as the visible chat. The AI then answers the edited message as if the rest had never happened.

Adding Files to a Message

Adding a file is really an upload plus a reference: Studio uploads the file to uploads/ in the chat's workspace and appends the resulting path to your message. The AI then opens the file from that path — so the file isn't attached to the message so much as placed where the AI can read it. See Where Attachments Are Saved.

Web & Desktop

  • Click the plus button (+) in the chat input toolbar to pick a file
  • Selected files appear as removable chips below the text area
  • When you send, each uploaded file's path is added to the end of your message

Mobile

Tap the plus button (+) to open the Attach file sheet with these options:

  • Camera — Take a photo
  • Photo Library — Select images or video from your photo library
  • Files — Browse and select documents

You can select more than one file. Selected files appear as chips below the text area, each with an X to remove it. A directory path field also appears, prefilled with uploads (my/uploads in a shared work folder), with suggestions and an option to create a new path.

For details on supported file types and viewers, see Files & Artifacts and File Viewers.

Troubleshooting

IssueSolution
Enter doesn't send your messageIf you are typing with an IME, the first Enter commits the conversion — press Enter again to send. If the Skills menu is open (you typed / at the start of the message), Enter selects the highlighted skill instead; press Escape to close the menu
The status label sits on "Waiting for response...", then disappears with no replyBoth are expected: "Waiting for response..." is the normal label once the request is with the model, and Studio stops showing any label after a minute even though the request keeps running. A stalled request raises the session-end banner after 8 minutes without progress — see Status Indicators
AI response cuts off mid-sentenceSend a follow-up message asking the AI to continue. Studio compacts context automatically as the window fills (see In-Session Memory); if a session is heavily loaded, start a new chat
Tool call shows an errorExpand the tool call to see the error details. Common causes: incorrect database name, expired session, or insufficient permissions
The command approval selector returns to its previous modeStudio could not confirm the change within 30 seconds, or the change failed. Select the mode again to retry
A message shows "Couldn't apply the command approval mode, so your message wasn't run. Try again."Studio could not sync the approval mode before the message ran, so it refused the message. Send the message again

Next Steps