# Add Role Instructions to AI Assistant

After designing your system prompt, you can add it to your AI assistant settings in MaiAgent:

## Adding a System Prompt

### 1. Access the AI Assistant Settings Page

Select the AI assistant you want to configure and click on settings.

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

### 2. Navigate to Response Mode Settings

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

Set the mode to Agent, General (default), or Hybrid mode:

{% hint style="warning" %}
"Template" and "Workflow" modes do not support system prompts
{% endhint %}

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

### 3. Add Text to the System Prompt Section

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

Once completed, the AI assistant will act according to the system prompt you've defined, becoming your personalized AI assistant.


---

# Agent Instructions: 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:

```
GET https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/build/add-system-prompt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
