Skip to main content

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:
Delegation is fire-and-forget: the child agent spawns as a background task, the parent continues working, and the child broadcasts its status independently. Completion results can be consumed by a 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:
The agent will automatically use tools when needed based on the user’s request.

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:
Skills provide domain-specific instructions and allowed tools to the Chat Agent.

Input Methods

  1. Template Variable (Explicit):
  2. 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):
Connect to the diamond handle, not the main input. The main input is for data flow.

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

  1. Agent reads memoryContent markdown from connected Simple Memory node
  2. Parses markdown into message history
  3. (If enabled) Retrieves relevant context from vector store
  4. Executes with conversation history
  5. Appends new messages to markdown
  6. Trims to keep last N pairs (windowSize)
  7. Archives removed messages to vector store (if longTermEnabled)
  8. Saves updated markdown back to node parameters

Dynamic Session IDs

For multi-user scenarios, use template variables:
This creates separate memory for each user.

Building Agent Workflows

Basic AI Agent with Tools

Chat Agent with Skills

Step-by-Step Setup

  1. Add AI Agent or Chat Agent from AI Agents category
  2. Add Simple Memory and connect to memory handle (diamond)
  3. Add Tools/Skills and connect to respective handles
  4. Add Trigger (Webhook, Chat, WhatsApp) connected to main input
  5. Add Response node connected to agent output

AI Agent vs Chat Agent


Async Agent Delegation

Agents can delegate tasks to other agents connected via the input-tools handle. The parent agent continues immediately while the child works in the background.

How It Works

  1. Connect a specialized agent to a parent agent’s input-tools handle
  2. Parent agent calls delegate_to_<agent_type>(task="...", context="...")
  3. Child agent spawns as background task
  4. Parent receives {"status": "delegated", "task_id": "..."} immediately
  5. Child executes independently with its own tools

Example

When the AI Agent needs Android control:
  • 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

Response: “Nice to meet you, Alex! How can I help you today?”

Second Request

Response: “Your name is Alex, as you told me earlier.”

Tips

Use descriptive system prompts to define agent behavior clearly.
Set Max Iterations based on task complexity. Simple Q&A: 1-2, Complex reasoning: 3-5.
Use unique Session IDs per user/conversation for proper isolation.
Connect Skills to Chat Agent for domain-specific behavior (WhatsApp, Maps, HTTP, etc.).
Long conversations with large window sizes can exceed model context limits. Use appropriate windowSize for your use case.

Troubleshooting

  • 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)
  • Verify Tool nodes are connected to the input-tools diamond handle
  • Check tool node has proper schema/description
  • Ensure the prompt requires tool usage
  • 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
  • Reduce windowSize setting (10-20 messages recommended)
  • Enable long-term memory to archive old messages
  • Consider clearing sessions periodically

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