How to create a template bot

How to create a template bot?

  • To create a template bot. Your chatbot developer will need to read data from the $botbuilder.metadata.internal.customizable object.

  • You can define which part of the chatbots are customizable or not.

Example object data of customizable in action

Your chatbot developers will then read those data and put them into the watson assistant skill

Upon starting the template bot we initialize the values of the following context variables

  • leave_a_contact

  • waiting_message

  • escalate_message

  • thank_you_message

  • connected_to_human_message

  • send_emails_to

as you can see in the Watson Screenshot 1 after welcome node triggered it jumped to its child node named “Default Data” where the default values for the sampled context variables are declared (see Watson Screenshot 2),Inside that child node there is also another child node named“Get Botbuilder - Pass here” that needs to be evaluated. Inside this node ( refer to the Watson Screenshot 3. Watson Assistant) Watson Assistant checks if the context variable $botbuilder.metadata.internal.customizable must have the set values that can used to replace the default values of the context variables stated above and if $botbuilder.metadata.internal.customizable is undefined it will fallback to its parent node with the unchanged values of the context.

As of now all templated bots are available to the public and all are applied through us manually. We are quickly making a User interface for this in our roadmap

CH User Profile

Located at $botbuilder.metadata.internal.user

  1. fullName = variable which contains the full name of the user.

  2. Email = variable which contains the email of the user.

  3. Number = variable which contains the contact number of the user.

  4. Company = variable which contains the company name of the user.

Channel Metadata Located at $botbuilder.metadata.internal.channelMetadata Contains the details of the channels

We are still developing the Livechat metadata of this part. It will be updated in the next release.

Last updated