Skip to main content

AI Tasks

Leverage AI for summarization, investigation, classification, and routing.

Shared parameters​

These optional parameters appear on several AI tasks:

NameTasksDescription
modelAI Summary, AI Investigation, Ask NuBi, AI ClassifierModel to use, as provider/model. Empty uses the account default.
session_scopeAI Summary, AI Investigation, Ask NuBiConversation Scope: execution (default) starts a fresh AI conversation on every run; workflow reuses one conversation across all runs of this automation, so each run sees earlier runs' context.
account_idAI Investigation, Ask NuBi, MCP CallAccount to work in. Empty uses the automation's own account. For an event trigger listening to several accounts, use {{ Inputs.event.cloud_account_id }}.
approved_toolsAsk NuBiTools the agent may use without stopping to ask a human, because the automation already established authority (for example, an approved ticket). Anything not listed still asks — so without it, an agent step that wants to make a change waits for approval.

AI steps act with the permissions of the user the run acts as — see Whose permissions a run uses.

llm.summary​

Display Name: AI Summary

Summarize text, logs, or data using AI. Pass any content and receive a concise summary highlighting key points.

AI Summary Task

Parameters​

NameTypeRequiredDescription
messagestringYesThe text, logs, or data to summarize. Supports template expressions to reference previous task outputs.

Output​

NameTypeDescription
datastringAI-generated summary.
conversation_idstringNuBi conversation ID (for follow-up).
session_idstringNuBi session ID.

llm.investigate​

Display Name: AI Investigation

Ask AI to analyze and investigate a problem. The AI will research the issue using available tools and context, returning detailed findings and recommendations.

AI Investigation Task

Parameters​

NameTypeRequiredDescription
messagestringYesDescription of the problem or question to investigate. Supports template expressions such as {{ Tasks['task_id'].output.field }}.
response_formatstringNotext (default) returns the raw response; json extracts a JSON object from it.
toolsarrayNoAllow-list of tool names. When set, the investigation can use only these tools.

Output​

NameTypeDescription
datastringInvestigation findings and recommendations (an object when response_format is json).
parse_errorstringSet when response_format is json and no JSON object could be extracted.
account_idstringThe account the investigation ran in.
conversation_idstringNuBi conversation ID.
session_idstringNuBi session ID.

llm.event_investigate​

Display Name: AI Event Investigation

Ask AI to investigate a specific event or alert. Designed for event-triggered workflows — automatically analyzes the event context, checks related resources, and provides root cause analysis.

Parameters​

NameTypeRequiredDescription
account_idstringYesAccount that owns the event. In an event-triggered automation, {{ Inputs.event.cloud_account_id }}.
event_idstringYesEvent to investigate. In an event-triggered automation, {{ Inputs.event.id }}.

Output​

NameTypeDescription
datastringInvestigation summary (markdown). Falls back to the initial event summary when the deeper analysis was partial.
log_summarystringShort structured event summary.
log_analysisstringLog evidence found. Empty when no logs were available.
investigationstringRoot-cause analysis.
statusstringCOMPLETED or FAILED.
status_reasonstringWhy it failed, when status is FAILED.

llm.nubi​

Display Name: Ask NuBi

