Complete reference for all blocks and features
get text [PROMPT] systemPrompt [SYSTEM_PROMPT] provider [PROVIDER] model [MODEL]
Retrieves AI-generated text based on the given prompt and parameters.
Parameter | Type | Description | Default |
---|---|---|---|
PROMPT | String | The user's input/question for the AI | "Hello" |
SYSTEM_PROMPT | String | Instructions guiding the AI's behavior | "You are a helpful assistant" |
PROVIDER | Menu | AI service provider (Gemini/OpenAI) | "gemini" |
MODEL | Menu | Specific AI model version to use | "gemini-1.5-flash" |
when flag clicked
ask [Enter your question] and wait
set [response v] to (get text (answer) systemPrompt [Respond like a pirate] provider [gemini] model [gemini-1.5-flash])
say (response) for (2) secs
save memory [KEY] [VALUE]
Stores information in the AI's long-term memory for future conversations.
when [m v] key pressed
if <(answer) contains [my name is]> then
save memory [username] (text after [my name is] in (answer))
end
ai.js
fileFetching latest version...