AI Agents & Memory
OpenCompany provides two general-purpose AI agents plus a set of specialized, pre-configured agents, all sharing a memory node for conversation context.Agent Types
Specialized Agents
Pre-configured agents for specific domains. Each is a self-contained plugin that inherits full AI Agent behavior (provider, model, prompt, system message, thinking) while being tailored for a domain. Most run the shared agent loop;rlm_agent, claude_code_agent, and codex_agent have dedicated engines.
Three additional Vertex nodes (Vertex Agent, Cloud Tool, Vertex Agent Admin) appear in the Dev palette. They are experimental — behavior and parameters may change, and they are not yet documented here.
Agent Teams Pattern
orchestrator_agent and ai_employee have an extra input-teammates handle. Connected agents become delegate_to_<type> tools automatically:
taskTrigger node connected to the parent’s Task handle.
AI Agent Node
The AI Agent runs an iterative agent loop with tool calling and delegation.Input Handles
Team lead agents (Orchestrator Agent, AI Employee) add an extra
input-teammates handle for delegation.Parameters
select
required
AI provider: openai, anthropic, gemini, openrouter, groq, cerebras, deepseek, kimi, mistral, ollama, lmstudio
select
required
Model to use (options based on provider)
string
Instructions that define the agent’s behavior and personality
string
required
The user message. Supports template variables like
{{nodeName.field}}number
Optional per-node cap on agent loop steps. When unset, falls back to your Settings recursion limit (default 200).
Output
Tool Calling
Connect Tool nodes to the input-tools handle (bottom diamond) to give the agent capabilities:Chat Agent Node (Zeenie)
The Chat Agent is designed for conversational interactions with skill-based behavior extension.Input Handles
Parameters
select
required
AI provider: openai, anthropic, gemini, openrouter, groq, cerebras, deepseek, kimi, mistral, ollama, lmstudio
select
required
Model to use (options based on provider)
string
Base system instructions (extended by connected skills)
string
User message. If empty, reads from connected input node’s
message, text, or content field.Skill Support
Connect Skill nodes to the input-skill handle to extend the Chat Agent’s capabilities:Input Methods
-
Template Variable (Explicit):
- Auto-Fallback (Implicit): Leave Prompt empty - the agent reads from the connected input node automatically.
Output
Simple Memory Node
Stores conversation history in markdown format for AI agents.Connection
Simple Memory connects to the memory handle (diamond shape on bottom-left):Parameters
string
default:"default"
Unique identifier for the conversation session. Use dynamic values for multi-user scenarios.
number
default:"10"
Number of message pairs to keep in short-term memory
string
Editable conversation history in markdown format. View and edit directly in the parameter panel.
boolean
default:"false"
Archive old messages to vector DB for semantic retrieval
number
default:"3"
Number of relevant memories to retrieve from long-term storage (shown when longTermEnabled is true)
Memory Format
Conversation history is stored in markdown:Memory Flow
- Agent reads
memoryContentmarkdown from connected Simple Memory node - Parses markdown into message history
- (If enabled) Retrieves relevant context from vector store
- Executes with conversation history
- Appends new messages to markdown
- Trims to keep last N pairs (windowSize)
- Archives removed messages to vector store (if longTermEnabled)
- Saves updated markdown back to node parameters
Dynamic Session IDs
For multi-user scenarios, use template variables:Building Agent Workflows
Basic AI Agent with Tools
Chat Agent with Skills
Step-by-Step Setup
- Add AI Agent or Chat Agent from AI Agents category
- Add Simple Memory and connect to memory handle (diamond)
- Add Tools/Skills and connect to respective handles
- Add Trigger (Webhook, Chat, WhatsApp) connected to main input
- Add Response node connected to agent output
AI Agent vs Chat Agent
Async Agent Delegation
Agents can delegate tasks to other agents connected via theinput-tools handle. The parent agent continues immediately while the child works in the background.
How It Works
- Connect a specialized agent to a parent agent’s
input-toolshandle - Parent agent calls
delegate_to_<agent_type>(task="...", context="...") - Child agent spawns as background task
- Parent receives
{"status": "delegated", "task_id": "..."}immediately - Child executes independently with its own tools
Example
- Calls
delegate_to_android_agent(task="Check battery and enable WiFi if low") - Android Agent spawns in background with its own connected tools
- AI Agent continues with other work
Multi-Turn Conversation Example
First Request
Second Request
Tips
Troubleshooting
Agent doesn't remember previous messages
Agent doesn't remember previous messages
- Verify Simple Memory is connected to diamond handle (not main input)
- Check Session ID is consistent across requests
- Ensure workflow is deployed (not just saved)
Agent doesn't use connected tools
Agent doesn't use connected tools
- Verify Tool nodes are connected to the input-tools diamond handle
- Check tool node has proper schema/description
- Ensure the prompt requires tool usage
Skills not affecting Chat Agent behavior
Skills not affecting Chat Agent behavior
- Verify Skill nodes are connected to input-skill handle
- Check skill SKILL.md content is valid
- Ensure skill’s allowed-tools match connected tool nodes
Memory grows too large
Memory grows too large
- Reduce windowSize setting (10-20 messages recommended)
- Enable long-term memory to archive old messages
- Consider clearing sessions periodically
Related
AI Models
12 chat model providers with thinking modes
AI Skills
Skill nodes for AI and Chat Agents
AI Tools
Tool nodes for AI agents
AI Tutorial
Step-by-step agent tutorial