Skip to main content
Can run on: Windows, Linux

LLM

Description

This step sends a prompt to a large language model (LLM) and returns the generated response. You define a system prompt that sets the role and rules for the model, and a user prompt that provides the specific question or task. The step supports providers like OpenAI, Azure OpenAI, Google Gemini, Google Vertex AI, and AWS Bedrock. You can also attach files for the model to analyze. Use this step when your workflow needs to generate text, answer questions, convert unstructured input into a structured format, or analyze documents.

Example using LLM step: The process is to detect urgent customer emails and use the LLM plugin step to convert informal complaints into structured internal alerts for quick team action. The process performs the following actions:

  1. Workflow detects an inbound customer email with an urgent tone.
  2. LLM plugin steps converts informal complaint into a professionally formatted, structured summary.
  3. Generates an internal alert containing the summary for the support team.
  4. Ensures the support team can quickly understand and act on the issue. The workflow successfully transformed urgent customer emails into structured, professional summaries, enabling the support team to quickly understand and address issues.

Configurations

No.Field NameDescription
1Step nameSpecify a unique name for the step.
The name helps you identify the step in the workflow and makes it easier to debug or link it with other steps

LLM Setting tab

For the LLM field details, click LLM setting

Input tab

Prompt configuration helps AI to understand context and intent, producing accurate and meaningful responses. This section allows you to define the agent's persona, operational boundaries, and the specific task it must execute. System prompt defines the role and behavior, while user prompts provide specific instructions to guide its responses. Note: System prompt and Prompt supports variable and previous field For more understanding on System and User prompt, see Example to understand execution flow of the AI Agent step System prompt and User Prompt supports variable and previous field.

No.Field NameDescription
1System PromptSpecify System prompt.
System prompt defines the immutable role, behaviour, and rules for the AI agent. The System Prompt sets the constitution for the model, determining how it interprets inputs and formatting its outputs.
- Function: Establishes the baseline logic (e.g., "You are a Level 2 Support Agent responsible for analyzing firewall logs. Do not make assumptions.").
- Priority: The system prompt has higher priority than user prompts and This context remain constant throughout the execution and takes precedence over conflicting instructions in the user prompt, acting as a safety guardrail.
2User PromptSpecify the prompt to query or task for the agent to process. The User Prompt provides the immediate context and goal for the current execution cycle.
- Function: Defines the "What" of the operation (for example, "Analyze the following log entry: {Log_Variable} and determine if it is a security breach.").
- Dynamic Usage: In automated workflows, this field typically contains variables (inputs) that change with every execution.
The field accepts variable/static values and field from previous step.

Knowledge Base tab

Use the Knowledge Base tab to give the AI agent extra context to answer questions. Choose one of two sources: local files, or a Knowledge Base step object from earlier in the workflow. With this context, the agent can answer using specific enterprise data instead of relying only on general training data. The step can now take its context from a Knowledge Base step instead of from local files. This makes it possible to build a complete retrieval flow using standard steps: Knowledge Base step → LLM step.

