Prompt Categories
Prompts are split into two categories in the Airia platform, Prompts and User Prompts. Prompts are system prompts to then be added to model configurations or specific AI operations within Agent workflows. User Prompts are templates that can be surfaced in deployments for chat-focused Agents (see Skills in Airia Chat).The Prompt Editor
The prompt editor consists of three main areas:- Consolidated Prompt View: Displays the complete prompt that will be sent to the model when executed, composed from all your segments
- Building Section: Where you compose your prompt from custom and shared segments
- Shared Prompts Section: Review and pull from shared segments to construct your agent prompt
Prompt Segments
Prompts in Airia are built using segments - modular, reusable components that can be mixed and matched to create your agent’s instructions. There are two types of segments:Custom Segments
Custom segments are agent-specific and ideal for:- Getting started quickly with a new agent
- Instructions unique to a specific agent operation
- Simple concepts or prototyping
- Content that doesn’t need to be reused elsewhere
Shared Segments
Shared segments are reusable, versioned components that work like functions across your agents. They are best for:- Best practices and common patterns
- Instructions used across multiple agents
- Model provider-specific guidelines
- Audience-specific content that can be easily swapped
- Starter templates for common use cases
Building with Segments
Adding Custom Segments
To add a custom segment:- In the building section of the prompt editor, create a new custom segment
- Enter your prompt instructions inline
- The segment will be added to your consolidated prompt
Adding Shared Segments
To add a shared segment:- Browse the shared segments library on the right side of the editor
- Drag the desired segment into the highlighted drop area in your building section
- The segment will be added at the end of your segment list
- Select the specific version of the segment you want to use
Organizing Segments
Once you have multiple segments:- Rearrange segments by dragging them into your preferred order
- Mix custom and shared segments to combine agent-specific instructions with reusable patterns
- The consolidated prompt at the top updates to reflect your segment composition
Managing Shared Segments
Editing Shared Segments
Since shared segments are centrally managed:- Click the action button on the shared segment
- On the shared segment’s header, click to open the segment in a new tab
- Make your edits in the central prompt management area
- Changes will apply to all agents using that segment version
Unlinking Shared Segments
If you wish to detached from the shared instance of a prompt:- Select the “Unlink” option on the shared segment
- The segment becomes a custom segment specific to this agent
- You can now edit it inline
- It will no longer receive updates from the shared version
- Using a shared segment as a starting template
- Creating a variant for a specific use case
- Branching into a new concept based on existing patterns
Browsing the Libraries
Airia provides a diverse library of prompts that can be used out of the box or further customized to your use case. When browsing, you can target industry, model, and other tags to find the prompt best suited for you. The library includes:- Model provider templates with common capabilities as quick-start guides
- Best practice patterns for common agent behaviors
- Industry-specific prompt structures
Prompt Variables
Prompts can be used more broadly as templates across a variety of use cases by including variables. There are two supported methods to add variables in prompts:- Use a structure of
{{variable_name}}in both user prompts and system prompts - Use a structure of
<variable_name />in system prompts - Reference loaded memory from upstream in the agent flow using
<memory value="memory_name" />
Best Practices
When to Create Shared Segments
If you find yourself copying the same custom segment across multiple agents (typically three or more), consider converting it into a shared segment. This allows you to:- Manage the content in one central location
- Version and track changes over time
- Ensure consistency across agents
Keep Segments Small
Smaller, focused segments provide:- Higher reusability across different agents
- Easier maintenance and updates
- More flexibility in composing prompts
- Clearer organization of your prompt logic
Versioning Strategy
- Use versioning to iterate and refine prompts based on testing
- Link agents to specific versions for stability
- Update to newer versions when improvements are validated
Migrating Existing Prompts
If you’ve been building in Airia prior to the segment-based editor, your existing prompts remain accessible:- Legacy prompts appear in the prompt segments library
- They continue to be available in the administration area
Migration Paths
Your approach depends on how you were using prompts before:| Your Previous Usage | Recommended Action | Why |
|---|---|---|
| Editing prompts inline for a single agent | 1. Unlink the prompt segment 2. Delete from shared segments administration | • Continue editing directly in the agent • Reduce administrative clutter |
| Sharing prompts across multiple agents | Keep as shared segment, but consider breaking into smaller chunks | • Maintain centralized management • Increase reusability with smaller segments |
Pro tip: Review your shared segments and break down any large prompts into focused, single-purpose segments for maximum reusability.
