@wildix/wim-voicebots-client > ListVoiceBotsCommand
ListVoiceBotsCommand class
Signature:
export declare class ListVoiceBotsCommand extends ListVoiceBotsCommand_base
Extends: ListVoiceBotsCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { VoiceBotsClient, ListVoiceBotsCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
// const { VoiceBotsClient, ListVoiceBotsCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
const client = new VoiceBotsClient(config);
const input = { // ListVoiceBotsInput
company: "STRING_VALUE",
};
const command = new ListVoiceBotsCommand(input);
const response = await client.send(command);
// { // ListVoiceBotsOutput
// bots: [ // VoiceBotsList // required
// { // VoiceBot
// name: "STRING_VALUE", // required
// message: "STRING_VALUE",
// pipeline: { // VoiceBotPipelineSettings
// interuptionsEnabled: true || false,
// maximumDuration: Number("int"),
// maximumDurationAction: { // VoiceBotPipelineTerminateAction Union: only one key present
// hangup: {},
// transfer: { // VoiceBotTerminateTransferAction
// context: "STRING_VALUE", // required
// extension: "STRING_VALUE", // required
// },
// },
// silenceTimeout: Number("int"),
// silenceTimeoutAction: {// Union: only one key present
// hangup: {},
// transfer: {
// context: "STRING_VALUE", // required
// extension: "STRING_VALUE", // required
// },
// },
// endCallEnabled: true || false,
// endCallPhases: "STRING_VALUE",
// },
// endpoint: { // VoiceBotEndpoint Union: only one key present
// llm: { // VoiceBotLlmEndpoint
// prompt: "STRING_VALUE", // required
// embeddedTools: [ // VoiceBotEmbeddedToolsList
// { // VoiceBotEmbeddedTool
// type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
// name: "STRING_VALUE", // required
// parameters: "DOCUMENT_VALUE",
// },
// ],
// tools: [ // VoiceBotToolsList
// { // VoiceBotTool
// type: "function", // required
// function: { // VoiceBotFunctionDefinition
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// parameters: "DOCUMENT_VALUE",
// integration: { // VoiceBotFunctionIntegration Union: only one key present
// webhook: { // VoiceBotFunctionIntegrationWebhook
// url: "STRING_VALUE", // required
// method: "get" || "post" || "put" || "delete" || "patch",
// async: true || false,
// authorization: { // VoiceBotFunctionIntegrationWebhookAuthorization Union: only one key present
// bearer: { // VoiceBotFunctionIntegrationWebhookAuthorizationBearer
// token: "STRING_VALUE", // required
// },
// basic: { // VoiceBotFunctionIntegrationWebhookAuthorizationBasic
// username: "STRING_VALUE", // required
// password: "STRING_VALUE", // required
// },
// oauth: { // VoiceBotFunctionIntegrationWebhookAuthorizationOAuth
// clientId: "STRING_VALUE", // required
// clientSecret: "STRING_VALUE", // required
// endpointUrl: "STRING_VALUE", // required
// scope: "STRING_VALUE",
// },
// },
// headers: [ // VoiceBotFunctionIntegrationWebhookHeadersList
// { // VoiceBotFunctionIntegrationWebhookHeader
// key: "STRING_VALUE", // required
// value: "STRING_VALUE", // required
// },
// ],
// parameters: "DOCUMENT_VALUE",
// },
// },
// },
// },
// ],
// },
// dialogflowCx: { // BotDialogflowCxEndpoint
// credentials: "DOCUMENT_VALUE", // required
// agent: "STRING_VALUE", // required
// location: "STRING_VALUE", // required
// language: "STRING_VALUE", // required
// },
// openAiAssistant: { // BotOpenAiAssistantEndpoint
// key: "STRING_VALUE", // required
// assistantId: "STRING_VALUE", // required
// },
// webhook: { // BotWebhookEndpoint
// url: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// sqs: { // BotSqsEndpoint
// url: "STRING_VALUE", // required
// key: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// },
// id: "STRING_VALUE", // required
// createdAt: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE",
// },
// ],
// };