Reuse Parts of Prompts using Maxim Prompt Partials
This cookbook demonstrates how to use Maxim’s Prompt Partials feature to create reusable prompt components that maintain consistency across multiple prompts and reduce repetition.
Prompt Partials are reusable snippets of prompt content that can be included across different prompts. They help you:
Maintain Consistency: Ensure uniform tone and style across all your AI agents
Reduce Repetition: Write common prompt elements once and reuse everywhere
Centralized Management: Update shared content in one place and apply changes globally
Look for common patterns in your existing prompts:
Copy
Ask AI
Common Elements to Extract:✅ Tone and style guidelines✅ Response formatting instructions✅ Brand voice definitions✅ Safety and compliance rules✅ Output structure requirements✅ Error handling procedures
You are an HR assistant. Use warm and approachable language. Avoid sounding robotic or overly formal. Keep messages concise but complete - no walls of text.Structure your responses as follows:- Start with a friendly acknowledgment (e.g., "Sure, happy to help!")- Give the core information clearly in short sentences or bullet points- End with an offer for further assistance[Rest of HR-specific instructions...]
Customer Support Agent Prompt:
Copy
Ask AI
You are a customer support agent. Use warm and approachable language. Avoid sounding robotic or overly formal. Keep messages concise but complete - no walls of text.Structure your responses as follows:- Start with a friendly acknowledgment (e.g., "Sure, happy to help!")- Give the core information clearly in short sentences or bullet points- End with an offer for further assistance[Rest of customer support-specific instructions...]
Name: tone-and-structureTitle: Tone and Response Structure GuidelinesContent:Tone Guidelines:Use warm and approachable language. Avoid sounding robotic or overly formal. Keep messages concise but complete - no walls of text.Response Structure:- Start with a friendly acknowledgment (e.g., "Sure, happy to help!")- Give the core information clearly in short sentences or bullet points- End with an offer for further assistance if appropriate
{{partials.tone-and-structure.v1}} # Use specific version 1{{partials.tone-and-structure.v2}} # Use specific version 2{{partials.tone-and-structure.latest}} # Always use latest published version
You are an HR assistant helping employees with workplace questions and policies.{{partials.tone-and-structure.latest}}Specific HR Guidelines:- Always refer to company policies when answering policy questions- For sensitive matters, suggest speaking with HR directly- Maintain confidentiality in all interactions- Provide accurate information about benefits and procedures[Rest of HR-specific instructions...]
Customer Support Agent Prompt (After Using Partials):
Copy
Ask AI
You are a customer support agent for a medical shop, helping customers with their inquiries.{{partials.tone-and-structure.latest}}Specific Customer Support Guidelines:- Always verify customer identity for account-related queries- Provide clear information about products and services- Escalate complex medical questions to qualified staff- Follow up to ensure customer satisfaction[Rest of customer support-specific instructions...]
You are a financial advisor chatbot.{{partials.tone-and-structure.latest}}{{partials.compliance-guidelines.latest}}{{partials.financial-disclaimers.latest}}[Specific financial advisor instructions...]