Agent Builder

Call the AI Agent with ML-SPL commands

The Agent Builder feature ships with the new ML-SPL command of `aicommand`. Use this command in combination with the Agent name in your Splunk platform search to run the agent on your chosen data.

The Agent Builder feature ships with the new ML-SPL command of aicommand. Use this command in combination with the Agent name in your Splunk platform search to run the agent on your chosen data.

The aiagent command can take in 2 parameters:

Parameter Description
agent_name Name of the agent. Determined when the agent is created.
prompt Task for the agent to run on. Described in natural language.

Note: This parameter is optional if you defined the task prompt during the create agent step.

The following is an example search using the aiagent command:

index=alerts
| aiagent
prompt="An alert has been received: {alert_description}. Fetch all relevant resources from Confluence, Jira, and related knowledge sources for this alert. Then format a summary of those resources and provide it"
agent_name=ExampleAgentName

Source: /en/splunk-cloud-platform/apply-machine-learning/use-ai-toolkit/5.6.4/ai-toolkit-commands-macros-and-visualizations/feature-preview-ai-toolkit-agent-builder (upstream Splunk AITK 5.6.4 docs)

Press Cmd/Ctrl+K to focus search. Esc to close.

Type to search the portal.