Environment and Common/Text/Math Libraries
Environment
Whenever a Qreli app runs, it describes the information about its environment, including user details, application step durations, GDPR consent, number of impressions and runs etc.
All environment data is computable, to enable you to create hyper-personalized experiences based on user characteristics.
By default (with location data OFF), you have access to the following data set:
If location is ON, you have access to a ton more information to customize the user experience:
Common library
Qreli includes functions that makes building solutions faster and more intuitive. Start by writing ${E.Common}{ and you will see a listing of them:
You may wish to wait a few seconds while waiting for a background process to complete — e.g. creating a vector store, generating and image etc. where you would initiate the request, then every x seconds check on it if it completed to proceed.
Sometimes, remote APIs/resources may return a blob of data, which you can use base64ToFile to convert into an actual file that you can then use — pass forward to another process, save etc.
storeFile, listFiles, getFile, deleteFile: these are all about files that you may choose to store inside Qreli, to retrieve later.
storeData, getData, deleteData: these refer to data items that you may choose to store inside Qreli. Since we designed the platform to use your own storage, these are small datasets that together make up 1MB.
getStreamImage and getStreamEventData refer to pulling items from a streaming channel, e.g. OpenAI.
runAPIVar allows to run an API configured anywhere else in the platform from one specific step — we created this to allow for maximum flexibility. Likewise, arrayColumn is a helper class to get values from an input array.
Remember that you can always use the built-in AI to generate, extract or process data.
You can learn more how these are being used in Storing Data and Code <-> Qreli interop.
Text library
Rembember you can also ask AI to write the code that produces whatever you need.
For text manipulation, we included the Voca library, available as ${E.Text}{
Here is a sample list of available items that show up in the popup:
Choose the function you wish to use, and consult Voca if you need more in-depth explanations.
It is very important to not forget to add quotes around your term, e.g.
${E.Text}{lowerCase( ' ${term} ' )}
Math library
Rembember you can also ask AI to write the code that produces whatever you need.
For mathematical operations, we included the mathjs library, available as ${E.Math}{
Here is a sample list of available items that show up in the popup: