We support Jinja templates in the prompt. This guide will show you how to use Jinja templates in the prompt.
{{}}
to refer to the variables.
{% if %}
tag to create conditionals in the prompt.
{# ... #}
syntax to add comments to the prompt.
{{ input.variable_name }}
syntax to refer to the variables in the JSON input.
For example, if you have a JSON input with the following structure:
|
syntax to apply filters to the variables.