> For the complete documentation index, see [llms.txt](https://help.tellius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tellius.com/settings/kaiya-and-ai/system-prompts.md).

# System Prompts

A system prompt is the standing instruction given to a language model before it sees any user question. Under **Settings → Intelligence → Kaiya & AI → System Prompts,** admins can set the model's role, the rules it must follow, and the format its answer has to take. Kaiya does not run on a single prompt; it uses a large library of them, one per task, so that the model handling SQL generation gets different instructions from the model writing a summary.

<figure><img src="https://3138146484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM1pa9Nct9EmVU4Ol8Mol%2Fuploads%2FctOZbGixrs3xzOcftTEt%2Fimage.png?alt=media&amp;token=0f1de75e-e960-4043-9bb8-8c722f1815e4" alt="" width="563"><figcaption></figcaption></figure>

This page exposes that library for viewing and editing. Editing a prompt changes how Kaiya behaves for every user in the workspace.

#### The two layers

Prompts are split into two independent groups, each with its own selector. Understanding the split matters, because the same underlying task can appear in both.

**Implementation Layer:** Prompts that carry out a task. These define what the model does mechanically: choosing a workflow, generating a plan, building a component, extracting a summary.

Examples in this layer include Orchestrator, Insight App – Plan Generation, Insight App – JSX Build Agent (Modular), Agentic Insights – Planner, Agentic Insights – WebSearch, CMS – Anchor Decision, and Workflow Descriptions.

<figure><img src="https://3138146484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM1pa9Nct9EmVU4Ol8Mol%2Fuploads%2F9DXivgWnexthqcbblliN%2Fimage.png?alt=media&amp;token=a08eb65f-d0a5-41b3-93a7-41d37ebfa116" alt="" width="335"><figcaption></figcaption></figure>

**Behavioural Layer:** Prompts that shape how the model conducts itself while doing the work: tone, style, and output conventions. Entries in this layer are suffixed "*(Behavioural)*".&#x20;

Examples include Analytic Planner, Simplified Text2SQL, Text2SQL Reflection, Chart config generation, Title narration realtime, Title narration non-realtime, DeepInsight Planner (Behavioural), DeepInsight Summary (Behavioural), Mission Planner (Behavioural), Mission Patch (Behavioural), PDF HTML Generator (Behavioural), PPT Codegen (Behavioural), and DOCX Codegen (Behavioural).

<figure><img src="https://3138146484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM1pa9Nct9EmVU4Ol8Mol%2Fuploads%2FfLYrA4H12T7qRW9uMC1N%2Fimage.png?alt=media&amp;token=0ffa21c1-9c04-48da-932a-171a8a7e8f35" alt="" width="332"><figcaption></figcaption></figure>

The two selectors are independent. Choosing a prompt in one layer does not change the other, and each layer can display a prompt at the same time.

#### Finding a prompt

Click **Select a prompt** on either layer. The dropdown contains a **Search** box at the top. Type any part of a prompt name to narrow the list.&#x20;

At the bottom of every dropdown is **Clear Filter**. This deselects the currently loaded prompt and returns that layer to its empty state.

#### Viewing a prompt

Selecting a prompt loads it below the dropdown, with:

* The **prompt name** as a heading.
* **Last Updated**, showing the date and time the prompt was last changed.
* The **prompt body**, rendered as formatted text with headings, lists, bold, and inline code styling. The panel scrolls internally; these prompts run long.

Two buttons sit at the bottom: **Delete** and **Edit**.

#### Editing a prompt

Clicking **Edit** swaps the rendered view for a plain-text editor showing the prompt's raw source. Two things become visible here that the rendered view hides:

**Markdown formatting.** Headings appear as `###`, bold as `**text**`, and inline code inside backticks. The rendered view above is simply this markdown displayed with styling applied.

**Jinja templating.** Prompts contain template expressions that are filled in at runtime rather than being fixed text. Two forms appear:

* `{% ... %}` — statements that set values or control logic. For example, `{% set text_language = text_language | default("English", true) %}` assigns a language variable and falls back to English when none is supplied.
* `{{ ... }}` — placeholders that insert a value into the text. `{{ text_language }}` is replaced with the actual language when the prompt runs.

Treat these expressions as functional code. Deleting or mistyping one can break the prompt or cause the model to receive a literal `{{ text_language }}` instead of a real value.

Click **Save** to apply your changes or **Cancel** to discard them and return to the rendered view. Save stays inactive until you change something.

#### Before you edit

These prompts govern Kaiya's behavior across the whole workspace. Practical precautions:

* Copy the existing prompt text somewhere safe before changing it, so you can restore the original.
* Change one prompt at a time and test the affected workflow, rather than editing several at once.
* Leave the Jinja expressions and any named flags such as `deep_insight_workflow` or `requireUserApprovalOnSwitch` exactly as they are unless you know what consumes them.
* Note the *Last Updated* timestamp first, in case someone else is working on the same prompt.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.tellius.com/settings/kaiya-and-ai/system-prompts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
