Palantir's getting-started guide for AIP Chatbot Studio takes a builder from an empty file to a published assistant. Companion pages cover tools, retrieval, evaluation and logging. Our November 24 explainer set out what the product is; this guide covers how to build with it.

The pattern here is an assistant grounded in your Ontology. You test it in the editor, then publish it as a Function so you can evaluate it in AIP Evals. Only after that do you share it with users through Share, making sure they have access to the model and data sources it uses. In our view, that test-and-evaluate loop is Chatbot Studio's most useful feature for teams.

A note on naming: Palantir's overview says, "AIP Chatbot Studio was previously known as AIP Agent Studio, and AIP Chatbots were previously known as AIP Agents."

Before you start: the guide lists three prerequisites.

  • "AIP enabled on your enrollment and permission to use AIP capabilities for custom workflows, which include AIP Chatbot Studio"
  • "At least one large language model (LLM) enabled on your enrollment"
  • "Permission to create files in the project or folder where you want to save your AIP Chatbot"

Step 1: Create the chatbot

  1. Open Applications, enter "Chatbot" in the search box and select AIP Chatbot Studio. Quicksearch also works, with Cmd+J on macOS or Ctrl+J on Windows. The guide says: "If AIP Chatbot Studio does not appear in your search results, you might not have access to it. Ask your platform administrator to review the prerequisites and the application access settings for your enrollment."
  2. Select New AIP Chatbot in the upper right. You can add a description and an avatar. Palantir notes: "Users of your chatbot see these details."
  3. Choose a save location. The guide says: "Select Create chatbot in the lower right. This button is unavailable until you choose a save location."

You can also start from Files with + New > AIP Chatbot, or from AIP Threads. Palantir says: "AIP Chatbots are saved as files in a project or folder, and they have the same granular access controls as other resources in the platform."

The editor opens on the Monitoring panel. Most setup happens in two other panels: Chatbot configuration and Conversation settings.

Step 2: Pick a model and write instructions

  1. Choose a model. The guide says: "The models available to you are a subset of those enabled on your enrollment. Users of your chatbot should also have access to this model."
  2. Write instructions, which are "part of the chatbot's system prompt". Palantir's example: "You are an assistant for a maintenance team. Answer questions about equipment maintenance clearly and concisely. If you are not sure of an answer, say that you do not know."
  3. Set the temperature. The guide says: "Use the Temperature slider to determine the balance between focused, deterministic output (default value 0) and more random output (maximum value 1)."
  4. After you add tools or application state, press / in the Instructions field to refer to them. Palantir advises: "Make sure to describe the underlying business logic and the appropriate situations for using each tool."

The core concepts page says to put the task overview first. It adds: "Keep in mind that an LLM only has access to the information you explicitly provide."

To set what users see first, go to Conversation settings > Conversation guide and add an input placeholder and starting prompts.

Step 3: Ground answers with retrieval context

The getting-started guide calls retrieval context "simple, fast, and recommended for most use cases". The retrieval context page says: "Retrieval context is deterministically run with every new user message and the retrieved information is passed into the LLM."

  1. Ontology context. Supply a fixed set of N objects, or run a semantic search for the K most relevant objects, "provided that your object type has a vector embedding property". Start from the full object type with a Static input, or from a filtered object set passed in as a variable.
  2. Trim the properties. You choose which properties go to the LLM for each object. By default, Palantir says, "all properties are selected", except those that cannot be printed.
  3. Document context. Full document text mode passes the whole document. Relevant chunks mode returns the K most relevant chunks. Palantir says that mode is in beta and can be requested from your Palantir representative or Palantir Support.
  4. Function-backed context. Use this when the built-in methods do not fit, such as combining keyword and semantic search. You write it in TypeScript v1 in Code Repositories against the `AipAgentsContextRetrieval` interface. It takes `messages` as its only required input and outputs a `retrievedPrompt` string.

Palantir says users "will soon be able to write these functions in AIP Logic". Meanwhile, it recommends a TypeScript function that calls the Logic function under the hood. The chatbot also renders citation bubbles if the LLM replies with citations in a specific XML format.

Step 4: Choose tools, and decide whether it can act

The tools page lists the options:

  • Object query: "This tool specifies the object types that the LLM can access." You can limit it to selected properties "to make queries more token-efficient". It supports filtering, aggregation, inspection and link traversal.
  • Action: "Gives your chatbot the ability to execute an ontology edit. This can be configured to run automatically or to run after confirmation from the user."
  • Function: this can call any Foundry function, including published AIP Logic functions. It uses the latest version unless you specify a published version.
  • Update application variable, Command and Request clarification complete the list. A legacy Ontology semantic search tool remains, but Palantir recommends Ontology context instead.

