Master dynamic variables and reusable content with PromptYap's powerful Yap system
Yaps are dynamic variables in PromptYap that allow you to create reusable, maintainable content that can be inserted into any prompt. Think of them as smart placeholders that get replaced with actual content when your prompts are processed.
Yaps use a simple, intuitive syntax that's easy to remember and type:
{{ yap = shorthand_name }}
Shorthand: company_name
Content: Acme Corporation
Description: Our company name for marketing
Write a press release announcing {{ yap = company_name }}'s new product launch.
{{ }}
Standard variables that you create and manage. These contain static content that gets inserted into your prompts.
{{ yap = company_name }} → "Acme Corporation"
{{ yap = product_description }} → "AI-powered analytics platform"
{{ yap = contact_email }} → "support@acme.com"
Special variables that reference previous AI responses in sequences. These are automatically managed by PromptYap and allow you to build complex workflows.
{{ yap = lore }} → Previous step's AI response
{{ yap = lore_1 }} → Step 1's AI response
{{ yap = lore_2 }} → Step 2's AI response
Shorthand: product_tagline
Content: "Innovation that transforms businesses"
Description: Main tagline for marketing materials
Tags: marketing, branding (optional)
company_name
product_description
contact_email
pricing_tier_1
marketing_tagline
support_phone
ceo_bio
feature_list_premium
name (too generic)
CompanyName (use lowercase)
company-name (use underscores)
company name (no spaces)
x (not descriptive)
temp123 (unclear purpose)
company_name
company_address
company_phone
product_name
product_price
product_features
email_template_welcome
email_template_followup
email_template_reminder
pricing_basic
pricing_premium
pricing_enterprise
PromptYap automatically validates Yaps to ensure your prompts work correctly:
When all referenced Yaps exist, you'll see:
When Yaps are missing, you'll see warnings:
Invalid syntax will be highlighted:
Maintain consistent brand messaging across all AI-generated content.
{{ yap = brand_voice }} → "Professional yet approachable"
{{ yap = company_values }} → "Innovation, integrity, excellence"
{{ yap = brand_personality }} → "Confident and helpful"
Easily update contact details across all customer communications.
{{ yap = support_email }} → "support@company.com"
{{ yap = sales_phone }} → "+1 (555) 123-4567"
{{ yap = office_address }} → "123 Business St, City, State"
Keep product descriptions and features up-to-date everywhere.
{{ yap = product_name }} → "AnalyticsPro 2024"
{{ yap = key_features }} → "Real-time dashboards, AI insights"
{{ yap = pricing_basic }} → "$29/month"
Ensure consistent legal language and compliance statements.
{{ yap = privacy_notice }} → "We respect your privacy..."
{{ yap = terms_link }} → "https://company.com/terms"
{{ yap = disclaimer }} → "Results may vary..."
Yaps can contain multiple lines of text, including formatting:
Shorthand: company_bio
Content: Acme Corporation has been leading innovation since 2010.
We specialize in AI-powered solutions that help businesses:
• Increase efficiency by 40%
• Reduce costs by 25%
• Improve customer satisfaction
Contact us today to learn more!
While Yaps cannot directly reference other Yaps, you can organize content hierarchically:
email_header_formal → "Dear Valued Customer,"
email_header_casual → "Hi there!"
email_footer_standard → "Best regards, The Acme Team"
email_footer_support → "Need help? Contact support@acme.com"