All Collections
Content Storage
How to Use Variables in the Input Content Storage
How to Use Variables in the Input Content Storage
Promptitude Team avatar
Written by Promptitude Team
Updated over a week ago

In our continuous effort to make your experience with Promptitude more seamless, we've made some improvements to the Content Storage input.

Now, you don't have to rely on other variable inputs to query your content. Instead, we've added variables to your input, allowing you to define the role of the default value. This article will guide you on how to use these variables effectively.

How to Use the Variables

We've introduced two new variables to the Content Storage type input. These variables will help you define the query and the content to take as value for your prompt. Here's a quick rundown:

1️⃣ Variable ".query": This variable allows you to use the default value as the search query. In other words, it helps you specify what you're looking for in your content storage.

2️⃣ Variable ".result": This variable allows you to take as value the content that will give the context to the prompt. This is defined by the folder and tags you've configured.

Content Assistant Example 💻

Use "Content Storage" variable input {{context}} for the "Question" section. Now, you can enhance this by adding ".query" to define it as the default value for the search query related to your content. In simpler terms, you can now utilize {{context.query}}.

Similarly, for specifying where this search occurs within your content, you can use {{context}} include ".result." By incorporating {{context.result}}, you instruct the prompt to extract and utilize the search results within your content, essentially the relevant chunks.

Compatibility with Original Inputs

We understand that change can sometimes be daunting. That's why we've ensured that these new variables are completely compatible with the original inputs.

This means that even if you don't use the new variables, your original inputs will still work as the value of the content to be queried. So, you can transition to the new system at your own pace.


With the introduction of these new variables, we've made it easier for you to query your content and define the role of the default value.

Whether you're using the ".query" variable to specify your search or the ".result" variable to define the content for your prompt, you're in control. And remember, your original inputs will still work just fine. So, go ahead and give these new variables a try. We're confident you'll find them useful.

Did this answer your question?