Prompted tool calling works with every tool type and model, but calls one tool at a time. Native tool calling works with a subset of Palantir-provided models and four tool types: actions, object query, function and update application variable. Palantir says it brings greater token efficiency and can call multiple tools in parallel.

Palantir's guide says: "Use tools for complex and action-taking chatbots." We think the cleanest split is this:

  • A read-only assistant uses retrieval context and object query, with no Action tools.
  • An action-taking assistant adds Action tools, set to run after the user confirms.

Step 5: Test in the editor

Type a message in the center chat panel. The guide says: "The chat panel uses your current configuration, including changes that you have not saved yet." Expand the reasoning steps to see how the chatbot reached each answer.

To see the end user's view, select View and choose a version.

Save before you publish. The guide says: "Publish and the publish settings icon next to it are unavailable while you have unsaved changes."

Step 6: Evaluate with AIP Evals

The chatbots-as-functions page says publishing a chatbot as a Function lets builders evaluate it in AIP Evals.

  1. Select the publish settings icon next to Publish and toggle on Publish function from chatbot.
  2. Choose an Ontology and fill in the Function name, API name and description. Then select Publish chatbot and function.
  3. Open the Evaluation tab and select Create evaluation suite. Palantir says: "The evaluation suite must be in the same Project as the chatbot."
  4. Start a fresh session in each test case. The evaluation section says: "To start a new session with your chatbot, make sure that the sessionRid is set to null. If a session RID is provided, the chatbot will continue an existing session, which is likely not the intent during testing."

The page's section on Function inputs words this differently, telling builders to leave the sessionRid input empty and omit it rather than pass an empty string. The Function returns `markdownResponse`, which Palantir describes as the final text response, and `sessionRid`.

How permissions carry through

The overview says Chatbot Studio is built on the platform's security model: "These platform security controls grant an LLM access only to what is necessary to complete a task."

The guide says sharing goes through Share in the upper right of the editor. It adds: "Users also need access to the model and the data sources that your chatbot uses." It also tells builders to ensure users can reach the configured retrieval context "to avoid errors at runtime".

Versions, publishing and usage

To describe a saved version, select the arrow next to Save, then Save with description. Palantir says Function versions can be published each time the chatbot is published or each time it is saved. Turning on AIP Assist makes the latest published version available there.

Published chatbots can run in AIP Threads; in Workshop, through the AIP Chatbot widget; in AIP Assist; and in custom applications built with Developer Console, the Ontology SDK or platform APIs. Palantir's April announcement, as quoted in our earlier post, says the API keeps "the existing AIP Agent endpoints".

The Monitoring panel shows sessions, users, and the share of sessions marked helpful or unhelpful. The Usage panel shows where the chatbot is used, such as Workshop applications, automations and external deployments.

According to the session logging page, chatbot executions are logged as structured events that can be exported to a Foundry streaming dataset. It says: "Each message sent to a chatbot counts as one execution, and every execution is assigned a unique trace identifier that connects all related log entries." That is the unit for logging, and a metadata event records the chatbot version for each execution.

On model capacity, our November 24 post reports that Palantir's announcements direct builders to review token costs and pricing. It adds that April's autoscaling raised enrollment capacity limits "up to twice the current allocation" for specific models, under Resource Management > AIP usage & limits > Autoscaling.

Watch out for

  • Unbounded context. The core concepts page says: "Exceeding the context window will result in an error, prompting users to create a new session to continue their interaction." The docs offer three ways to stay within it: trim properties, limit object query tools to selected properties, and pass filtered object sets.
  • Broad defaults in evals. For object set variables, Palantir says "all objects in the object type will be included by default". It also says object set variables "cannot be empty".
  • Over-broad tools. In our view, builders should add only the object types, properties and functions the task needs, and pin the Function versions they rely on.
  • Sensitive logs. Palantir says session logs can contain "user prompts, identifiers, application variables, retrieval context, and tool inputs and results". It recommends restricting the output dataset to people who need it and applying security markings. It also notes: "Event schemas and event types are subject to change."

What to watch

We think retrieval functions written in AIP Logic, which Palantir says are coming soon, are the next thing to look forward to. Relevant chunks mode is in beta for teams that request it. For a hands-on start, Palantir points builders to its Speedrun: Your First AIP Workflow course.