Business Intent Workers

A Business Intent worker takes a utterance or touch event, and matches it to a business intent and interacts with APIs to carry out a set of steps. This worker can process intents using either Lex or Dialogflow. Create one through the CLI or through the Add Resource button on a bot’s detail page.

Type: NLP Worker

Fields

  • Data -> Operator: Either Lex or Dialogflow

For Lex

  • botName: Bot name in lex that will be used for processing input.
  • botAlias: Alias of the bot in lex.
  • region: Region where the lex bot is configured.
  • lexConfig: Cross-account role secret.

For Dialogflow

  • projectId: ProjectId of the agent to be used. See our Dialogflow bot tutorial for more information.
  • secret: Google DialogFlow agent access key.

Creating Business Intent worker through cli

Save this json to a file and create a worker using the cli command sb-cli worker create file.json


{
  "Data": {
    "operator": {
      "aws": "srn:vault::flowit:secretdoc:lexsecret",
      "type": "Lex"
    }
  },
  "Organization": "flowit",
  "Config": {
    "Avatar": "default-bot"
  },
  "Enabled": true,
  "Description": "An amazing Lex Worker",
  "Type": "business-intent",
  "Name": "SBPeerToPeerTransferLexWorker",
  "Status": "published",
}

Once you have created the worker using the CLI, it will return an ID for you. You need to then update/create a bot and place the filter worker at the top with the id and the type of business-intent