Prompt Library
Manage reusable prompts for AI nodes across workflows, ensuring consistent AI behavior.
What is the Prompt Library?
A central repository for:
- System prompts
- Instruction templates
- Few-shot examples
- Tested prompt patterns
Benefits
- Consistency: Same prompt behavior everywhere, across workflows
- Versioning: Track prompt changes with version control
- Collaboration: Share prompts across the team
- Testing: Easier A/B testing
- Easy updates: Change once, applied everywhere
Creating a Prompt
- Navigate to Automation → Prompt Library
- Click + Create Prompt (or + New Prompt)
- Enter:
- Name - Descriptive identifier
- Description - What it does
- Category - Organization
- Content - The prompt text
- Save
Prompt Structure
System Prompt
Sets AI behavior and personality:
You are a helpful customer support agent for Expedify.
You are friendly, professional, and concise.
Always verify information before providing answers.
If unsure, ask clarifying questions.
Instruction Template
Specific task instructions with variables:
Analyze the following customer message and:
1. Identify the main issue
2. Determine sentiment (positive/neutral/negative)
3. Suggest a response
Customer message: {{message}}
Respond in JSON format:
{
"issue": "...",
"sentiment": "...",
"suggested_response": "..."
}
With Variables
Use placeholders for dynamic content:
Summarize the following customer information:
Name: {{contact_name}}
Company: {{company_name}}
Recent Activity: {{activity_summary}}
Provide a brief 2-3 sentence summary focusing on their needs.
Using Variables
Insert dynamic content:
| Variable | Source |
|---|---|
{{contact.name}} | CRM contact |
{{input.message}} | Workflow input |
{{kb_results}} | KB search results |
{{previous_output}} | Prior node output |
Override variables to pass different values each execution:
- From trigger data
- From previous nodes
- From CRM fields
Using in Workflows
LLM Node
- Add LLM node to workflow
- In the prompt field, click Library (or select Use Prompt from Library)
- Select your prompt
- Map variables to inputs
Combining Prompts
Use multiple prompts together:
System: {{prompt:customer_support_agent}}
Context: {{prompt:product_knowledge}}
Task: {{prompt:response_generator}}
User message: {{input.message}}
Prompt Categories
Organize by purpose:
| Category | Examples |
|---|---|
| System | Agent personalities |
| Analysis | Sentiment, classification |
| Generation | Emails, summaries |
| Extraction | Data parsing |
| Conversation | Chat responses |
Version Control
- Each save creates a version
- View version history
- Revert to previous versions
- Compare versions side-by-side
Creating Versions
- Open prompt
- Make changes
- Click Save as New Version
- Add version notes
Comparing Versions
- Click History
- Select versions to compare
- View diff
Rolling Back
- Find previous version
- Click Restore
- Confirm
Testing Prompts
Quick Test
- Open prompt
- Click Test
- Enter sample input
- View output
- Iterate
A/B Testing
Compare prompt versions:
- Create variant prompts
- Use in AI Evaluation
- Compare metrics
- Select winner
Best Practices
- Be specific - Clear instructions
- Use examples - Show expected output
- Version everything - Track changes
- Test thoroughly - Multiple scenarios
- Document purpose - Future reference
Example Prompts
Email Summary
Summarize this email thread in 2-3 bullet points:
- Key points discussed
- Action items
- Next steps
Email thread:
{{email_thread}}
Lead Qualification
Analyze this lead and score from 1-100:
Lead info:
- Company: {{company.name}}
- Size: {{company.size}}
- Industry: {{company.industry}}
- Behavior: {{visitor.page_views}} page views
Scoring criteria:
- Company fit (40 points)
- Engagement level (30 points)
- Budget signals (30 points)
Output JSON: {"score": X, "reasoning": "..."}