AI LLM

Use AI LLM when a Flow needs model-generated processing or a response. It can turn available Flow and contact context into data that a later node can use.
Configure the model behavior and inputs in the drawer, then connect its response and failure outcomes. Keep prompts scoped to the job, test representative cases, and avoid including unnecessary sensitive data.
Configuration and outcomes
Configure the user prompt, optional context, temperature, token limit, engagement words, and optional conversation history. The result can be text or validated JSON; if JSON is enabled, state the required schema in the prompt. Connect LLM Completed, Timeout, and Error. Successful calls provide reply, runtime, token-use, and estimated-cost variables.
Variables set by this node
After the model replies, the node stores the reply along with runtime and usage figures. The reply variables are how the model's answer reaches the rest of the Flow.
Show the variables this node sets
Each variable is prefixed with the node's unique name, shown here as ai_llm_abc. Insert them with the Variables button rather than typing them, so the prefix always matches your node.
| Variable | Contains | Example |
|---|---|---|
{ai_llm_abc.llm_reply_text} | The model's reply as text. | The caller wants a callback. |
{ai_llm_abc.llm_reply_json} | The reply parsed as JSON, when JSON output is enabled. Read a single field by adding its key, for example {ai_llm_abc.llm_reply_json.intent}. | callback |
{ai_llm_abc.runtime_ms} | How long the model call took, in milliseconds. | 840 |
{ai_llm_abc.token_usage} | Token counts for the call, with input, output, and total fields, for example {ai_llm_abc.token_usage.total}. | 412 |
{ai_llm_abc.estimated_cost} | The estimated cost of the call. | 0.002 |
{ai_llm_abc.model_used} | The model that produced the reply. | A model name |
{ai_llm_abc.error_message} | A description of the problem, set only on the Error and Timeout paths. | LLM timeout |
If JSON output is enabled but the reply is not valid JSON, llm_reply_json contains only _parse_error set to true, and every other field renders as empty text. Check {ai_llm_abc.llm_reply_json._parse_error} before trusting the fields.
Typical uses:
- Route on a JSON field such as
intentwith Check Conditions. - Speak the reply to the caller with Play TTS / Audio.
- Save an extracted value on the contact with Update Contact.
See Flow variables for how variables work across a Flow.
Design and test
Use this node for a focused one-off task (classification, extraction, summarization, or generation) rather than a managed multi-turn conversation. Prefer JSON output for data used by later nodes, define a strict schema in the prompt, and send parse failures to the Error route.