Pricing Docs Blog Resources Changelog Roadmap Community GitHub Slack X / Twitter LinkedIn
Book a demo Get started
All blogs

Launch Week #2 Day 5: Jinja2 Prompt Templates

Agenta prompt playground now supports Jinja2 prompt templates. Create dynamic LLM prompts with conditional logic. Prompt management with Jinja2 templating support.

Nov 14, 2025 5 min read
Launch Week #2 Day 5: Jinja2 Prompt Templates

Hello everyone, and welcome to the final day of our launch week!

Before we get to today’s announcement, here’s a quick recap of what we launched this week:

  • Day 1: Evaluation Dashboard for comprehensive evaluation insights
  • Day 2: Online Evaluation for production monitoring
  • Day 3: Evaluation SDK for programmatic evaluation workflows
  • Day 4: We open sourced all core evaluation functionality in Agenta

Today: Jinja2 Template Support in the Playground

We’re excited to announce a powerful update to the Agenta prompt playground. You can now use Jinja2 templating in your prompts.

This means you can add sophisticated logic directly into your prompt templates. Use conditional statements, apply filters to variables, and transform data on the fly.

Example

Here’s a prompt template that uses Jinja2 to adapt based on user expertise level:

You are {% if expertise_level == "beginner" %}a friendly teacher who explains concepts in simple terms{% else %}a technical expert providing detailed analysis{% endif %}.

Explain {{ topic }} {% if include_examples %}with practical examples{% endif %}.

{% if False %} {{expertise_level}} {{include_examples}} {% endif %}

Note: The {% if False %} block makes variables available to the playground without including them in the final prompt.

Using Jinja2 Prompts

When you fetch a Jinja2 prompt via the SDK, you get the template format included in the configuration:

{
  "prompt": {
    "messages": [
      {
        "role": "user",
        "content": "You are {% if expertise_level == \"beginner\" %}a friendly teacher...{% endif %}"
      }
    ],
    "llm_config": {
      "model": "gpt-4",
      "temperature": 0.7
    },
    "template_format": "jinja2"
  }
}

The template_format field tells Agenta how to process your variables. This works both when invoking prompts through Agenta as an LLM gateway and when fetching prompts programmatically via the SDK.

That wraps up our launch week! We hope you explore these updates and find them useful. If you try them out, we’d love your feedback.

You can check our roadmap and vote on upcoming features at https://docs.agenta.ai/roadmap. You can also request new features directly on GitHub.

One last thing: We’re launching on Product Hunt on Friday, November 28. We’d really appreciate your support! You can follow our pagenow at Product Hunt.

Thanks, and happy prompting!

More from the blog

The latest updates and insights from Agenta

View all blogs
Introducing Agenta 2.0Article

Introducing Agenta 2.0

Jul 22, 2026
Building the Data Flywheel: How to Use Production Data to Improve Your LLM ApplicationArticle

Building the Data Flywheel: How to Use Production Data to Improve Your LLM Application

Dec 19, 2025
Commercial Open Source Is Hard: Our JourneyArticle

Commercial Open Source Is Hard: Our Journey

Nov 13, 2025
Launch Week #2 Day 4: Open Sourcing EvaluationArticle

Launch Week #2 Day 4: Open Sourcing Evaluation

Nov 13, 2025

Ship agents that actually work

Build with skills and tools, run on any harness in any environment, and improve with real feedback. All open source.

Start building Book a demo