Skip to main content

Creating an Agent

WSO2 Integrator provides a streamlined way to create AI-powered agents using the AI Chat Agent Wizard. The wizard scaffolds the required integration artifacts in a single step and opens the visual flow editor, allowing you to configure and customize agent behavior directly from the canvas.

The AI Agent node acts as the core execution component. It enables the agent to interact with external systems, invoke tools, maintain conversational context, and coordinate multi-step reasoning workflows.

Launching the wizard

  1. Open your integration project in WSO2 Integrator.
  2. Click + Add Artifact from the project view, or right-click the project tree.
  3. The Artifacts page opens.

Artifacts page in WSO2 Integrator showing all artifact categories — Automation, AI Integration (AI Chat Agent, MCP Service), Integration as API (HTTP Service, GraphQL Service Beta, TCP Service Beta), Event Integration (Kafka, RabbitMQ, MQTT, Azure Service Bus, Salesforce, Twilio, GitHub, Solace, CDC for Microsoft SQL Server, CDC for PostgreSQL).

  1. Under AI Integration, select AI Chat Agent.

Create an agent

The wizard initially displays a single input field. The Create button remains disabled until a valid agent name is provided.

The empty AI Chat Agent wizard with a Name field and a disabled Create button. The placeholder shows example names: Customer Support Assistant, Sales Advisor, Data Analyst.

FieldRequiredDescription
NameYesIdentifier for the agent, such as BlogReviewer, SupportAssistant, or SalesAdvisor. The name must start with a letter and contain only letters, numbers, and underscores.

Enter a name (for example, blogReviewer) to enable the Create button.

After clicking Create, WSO2 Integrator generates the required integration artifacts and displays a progress indicator while configuring the service listener and related components.

When the wizard completes, WSO2 Integrator automatically generates the following:

  • An AI agent service
  • A listener endpoint
  • An AI Agent node
  • An integration flow that handles incoming requests and generates responses

The AI Agent canvas showing Start, an AI Agent node with the agent name and an Add Memory button, and a Return node.

After generation, you are directed to the integration canvas where you can configure the following aspects of the agent:

Configure agent behavior

Use the AI Agent node configuration panel to customize how the agent behaves and responds to requests.

Click the AI Agent node to open the configuration panel and update the following configurations.

SectionDescription
RoleDefines the primary responsibility or persona of the agent.
InstructionsSpecifies the behavior guidelines and operational instructions that the agent should follow while responding.
Advanced ConfigurationProvides additional runtime and execution settings for the agent.
ResultDefines the output or response generated by the agent after execution.

Advanced configuration

SectionDescription
Maximum IterationsDefines the maximum number of reasoning or execution cycles the agent can perform before returning a response.
VerboseEnables detailed execution logs and intermediate reasoning information for debugging and observability purposes.
Tool Loading StrategyDetermines how tools are discovered and loaded by the agent during execution.
Agent CredentialConfigures the credentials or authentication details used by the agent when accessing external systems or tools.
ContextDefines contextual information that is passed to the agent during execution.
Type DescriptorSpecifies the expected structure or type information for agent inputs and outputs.

What's next

  • Tools - Add tools and integrations to the agent.
  • Memory - Configure conversational and persistent memory.
  • Observability - Monitor traces, logs, and execution details.
  • Evaluations - Test and evaluate agent behavior and response quality.