# 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="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-f6c760fd5b0407a4d9558fe7fb10ff8a8bbb52d3%2F%E6%96%B0%E5%A2%9E%E7%B5%84%E7%B9%94%E6%88%90%E5%93%A1%20(7)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### 2. Navigate to Response Mode Settings

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-e2c3e73ffd40e5dd7828c6105331218414fc711b%2F%E6%96%B0%E5%A2%9E%E7%B5%84%E7%B9%94%E6%88%90%E5%93%A1%20(8)%20(1)%20(1).png?alt=media" 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="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-d86be7a233d62daf3cc9b13bda053a170853f093%2F%E6%96%B0%E5%A2%9E%E7%B5%84%E7%B9%94%E6%88%90%E5%93%A1%20(9)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-30b71b9d2c91fe4e459d182deef710da3e5e3557%2FAPI%E5%B7%A5%E5%85%B7%20(14).png?alt=media" alt=""><figcaption></figcaption></figure>

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