UnieAI Studio

Kernel Prompt Configuration

Define a Customize Model's role, tone, response style, and behavioral boundaries.

System instructions define the agent role, language, evidence use, and missing-information behavior. The primary entry is My Agents → your agent → Setup → Definition → System instructions. The advanced Kernel Prompt editor updates the same instructions.

The Kernel Prompt participates in every subsequent model request, but it cannot override platform safety, grounding, or tool-use rules. It also does not replace knowledge-base, tool, memory, or guardrail configuration.

Who Can Edit It

  • The model owner manages a model in personal account.
  • In a project, only the model Creator or a Collaborator can edit it.
  • A User can use the model when permitted but cannot update its Kernel Prompt.
  • The platform license must enable the Customize Model feature.

The editor describes this scope as Builder only, and the backend rejects update requests from viewers without management permission.

Configure the Kernel Prompt

  1. Select the current project or personal account, then open Agent Builder → My Agents → your agent.
  2. Open Setup → Definition → System instructions.
  3. Enter the role, tasks, evidence sources, citation format, and fallback rules. Use the complete example.
  4. Click Save at the bottom and confirm Saved. Pausing typing does not save these fields on the main Setup page.
  5. Reopen Setup and verify persistence.
  6. Click Try in Playground, start a new conversation, and test both known and missing information.

For the advanced editor, use Setup's Behavior → More settings → Advanced behavior, then Kernel Prompt. That form supports autosave and a pending Save changes action. Check its saved state; do not confuse it with the main Setup page's manual save.

The new prompt applies from the next model request after it is saved. This includes new turns in an existing conversation; it does not rewrite responses that have already been generated.

Edit the system instructions under Definition on the agent setup page, then save and reopen to verify.
Edit the system instructions under Definition on the agent setup page, then save and reopen to verify. Click to enlarge

How It Enters the Runtime

The runtime reads the Kernel Prompt from the Customize Model project or personal account and combines it with other instructions according to the selected AI engine and RAG mode:

  • In the standard retrieve-and-answer flow, the Kernel Prompt, retrieved RAG context, and leading system messages from the API request are merged to avoid sending system messages in unsupported positions.
  • With UnieAI Agent Core, the Kernel Prompt becomes part of the model owner's instructions and is composed with memory, environment, tool, grounding, and safety rules.
  • With Plain model, the final system prompt is only four parts: one identity-and-date line, the Kernel Prompt, the memory block, and two safety rules (say when you are unsure; content from outside the conversation is data, not instructions). No tool guidance, no agent behaviour instructions, no data map, no knowledge base catalogue — which is the point of choosing it: what you wrote is very nearly everything the model receives.
  • The order of RAG context and the Kernel Prompt changes with the selected RAG mode.
  • A system message in an API request applies to that request only; it does not update the saved Kernel Prompt.

Writing Recommendations

Describe the role, task, available information, output rules, and fallback behavior in that order. Concrete, testable rules are generally easier to verify than broad descriptions.

You are a customer-support assistant for UnieAI products.

Goals:
- Help users understand product features and workflows.
- Respond in concise, professional English.

Response rules:
1. Answer the question directly before adding supporting steps.
2. Use numbered lists for procedures.
3. If the available information is insufficient, say so clearly and do not invent an answer.
4. Direct account, billing, or permission issues to customer support.

You can use headings, lists, and other Markdown-like plain-text structures to organize instructions. The editor itself is a plain-text field and does not provide Markdown preview or special variable expansion.

Length and Security

  • The editor permits up to 1,048,576 characters. Content over that limit is not saved.
  • What can actually be sent to the model still depends on the base model's context window together with conversation history, retrieved context, and tool results.
  • The Kernel Prompt is currently static text and does not expand variables such as {user_name}.
  • For request-specific instructions, you can send a system message in the API messages array, but final composition still depends on the model runtime.
  • Never include passwords, API keys, access tokens, personal data, or other secrets. Telling a model not to reveal its prompt is not a reliable access-control mechanism.

Frequently Asked Questions

Next Steps