> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/build/add-system-prompt.md).

# AI アシスタントへのロール指示の追加

ロール指示の設計が完了したら、MaiAgent の AI アシスタント設定でロール指示を追加できます。

## ロール指示を追加する <a href="#add-system-prompt" id="add-system-prompt"></a>

### 1. AI アシスタント設定ページを開く <a href="#step-1-navigate-to-ai-agent-settings" id="step-1-navigate-to-ai-agent-settings"></a>

設定したい AI アシスタントを選択し、設定をクリックします。

<figure><img src="/files/TRKcAI8fSBreH6icwWid" alt=""><figcaption></figcaption></figure>

### 2. 回答モード設定ページに切り替える <a href="#step-2-switch-to-answer-mode-settings" id="step-2-switch-to-answer-mode-settings"></a>

<figure><img src="/files/TERBeJ0IoYN3IThW6l7H" alt=""><figcaption></figcaption></figure>

モードを Agent、一般（デフォルト）、またはハイブリッドモードに設定します。

{% hint style="warning" %}
「テンプレート」モードと「ワークフロー」モードではロール指示を設定できません
{% endhint %}

<figure><img src="/files/EnaerJuFfoi5WtIgkofW" alt=""><figcaption></figcaption></figure>

### 3. ロール指示の項目にテキストを入力する <a href="#step-3-enter-text-in-system-prompt-section" id="step-3-enter-text-in-system-prompt-section"></a>

<figure><img src="/files/0Q1w67tozueMYt1RwfQN" alt=""><figcaption></figcaption></figure>

このようにすると、AI アシスタントはあなたが定義したロール指示に従って動作し、あなた専用の AI アシスタントになります。


---

# 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://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/build/add-system-prompt.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.
