Template Tags
Last updated
Last updated
The prompt template tag enables you to create simple prompts directly from your templates.
We recommend using to reduce latency (time taken for OpenAI to process your prompt and produce results) and reduce costings (each API call will make a small cost). By using tag caching the output of individual tags will be cached.
An example usage of the prompt tag would be:
The 'prompt' template parameter is required. The example shows how to use tag caching for performance and cost saving.
The prompt content tag is useful for processing larger data, for example summarising blog content. Include the prompt from directly within the tag content.
Below is an example to create a brief summary of a blog article:
This is a really versatile tag, and can be used for many things, for example you could ask the tag to translate the content into another language. Like ChatGPT it can be a multipurpose tool.