Ask an LLM
Provide some reference material to an LLM and then ask it to answer one or more questions.
Ingredient Family: rowActionsIngredients
Outline Display: Prompt an AI given {{referenceData}}
{{prompts}}
{{queryTools}}
Details
By default, queryTools is empty: the LLM answers using only the referenceData you supply and has no access to app tables, the app outline, the current user, or anything else outside the prompt. If the answer needs to be grounded in live app state, populate queryTools. Sane starting points:
- One
Look up in tableper table the LLM should read (userowFilterswithcurrentUserto scope to the signed-in user). App outlineso the LLM knows the app’s overall structure.webSearch: truefor open-ended factual questions. Insert/update/delete tools andSend emailare also available when the LLM should take actions. Any API endpoint wrapped on this app – including endpoints from connected services and custom-defined APIs – can be exposed to the LLM viaCall API endpointorCall list API endpoint.
A queryTools entry may carry roles: (a sibling of its kind:) naming roles the serving handler’s authenticator declares: the model gets that tool only when the user the step runs for holds any of them; for anyone else the tool is absent from what the model sees and unknown to dispatch. Absent means every user the handler admits; [] means nobody.
Local scope
The parent slot binds these (look up the slot in the parent to see how):
$table– The table to act on
Settings
Required
LLM Connection: API connection (API category:LLM)
LLM Connection
Set this to thenameof anapi:item whoseprovider:is in theLLMcategory, or which reachesLLMon another category’s behalf – a brokered api counts when its own settings point it at that service, and its provider page says which setting decides. Do not set it to a service name; pick the API the service points at.
Optional
-
webSearch: constant value (type: bool; required, non-nullable)
Let the model use its provider’s native web search during reasoning, for open-ended factual questions no app table can answer. Requires a provider that supports web search. -
referenceData: ingredient slot ofllmReferenceIngredients($table)(many)
The reference material to provide to the LLM -
prompts: ingredient slot ofllmPromptIngredients($table)(many)
What columns we ask about and the prompts we ask for each one -
queryTools: ingredient slot ofllmQueryToolIngredients(many)
Database tables the LLM can query during its reasoning -
maxToolCalls: constant value (type: integer; required, non-nullable)
Maximum number of tool call rounds the LLM can make (usually omit this parameter)