Whenever you send a question (prompt) in chat, HARPA injects parameters into the prompt text. For example, if you type Please summarize this web page: {{page}} in chat, HARPA will extract text from the web page and inject it into the GPT prompt.
There are many predefined parameters you can use in your prompts:
You can create and use custom parameters such as:
You can create custom parameters using CALC Set Parameter function and inspect available parameters by running /echo command in chat.
Parameters are interpolated both in the chat window as well as custom commands, e.g. in GPT, SAY and CALC steps. They may serve as the default value in the ASK step when the user provides no input and simply presses Enter.
Parameters, e.g. {{p1}}, are retained for the duration of the single command. If you prefix parameter name with g., like this {{g.p1}}, parameter becomes a global one.
Global parameters are available across multiple commands, enabling the orchestration of complex command chains. Such chains can undertake tasks like gathering data from an open webpage into a list and subsequently triggering another command for data processing or Zapier integration.
You can use ASK step or CALC Set Parameter step to establish a global parameter. For example, you can prompt yourself to input a global parameter such as {{g.email}}, which could then be used in chat or commands at any time.
In this example, the SAY step is optional, but you can include it to verify that the parameter has been set.
A working example of a Global Parameter is the /mimic-writing command. It saves the analysis of your writing style into {{g.mimic.style}}, allowing you to rewrite any text in your unique style.
Dot notation is used in HARPA to access nested data structures, for example:
GPT input has a token limit, e.g. 4096 on GPT-3.5-turbo model, which is approximately 3000 words of English text. This limit is shared across chat history, question and response. Large web pages may not fit into the GPT input, so HARPA truncates {{page}} parameter automatically.
You can specify a keyword or query within the {{page}} parameter to extract portion of the page relevant to that keyword. For example: {{page Adobe Photoshop}} will instruct HARPA to scan the web page content for content semantically similar to "Adobe Photoshop" and return that as a parameter value.
All rights reserved © HARPA AI TECHNOLOGIES LLC, 2021 — 2024
Designed and engineered in Finland 🇫🇮