feat(editor): Add pre-built agents experiment (#18124)

This commit is contained in:
Jaakko Husso
2025-08-09 10:28:14 +03:00
committed by GitHub
parent a3b625fc18
commit 5a69d2a2f3
44 changed files with 2635 additions and 653 deletions

View File

@@ -6,6 +6,7 @@ import type {
INodeType,
INodeTypeDescription,
IHttpRequestMethods,
INodeProperties,
} from 'n8n-workflow';
import {
BINARY_ENCODING,
@@ -26,6 +27,22 @@ import { configureWaitTillDate } from '../../utils/sendAndWait/configureWaitTill
import { sendAndWaitWebhooksDescription } from '../../utils/sendAndWait/descriptions';
import { getSendAndWaitProperties, sendAndWaitWebhook } from '../../utils/sendAndWait/utils';
const preBuiltAgentsCallout: INodeProperties = {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
displayName: 'Interact with Telegram using our pre-built',
name: 'preBuiltAgentsCalloutTelegram',
type: 'callout',
typeOptions: {
calloutAction: {
label: 'Voice assistant agent',
icon: 'bot',
type: 'openSampleWorkflowTemplate',
templateId: 'voice_assistant_agent_with_telegram_and_gcal',
},
},
default: '',
};
export class Telegram implements INodeType {
description: INodeTypeDescription = {
displayName: 'Telegram',
@@ -49,6 +66,7 @@ export class Telegram implements INodeType {
],
webhooks: sendAndWaitWebhooksDescription,
properties: [
preBuiltAgentsCallout,
{
displayName: 'Resource',
name: 'resource',