Skip to content

BotTemplate

CogniSim Soft edited this page Jul 26, 2018 · 2 revisions

BotTemplate

The JSON Bot Template allows developers to load code-less BOTs from JSON using the core StateManager framework. In other words, you can create a full-flow conversation with just JSON and your LUIS application.

Example Template

{
	"TalkingPoints": {
		"greetingTalkingPoint": {
			"RequiresIntent": null,
			"RequiresEntities": [ "gratitude", "helpfulness", "selfIdentification" ],
			"Text": "Thank you! I am calling because my internet bill has increased!! I am very frustrated and need help. Can you help me ?"
		},
		"defaultTalkingPoint": {
			"RequiresEntities": [],
			"Text": ""
		}
	},

	"Transitions": {
		"defaultTalkingPoint": [ "greetingTalkingPoint" ],
		"greetingTalkingPoint": [ "greetingTalkingPoint" ]
	},
	"TransitionPriorities": {
			"greetingTalkingPoint": { "greetingTalkingPoint": 1 }
	},

	"DefaultTalkingPoint": "greetingTalkingPoint",
	"FallbackTalkingPoint": "defaultTalkingPoint"
}

The bot will send the defined response when entities ("gratitude", "helpfulness", "selfIdentification") are all fulfilled.

Clone this wiki locally