Persona Variables
Use dynamic placeholders in persona prompts
Persona variables let you insert dynamic content into your persona's prompts and instructions. They're especially useful when using master persona templates.
What Are Variables?
Variables are placeholders that get replaced with your specific values. For example:
Template prompt:
You are a support agent for {{company_name}}. Help customers with {{product_name}} questions.Your values:
company_name: "Acme Corp"
product_name: "Widget Pro"Result:
You are a support agent for Acme Corp. Help customers with Widget Pro questions.Using Variables
From Templates
When you create a persona from a master template:
- Select the template
- You'll see required and optional variables
- Fill in your values
- Save the persona
Required variables must be filled; optional variables have defaults.
Variable Types
| Type | Example | Description |
|---|---|---|
| Company Name | "Acme Corp" | Your company/brand name |
| Product Name | "Widget Pro" | Specific product |
| Support Email | "help@acme.com" | Where to direct inquiries |
| Support Hours | "9am-5pm EST" | Business hours |
| Custom | Various | Any text value |
Common Variables
Company Information
{{company_name}}- Your company name{{company_description}}- Brief description{{industry}}- Your industry
Product Information
{{product_name}}- Product being supported{{product_description}}- What it does{{product_features}}- Key features
Contact Information
{{support_email}}- Support email address{{support_phone}}- Phone number{{support_hours}}- When support is available{{support_url}}- Link to support page
Policies
{{return_policy}}- Return policy summary{{shipping_info}}- Shipping information{{warranty_terms}}- Warranty details
Editing Variables
To update variable values:
- Go to AI Agents > Personas
- Open the persona
- Find the Variables section
- Update values
- Save
Changes take effect immediately.
Creating Custom Variables
If using custom prompts (not templates):
In Custom Instructions
You can reference variables in custom instructions:
Always mention that customers can reach us at {{support_email}}
for complex issues.Defining Variables
Define what variables exist:
- Open persona configuration
- Find custom variables section
- Add variable name and value
- Reference using
{{variable_name}}
Best Practices
Use Consistent Naming
Follow a naming convention:
company_name✓CompanyName✗company-name✗
Keep Values Updated
When company information changes:
- Update variable values
- Changes apply to all prompts using that variable
Document Your Variables
Maintain a list of:
- All variables used
- Current values
- Where they appear
Test After Changes
After updating variables:
- Test in preview
- Verify values appear correctly
- Check for formatting issues
Variable Inheritance
When using master templates:
Template Variables
Defined by the template creator:
- Usually required
- Have specific purposes
Your Values
Your specific values for those variables:
- Must meet any requirements (length, format)
- Override template defaults
Updates
If the template is updated:
- New variables may appear
- Existing variable values are preserved
Troubleshooting
Variable Not Replacing
If you see {{variable_name}} in outputs:
- Check variable name matches exactly
- Verify value is set
- Check for typos in curly braces
Value Too Long
Some variables have length limits:
- Shorten your value
- Or use abbreviated version
Special Characters
If values contain special characters:
- Test in preview
- Some characters may need escaping
- Avoid quotes within quoted values