Overview
AI Studio is a powerful tool in Freya that helps you iteratively improve your agent’s system prompt. Using AI assistance, you can refine prompts, add instructions, improve clarity, and optimize performance without manually editing long prompts.Accessing AI Studio
To open AI Studio:- Navigate to an agent’s configuration page
- Find the System Prompt section
- Click the “AI Studio” button (usually represented by a sparkles or magic wand icon)
AI Studio Interface
AI Studio opens in a split-screen modal with two panels:Left Panel: AI Assistant Chat
The left panel contains a chat interface where you can:- Ask for improvements - Request specific changes to your prompt
- Get suggestions - Ask the AI to suggest improvements
- Iterate on changes - Refine prompts through conversation
- View thinking process - See how the AI analyzes and improves your prompt
Right Panel: Prompt Editor
The right panel shows:- Current Prompt - Your agent’s system prompt
- Live Updates - Changes made by the AI assistant in real-time
- Direct Editing - You can also edit the prompt manually
Using AI Studio
Step 1: Describe What You Want
In the chat interface, describe what you want to change or improve. For example:- “Make the prompt more professional”
- “Add instructions for handling angry customers”
- “Improve clarity and remove ambiguity”
- “Add context about our company’s return policy”
- “Make the agent sound more friendly and conversational”
Step 2: Review AI Suggestions
The AI assistant will:- Analyze your current prompt
- Understand your request
- Generate an improved version
- Show you the changes in real-time
Step 3: Iterate and Refine
You can:- Ask for more changes - Request additional modifications
- Accept the changes - Use the improved prompt
- Reject and try again - Ask for a different approach
- Manually edit - Make your own adjustments in the editor
Step 4: Save Your Changes
Once you’re satisfied with the improved prompt:- Review the final prompt in the editor
- Click “Save” to apply the changes to your agent
- The AI Studio will close and your agent will be updated
AI Studio Features
Thinking Process
AI Studio shows you the AI’s thinking process:- Evaluation Phase - How the AI analyzes your current prompt
- Planning Phase - What changes the AI plans to make
- Execution Phase - The actual improvements being made
Copy Prompt
You can copy the improved prompt at any time:- Click the “Copy” button in the prompt editor
- The prompt will be copied to your clipboard
- You can paste it elsewhere or use it in other agents
Variable Support
AI Studio understands Freya’s variable syntax:- Use
{{variable}}for dynamic values - The AI will preserve these variables in the improved prompt
- Variables are highlighted in the editor
Best Practices
Example Use Cases
Making Prompts More Professional
Adding Specific Instructions
Improving Clarity
Next Steps
Import a Phone Number
Once your agent is optimized, connect it to a phone number to start receiving calls.
