UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

31 lines 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SEND_TEXT = void 0; /* Custom modules */ const createNodeDescriptor_1 = require("../../createNodeDescriptor"); exports.SEND_TEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({ type: "sendText", defaultLabel: "Send Text", appearance: { showIcon: false }, fields: [ { key: "text", type: "cognigyText", label: "UI__NODE_EDITOR__MESSAGE__SEND_TEXT__FIELDS__TEXT__LABEL", defaultValue: "Hello World!" }, ], preview: { key: "text", type: "text", }, tags: ["basic", "message"], function: async ({ cognigy, config }) => { const { text, data } = config; const { api } = cognigy; await api.say(text, data); } }); //# sourceMappingURL=sendText.js.map