No.Field NameDescription
1Use FilesSelect the checkbox Use Files to define knowledge sources directly within this step using local file paths.
When selected, enables the File or Folder table for direct path configuration.
When cleared, enables the Reference field to accept a Knowledge Base object from a previous workflow step.
Supported extensions:
- digital pdf
- html
- xml, csv
- json
- txt
- doc
- docx
2Use File as AttachmentDetermine how files are processed by the LLM.
Cleared(Default): The step extracts and indexes text from the files. Only the specific snippets relevant to the user's prompt are sent to the LLM. This is best for large documents where you need specific answers.
Selected: The step sends the entire file to the LLM as an attachment object. This is required for tasks involving image analysis (OCR) or when the LLM needs the full document context at once.
See the following is the list of supported file formats by LLM Provider:
OpenAI — jpg, jpeg, png, pdf
Azure OpenAI — jpg, jpeg, png
- Google Gemini: jpg, jpeg, png
- Google Vertex AI: pdf, jpg, jpeg, png, txt, json, csv, html, css, py
- AWS Bedrock: jpg, jpeg, png, digital pdf
3File or FolderSpecify the documents the agent must analyze.
Use this section to define the documents that the step must analyze during execution by specifying one or more files and/or folders in the File Path list.
The step supports multiple file and folder paths, enabling it to analyze content from different sources in a single execution and, during runtime, intelligently extract only the information relevant to the provided prompt from the selected files or folders.
To add inputs:
- Click File to select an individual file.
- Click Folder to select an entire folder.
Supported File Extensions:
You can add files with the following extensions in the File Path:
- digital pdf
- html
- xml
- csv
- json
- txt
- doc
- docx
The field accepts variable or static values.
5Knowledge Base ReferenceSelect the variable containing a pre-processed Knowledge Base object. The field lets the step use data collected and indexed by an earlier Knowledge Base step in the workflow.
How to use:
1. Add a Knowledge Base step before this step and connect them.
2. Clear the Use Files checkbox.
3. In Knowledge Base Reference, select the Reference Output Field from the Knowledge Base step.
4. You don't need a placeholder — the step adds the references automatically.
At run time, the step collects the retrieved references and adds them to your prompt. The step answers only from this context. If the context doesn't contain the answer, the model states that it cannot answer.
Notes:
- The field is available only when Use Files is cleared.
- Accepts input only from a Knowledge Base step.
- If no matches are found, the step runs with your prompt alone (row doesn't fail).
- The step reports an error when the reference field does not contain a valid JSON array.

File attachment(s) tab

  • Use the tab to provide the AI agent with contextual data (Grounding). By linking documents or references, you enable the agent to answer questions using specific enterprise data rather than relying solely on its general training.
No.Field NameDescription
1Use File as AttachmentDetermine how files are processed by the Large Language Model (LLM).
- Cleared (Default): The system extracts and indexes text from the files. Only the specific snippets relevant to the user's prompt are sent to the LLM. This is best for large documents where you need specific answers.
- Selected: The system sends the entire file to the LLM as an attachment object. This is required for tasks involving image analysis (OCR) or when the LLM needs the full document context at once.
Supported file formats by LLM Provider:
- OpenAI: jpg, jpeg, png, pdf
- Azure OpenAI: jpg, jpeg, png
- Google Gemini: jpg, jpeg, png
- Google Vertex AI: pdf, jpg, jpeg, png, txt, json, csv, html, css, py
- AWS Bedrock: jpg, jpeg, png, digital pdf
2File or FolderSpecify the documents the agent must analyze.
Use this section to define the documents that the step must analyze during execution by specifying one or more files and/or folders in the File Path list.
The step supports multiple file and folder paths, enabling it to analyze content from different sources in a single execution and, during runtime, intelligently extract only the information relevant to the provided prompt from the selected files or folders.
To add inputs:
- Click to select an individual file.
- Click to select an entire folder.
Once selected, the corresponding paths are displayed in the File Path table for reference.
Supported File Extensions:
You can add files with the following extensions in the File Path:
- digital pdf
- html
- xml
- csv
- json
- txt
- doc
- docx
The field accepts variable or static values.

Output tab

Use the Output tab to save the results of the AI Agent's execution into variables. You can reference these variables in later steps of your workflow to use the AI's answer or track usage costs.

No.Field NameDescription
1ResponseSpecify a name for the variable that stores the AI's final answer. This variable captures the main text reply or the result of a tool execution.
For example, if you name this variable AnalysisResult, you can reference it in a later email step to send the answer to a user.
Default value: response
2Total tokensSpecify a field name to track the total number of tokens used during the execution. This value is the sum of both input and output tokens, representing the total processing size of the transaction.
Default value: totalTokens
3Input tokensSpecify a field name to count the tokens sent to the AI model. This count includes your prompts, system instructions, and any attached files or context used to ask the question.
Default value: inputTokens
4Output tokensSpecify a field name to count the tokens generated by the AI in its reply. This measures the length of the response or answer provided by the model.
Default value: outputTokens
5ThoughtsSpecify a field name for the field that stores the model's reasoning The step keeps the reasoning separate from the final answer. The field is available only when the selected provider supports reasoning.
How to use:
For Google providers (Google Vertex AI, Google Gemini):
1. Go to the LLM Settings tab.
2. Select the includeThoughts property and set the value as true.
3. Select the thinkingBudget property and set token value to use (Optional).
For Anthropic:
1. Go to the LLM Settings tab.
2. Select the thinkingBudget property and set a positive value to use.
Reference: See Thinking Properties, under the table Advanced LLM configuration options section.
Notes:
- The field is available when you select the LLM providers that support reasoning: Google Vertex AI, Google Gemini, and Anthropic.
- The field is not available for the following LLM providers: OpenAI, Azure OpenAI, and AWS Bedrock.
- Reasoning tokens cost the same as other output tokens, so turning on this setting increases cost and response time.
Default value: thoughts