mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 20:29:08 +00:00
feat(editor): Add pre-built agents experiment (#18124)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user