Defining parameters and events to ignore from bot

As the administrator, you can define a list (blacklist) of parameters (e.g., transferTarget and playUrlUrl) or events (e.g., transfer and playUrl) that you want VoiceAI Connect to ignore if received from a specific bot. Alternatively, you can define a list (whitelist) of parameters or events that you want VoiceAI Connect to handle if received from the bot. Therefore, this allows you to limit what the bot can control and change in the VoiceAI Connect system.

This is configured per bot using the following administrative parameters:

You can configure a bot with either botEventsWhitelist or botEventsBlacklist, but not both.

You can configure a bot with either botParametersWhitelist or botParametersBlacklist, but not both.

You can also configure the "base" bot with these parameters (see Sharing configuration between bots). But if both the "base" bot and a bot that is based on the "base" bot are configured with the same whitelist or blacklist parameter, the bot's configuration takes precedence (instead of the "base" bot) for these parameters.

Below shows an example of a bot that is configured with a whitelist for events and a blacklist for parameters:

{
  "name": "my_bot",
  "provider": "my_provider",
  "botEventsWhitelist": [
    "config",
    "transfer",
    "playUrl"
  ],
  "botParametersBlacklist": [
    "sendDTMF",
    "transferTarget"
  ]
}

If the following event message is received from the bot, VoiceAI Connect will handle only the handoverReason parameter, while ignoring the transferTarget parameter:

{
  "type": "event",
  "name": "transfer",
  "activityParams": {
    "handoverReason": "My handover reason",
    "transferTarget": "tel:+119001234567"
  }
}