Skip to content

Self-improving AI Employees for everyone

Revert "refactor(client): Wave 3 Phase 1 Batch 1 - outputSchema on agents / Google / Android / WhatsApp"

trohitgcd252c1d8cd9
diff --git a/client/src/factories/baseChatModelFactory.ts b/client/src/factories/baseChatModelFactory.ts
index a38b7986..8dd7ca7e 100644
--- a/client/src/factories/baseChatModelFactory.ts
+++ b/client/src/factories/baseChatModelFactory.ts
@@ -85,14 +85,6 @@ export function createBaseChatModel(config: ChatModelConfig): INodeTypeDescripti
}
}
}],
- outputSchema: {
- response: 'string',
- thinking: 'string',
- model: 'string',
- provider: 'string',
- finish_reason: 'string',
- timestamp: 'string',
- },
properties: [
{
displayName: 'Model',
diff --git a/client/src/nodeDefinitions/aiAgentNodes.ts b/client/src/nodeDefinitions/aiAgentNodes.ts
index 1feb51ff..7db8344d 100644
--- a/client/src/nodeDefinitions/aiAgentNodes.ts
+++ b/client/src/nodeDefinitions/aiAgentNodes.ts
@@ -58,14 +58,6 @@ export const aiAgentNodes: Record<string, INodeTypeDescription> = {
type: 'main' as NodeConnectionType,
description: 'Agent output'
}],
- outputSchema: {
- response: 'string',
- thinking: 'string',
- model: 'string',
- provider: 'string',
- finish_reason: 'string',
- timestamp: 'string',
- },
properties: [
{
displayName: 'AI Provider',
@@ -215,14 +207,6 @@ export const aiAgentNodes: Record<string, INodeTypeDescription> = {
type: 'main' as NodeConnectionType,
description: 'response, model, provider, timestamp'
}],
- outputSchema: {
- response: 'string',
- thinking: 'string',
- model: 'string',
- provider: 'string',
- finish_reason: 'string',
- timestamp: 'string',
- },
properties: [
{
displayName: 'AI Provider',
diff --git a/client/src/nodeDefinitions/androidServiceNodes.ts b/client/src/nodeDefinitions/androidServiceNodes.ts
index 9a43949e..8279813c 100644
--- a/client/src/nodeDefinitions/androidServiceNodes.ts
+++ b/client/src/nodeDefinitions/androidServiceNodes.ts
@@ -19,8 +19,6 @@ function createAndroidServiceNode(config: {
group: string[];
description: string;
defaultAction: string;
- /** Per-service output shape for InputSection's variable list. */
- outputSchema?: Record<string, any>;
additionalProperties?: Array<{
displayName: string;
name: string;
@@ -64,12 +62,6 @@ function createAndroidServiceNode(config: {
description: 'Connect to Android Toolkit (top handle)'
}
],
- outputSchema: config.outputSchema ?? {
- service_id: 'string',
- action: 'string',
- data: 'object',
- success: 'boolean',
- },
properties: [
// Hidden service_id - automatically set based on node type
{
@@ -164,14 +156,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#4CAF50',
group: ['android', 'monitoring'],
description: 'Monitor battery status, level, charging state, temperature, and health',
- defaultAction: 'status',
- outputSchema: {
- battery_level: 'number',
- is_charging: 'boolean',
- temperature_celsius: 'number',
- health: 'string',
- voltage: 'number',
- },
+ defaultAction: 'status'
}),
networkMonitor: createAndroidServiceNode({
@@ -182,13 +167,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#2196F3',
group: ['android', 'monitoring'],
description: 'Monitor network connectivity status, type, and internet availability',
- defaultAction: 'status',
- outputSchema: {
- connected: 'boolean',
- type: 'string',
- wifi_ssid: 'string',
- ip_address: 'string',
- },
+ defaultAction: 'status'
}),
systemInfo: createAndroidServiceNode({
@@ -199,15 +178,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#9C27B0',
group: ['android', 'monitoring'],
description: 'Get device and OS information including Android version, API level, memory, and hardware details',
- defaultAction: 'info',
- outputSchema: {
- device_model: 'string',
- android_version: 'string',
- api_level: 'number',
- manufacturer: 'string',
- total_memory: 'number',
- available_memory: 'number',
- },
+ defaultAction: 'info'
}),
location: createAndroidServiceNode({
@@ -218,16 +189,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#F44336',
group: ['android', 'monitoring'],
description: 'GPS location tracking with latitude, longitude, accuracy, and provider information',
- defaultAction: 'current',
- outputSchema: {
- latitude: 'number',
- longitude: 'number',
- accuracy: 'number',
- provider: 'string',
- altitude: 'number',
- speed: 'number',
- bearing: 'number',
- },
+ defaultAction: 'current'
}),
// ============================================================================
@@ -243,11 +205,6 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
group: ['android', 'apps'],
description: 'Launch applications by package name',
defaultAction: 'launch',
- outputSchema: {
- package_name: 'string',
- launched: 'boolean',
- app_name: 'string',
- },
additionalProperties: [
{
displayName: 'Package Name',
@@ -274,8 +231,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#00BCD4',
group: ['android', 'apps'],
description: 'Get list of installed applications with package names, versions, and metadata',
- defaultAction: 'list',
- outputSchema: { apps: 'array', count: 'number' },
+ defaultAction: 'list'
}),
// ============================================================================
@@ -290,13 +246,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#3F51B5',
group: ['android', 'automation'],
description: 'WiFi control and scanning - enable, disable, get status, scan for networks',
- defaultAction: 'status',
- outputSchema: {
- wifi_enabled: 'boolean',
- ssid: 'string',
- ip_address: 'string',
- signal_strength: 'number',
- },
+ defaultAction: 'status'
}),
bluetoothAutomation: createAndroidServiceNode({
@@ -307,12 +257,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#2196F3',
group: ['android', 'automation'],
description: 'Bluetooth control - enable, disable, get status, and paired devices',
- defaultAction: 'status',
- outputSchema: {
- bluetooth_enabled: 'boolean',
- paired_devices: 'array',
- connected_devices: 'array',
- },
+ defaultAction: 'status'
}),
audioAutomation: createAndroidServiceNode({
@@ -323,12 +268,7 @@ export const androidServiceNodes: Record<string, INodeTypeDescription> = {
color: '#E91E63',
group: ['android', 'automation'],
description: 'Volume and audio control - get/set volume, mute, unmute',
- defaultAction: 'get_volume',
- outputSchema: {
- music_volume: 'number',
- ring_volume: 'number',
- muted: 'boolean',
- },
+ defaultAction: 'get_volume'
}),
deviceStateAutomation: createAndroidServiceNode({
diff --git a/client/src/nodeDefinitions/googleWorkspaceNodes.ts b/client/src/nodeDefinitions/googleWorkspaceNodes.ts
index 98dae7af..aa789609 100644
--- a/client/src/nodeDefinitions/googleWorkspaceNodes.ts
+++ b/client/src/nodeDefinitions/googleWorkspaceNodes.ts
@@ -74,22 +74,6 @@ export const gmailNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- // send
- message_id: 'string',
- thread_id: 'string',
- // search / read
- emails: 'array',
- count: 'number',
- subject: 'string',
- from: 'string',
- to: 'string',
- date: 'string',
- body: 'string',
- snippet: 'string',
- labels: 'array',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
@@ -271,19 +255,6 @@ export const gmailReceiveNode: INodeTypeDescription = {
type: 'main' as NodeConnectionType,
description: 'Received email (message_id, from, to, subject, body, date, labels, attachments)'
}],
- outputSchema: {
- message_id: 'string',
- thread_id: 'string',
- from: 'string',
- to: 'string',
- subject: 'string',
- body: 'string',
- snippet: 'string',
- date: 'string',
- labels: 'array',
- attachments: 'array',
- is_unread: 'boolean',
- },
properties: [
ACCOUNT_MODE_PROPERTY,
CUSTOMER_ID_PROPERTY,
@@ -363,20 +334,6 @@ export const calendarNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- event_id: 'string',
- summary: 'string',
- start: 'string',
- end: 'string',
- location: 'string',
- description: 'string',
- attendees: 'array',
- status: 'string',
- events: 'array',
- count: 'number',
- deleted: 'boolean',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
@@ -681,22 +638,6 @@ export const driveNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- file_id: 'string',
- name: 'string',
- mime_type: 'string',
- web_view_link: 'string',
- web_content_link: 'string',
- size: 'number',
- content: 'string',
- files: 'array',
- count: 'number',
- next_page_token: 'string',
- permission_id: 'string',
- role: 'string',
- email: 'string',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
@@ -960,19 +901,6 @@ export const sheetsNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- values: 'array',
- range: 'string',
- rows: 'number',
- columns: 'number',
- major_dimension: 'string',
- updated_range: 'string',
- updated_rows: 'number',
- updated_columns: 'number',
- updated_cells: 'number',
- table_range: 'string',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
@@ -1123,18 +1051,6 @@ export const tasksNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- task_id: 'string',
- title: 'string',
- notes: 'string',
- due: 'string',
- status: 'string',
- completed: 'string',
- tasks: 'array',
- count: 'number',
- deleted: 'boolean',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
@@ -1336,22 +1252,6 @@ export const contactsNode: INodeTypeDescription = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- resource_name: 'string',
- display_name: 'string',
- given_name: 'string',
- family_name: 'string',
- email: 'string',
- phone: 'string',
- company: 'string',
- job_title: 'string',
- contacts: 'array',
- count: 'number',
- total_people: 'number',
- next_page_token: 'string',
- deleted: 'boolean',
- },
properties: [
// ===== OPERATION SELECTOR =====
{
diff --git a/client/src/nodeDefinitions/specializedAgentNodes.ts b/client/src/nodeDefinitions/specializedAgentNodes.ts
index 890993f6..108ab38e 100644
--- a/client/src/nodeDefinitions/specializedAgentNodes.ts
+++ b/client/src/nodeDefinitions/specializedAgentNodes.ts
@@ -55,17 +55,6 @@ export const AI_AGENT_OUTPUTS = [
}
];
-// Runtime output shape shared by every LLM-backed agent node. Consumed by
-// InputSection to populate the draggable variable list for downstream nodes.
-export const AI_AGENT_OUTPUT_SCHEMA = {
- response: 'string',
- thinking: 'string',
- model: 'string',
- provider: 'string',
- finish_reason: 'string',
- timestamp: 'string',
-};
-
// ============================================================================
// SHARED AI AGENT PROPERTIES - Used by Specialized Agent Nodes
// ============================================================================
@@ -184,8 +173,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Android Control Agent', color: dracula.green },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Coding Agent - AI Agent with code execution capabilities
@@ -200,8 +188,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Coding Agent', color: dracula.cyan },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Web Control Agent - AI Agent with web automation capabilities
@@ -216,8 +203,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Web Control Agent', color: dracula.pink },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Task Management Agent - AI Agent with task automation capabilities
@@ -232,8 +218,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Task Management Agent', color: dracula.purple },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Social Media Agent - AI Agent with social messaging capabilities
@@ -248,8 +233,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Social Media Agent', color: dracula.green },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Travel Agent - AI Agent with travel planning capabilities
@@ -264,8 +248,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Travel Agent', color: dracula.orange },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Tool Agent - AI Agent for orchestrating multiple tools
@@ -280,8 +263,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Tool Agent', color: dracula.yellow },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Productivity Agent - AI Agent for productivity and time management
@@ -296,8 +278,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Productivity Agent', color: dracula.cyan },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Payments Agent - AI Agent for payment processing and financial operations
@@ -312,8 +293,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Payments Agent', color: dracula.green },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Consumer Agent - AI Agent for consumer interactions and support
@@ -328,8 +308,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Consumer Agent', color: dracula.purple },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Autonomous Agent - AI Agent for autonomous operations with Code Mode patterns
@@ -344,8 +323,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
defaults: { name: 'Autonomous Agent', color: dracula.purple },
inputs: AI_AGENT_INPUTS,
outputs: AI_AGENT_OUTPUTS,
- properties: AI_AGENT_PROPERTIES,
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ properties: AI_AGENT_PROPERTIES
},
// Orchestrator Agent - Coordinates multiple agents for complex workflows
@@ -377,8 +355,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
default: '',
description: 'Enable team mode to coordinate connected teammate agents'
}
- ],
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ ]
},
// AI Employee - Team lead node for coordinating multiple agents
@@ -417,8 +394,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
typeOptions: { minValue: 1, maxValue: 20 },
description: 'Maximum concurrent task executions'
}
- ],
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ ]
},
// RLM Agent - Recursive Language Model with REPL-based reasoning
@@ -474,8 +450,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
default: false,
description: 'Enable detailed REPL output logging'
}
- ],
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
+ ]
},
claude_code_agent: {
@@ -550,7 +525,6 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
description: 'Working directory for Claude Code (empty = server default)',
},
],
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
},
// Deep Agent - LangChain DeepAgents powered agent with filesystem, sub-agents, and planning
@@ -579,7 +553,6 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {
description: 'Maximum agentic loop iterations',
},
],
- outputSchema: AI_AGENT_OUTPUT_SCHEMA,
}
};
diff --git a/client/src/nodeDefinitions/whatsappNodes.ts b/client/src/nodeDefinitions/whatsappNodes.ts
index 4628e71b..2acd69fc 100644
--- a/client/src/nodeDefinitions/whatsappNodes.ts
+++ b/client/src/nodeDefinitions/whatsappNodes.ts
@@ -105,13 +105,6 @@ export const whatsappNodes: Record<string, INodeTypeDescription> = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- success: 'boolean',
- message_id: 'string',
- chat_id: 'string',
- timestamp: 'string',
- message_type: 'string',
- },
properties: [
// ===== RECIPIENT =====
{
@@ -437,29 +430,6 @@ export const whatsappNodes: Record<string, INodeTypeDescription> = {
type: 'main' as NodeConnectionType,
description: 'Received message data (message_id, sender, sender_phone, chat_id, message_type, text, timestamp, is_group, is_from_me, group_info.sender_jid, group_info.sender_phone, group_info.sender_name)'
}],
- outputSchema: {
- message_id: 'string',
- sender: 'string',
- sender_phone: 'string',
- chat_id: 'string',
- message_type: 'string',
- text: 'string',
- timestamp: 'string',
- is_group: 'boolean',
- is_from_me: 'boolean',
- push_name: 'string',
- media: 'object',
- group_info: {
- group_jid: 'string',
- sender_jid: 'string',
- sender_phone: 'string',
- sender_name: 'string',
- },
- newsletter_meta: {
- edit_ts: 'number',
- original_ts: 'number',
- },
- },
properties: [
// ===== MESSAGE TYPE FILTER =====
{
@@ -711,47 +681,6 @@ export const whatsappNodes: Record<string, INodeTypeDescription> = {
description: 'Connect to AI Agent tool handle'
}
],
- outputSchema: {
- operation: 'string',
- // chat_history
- messages: [{
- text: 'string',
- sender: 'string',
- sender_phone: 'string',
- message_type: 'string',
- timestamp: 'string',
- message_id: 'string',
- is_from_me: 'boolean',
- is_group: 'boolean',
- push_name: 'string',
- index: 'number',
- }],
- total: 'number',
- has_more: 'boolean',
- count: 'number',
- chat_type: 'string',
- // search_groups / list_contacts
- groups: [{ jid: 'string', name: 'string', participant_count: 'number' }],
- contacts: [{ jid: 'string', phone: 'string', name: 'string', push_name: 'string' }],
- // get_group_info
- participants: [{ jid: 'string', phone: 'string', name: 'string', is_admin: 'boolean' }],
- // get_contact_info
- jid: 'string',
- phone: 'string',
- name: 'string',
- push_name: 'string',
- business_name: 'string',
- is_business: 'boolean',
- is_contact: 'boolean',
- profile_pic: 'string',
- // channel operations
- channels: [{ jid: 'string', name: 'string', subscriber_count: 'number' }],
- channel_jid: 'string',
- timestamp: 'string',
- muted: 'boolean',
- server_ids: 'string',
- status: 'string',
- },
properties: [
// ===== OPERATION SELECTOR =====
{