Ask NuBi (NudgeBee's AI assistant) to investigate an issue or answer a question. NuBi has access to your infrastructure context including K8s clusters, services, and events.

Ask NuBi Task

Parameters​

NameTypeRequiredDescription
messagestringYesQuestion or issue to ask NuBi about.

Also takes the shared parameters model, session_scope, account_id and approved_tools.

Output​

NameTypeDescription
datastringNuBi's response.
account_idstringThe account NuBi worked in.
conversation_idstringNuBi conversation ID.
session_idstringNuBi session ID.

llm.classify​

Display Name: AI Classifier

Use AI to categorize input into one of several predefined options. Useful for routing decisions based on content analysis.

Parameters​

NameTypeRequiredDescription
promptstringYesThe user query or context to evaluate.
optionsarrayYesList of options, each with name (branch identifier) and description (what it represents).

Output​

NameTypeDescription
selected_branchstringThe name of the selected option.

llm.router​

Display Name: AI Router

Deprecated

Use AI Classifier (llm.classify) followed by a Switch (core.switch) instead.

Use AI to classify input and automatically route to the correct branch of tasks. Define multiple branches with descriptions — the AI selects which branch to execute.

Parameters​

NameTypeRequiredDescription
promptstringYesThe input to classify and route.
branchesarrayYesList of branches, each with name, description, and tasks (list of task definitions to execute).

Output​

NameTypeDescription
selected_branchstringName of the branch that was selected and executed.

llm.a2a_call​

Display Name: AI Agent Call

Call an external AI agent via JSON-RPC 2.0. Use this to integrate with third-party AI agents or services that expose an agent-to-agent (A2A) compatible endpoint.

Parameters​

NameTypeRequiredDescription
urlstringYesExternal agent endpoint URL.
methodstringYesJSON-RPC method name (e.g., agent.chat).
paramsanyNoParameters for the JSON-RPC call (JSON object).
headersobjectNoCustom headers (e.g., Authorization).

Output​

NameTypeDescription
resultanyResult of the JSON-RPC call.
idstringRequest ID echo.
jsonrpcstringJSON-RPC version.

llm.mcp_call​

Display Name: MCP Call

Call a tool on an external MCP (Model Context Protocol) compatible server.

MCP Call - Integration Mode MCP Call - Direct Mode

Parameters​

NameTypeRequiredDefaultVisibilityDescription
connection_modestringYes—AlwaysHow to connect to the MCP server. Options: integration (use a saved MCP integration) or direct (provide URL and auth inline).
integration_idintegrationConditional—connection_mode = integrationSelect an MCP integration to use. Manage integrations under Settings > Integrations.
urlstringConditional—connection_mode = directThe URL of the MCP server. Tip: Save connection details as an MCP integration under Settings > Integrations for reuse.
tool_namestringYes—AlwaysThe name of the tool to invoke. The tool name dropdown is dynamically populated — it connects to the MCP server (via integration or direct URL) and fetches available tools using the tools/list MCP method.
argumentsobjectNo{}AlwaysTool-specific input arguments.
account_idaccountNo—AlwaysAccount to call the tool in. Empty uses the automation's own account.
headersobjectNo—connection_mode = directCustom HTTP headers to include in the request (e.g., Authorization).
auth_typestringNo"" (none)connection_mode = directAuthentication type. Options: "" (none) or oauth2. For bearer, basic, or API key authentication, use the headers parameter directly instead.
oauth_token_urlstringConditional—auth_type = oauth2 AND connection_mode = directOAuth 2.0 token endpoint URL.
oauth_client_idstringConditional—auth_type = oauth2 AND connection_mode = directOAuth 2.0 client ID.
oauth_client_secretstringConditional—auth_type = oauth2 AND connection_mode = directOAuth 2.0 client secret. Encrypted at rest.
oauth_scopestringNo—auth_type = oauth2 AND connection_mode = directOAuth 2.0 scopes (space-separated).
oauth_audiencestringNo—auth_type = oauth2 AND connection_mode = directOAuth 2.0 audience identifier. Required by some providers like Auth0.
timeoutstringNo60sAlwaysRequest timeout (e.g., 30s, 2m).

Connection Modes​

  • Uses a pre-configured MCP integration from Settings > Integrations.
  • Connection details, authentication, and credentials are managed centrally.
  • Supports both direct HTTP connections and vm_agent connections (routed through forager agent for on-prem MCP servers).
  • All auth types supported: none, bearer, basic, API key/custom header, OAuth 2.0.

Direct Mode​

  • Provide the MCP server URL and authentication inline in the task configuration.
  • Useful for quick testing or one-off connections.
  • Supports custom headers and OAuth 2.0 authentication.

How It Works​

The task uses the MCP Streamable HTTP transport with JSON-RPC 2.0:

  1. Sends an initialize request to establish a session (protocol version 2024-11-05).
  2. Sends an initialized notification.
  3. Sends a tools/call request with the selected tool name and arguments.
  4. Returns the tool's response (content array and isError flag).

The task supports both immediate JSON responses and Server-Sent Events (SSE) streams from the MCP server.

Output​

NameTypeDescription
contentarrayContent returned by the tool.
isErrorbooleanWhether the tool execution resulted in an error.