# Custom End User Spaces in Custom Spaces

1 min read

# **Overview**  
The **Custom End User Spaces** feature allows users to create personalized versions of an existing Unique AI Space by adding their own specific instructions on top of the general space configuration.  
This enables flexible, user-specific behavior without modifying the original space configuration.

* * *

# **Purpose**  
This feature allows end users to:

- Customize how a Custom Space behaves
- Add personal instructions on top of the default space instruction
- Create tailored AI agents for specific use cases

* * *

# **Activation (Admin Configuration)**  
The feature must first be enabled at the space level.

## **Steps to Activate Custom Spaces**  
When creating or editing a custom space in admin,

1. Open **Advanced Settings**
2. Add `"allowEndUserSpace": true,` to the existing JSON configurations.
3. Save the configuration

Setting `allowEndUserSpace` flag

## **End User Guide: Creating a Customized Space**  
After activation, end users can create their own custom space directly within the Chat interface.

### **Step 1: Access the Space**  
- Open the enabled AI Space in the Chat UI  
- In the top-right corner, click the button `Customize Space`

* * *

### **Step 2: Create a New Custom Space**  
1. Click `Customize Spaces`
2. Enter:
   - **Name** of the new custom space
   - **Specific instruction** you want to apply
3. Click **Save**

* * *

### **Step 3: Access Your Customized Space**  
- The new custom space will be listed under the section **“Customized”**
- You can now select and use it like any other space

* * *

# **How It Works**  
A customized space inherits:
- The **general space instruction** (configured globally)
- PLUS the **user-defined custom instruction**

The system combines both instructions when generating responses.

## **Instruction Hierarchy**  
```
General Space Instruction
+ Custom User Instruction
= Final Agent Behavior
```

* * *

# **Example Use Case**  
## **Scenario:**  
The general space instruction defines a knowledge assistant. A user creates a customized space with the additional instruction:
> “Always answer in Spanish.”

### **Result:**  
The AI agent will:
- Retain all functionality of the original space
- Always respond in Spanish
- Apply both instructions simultaneously
