Multiple Dynamic Greeting Message Using Bot Framework Composer

Introduction

 
The Bot Framework Composer is a fantastic tool for creating/developing Microsoft bots, as it gives you the ability to sketch out and compose both simple and complex Bot applications within a visual interface instead of writing actual code. Composer allows you to create the bot solution’s code and run it immediately to test it in the emulator and deploy it to Azure using the CLI. Bot developers should check out the awesome Composer tool, as this will make your Bot development even easier in terms of building smart and engaging bots with ease. Read my previous article for building and setting up the bot framework Composer development environment. 
 
The primary goal when creating any bot is to engage your user in a meaningful conversation. One of the best ways to achieve this goal is to ensure that from the moment a user first connects, they understand your bot’s main purpose and capabilities, the reason your bot was created. In this article you will learn more about how to create greeting messages using bot framework composer.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 

Create New Bot Application

 
The Bot Framework Composer Editor provide different features for creating a new bot project:
  1. Create new bot Project from scratch
  2. List of Bot Template
  3. Select very Recent Project
  4. Collection of Recent Projects
Bot Project template contains all the code that's necessary to create the bot, you won't actually need to write any additional code for simple startup. Let us select create new bot from scratch with composer.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 
Provide bot name, location and description for creating the Bot application.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 

Bot Framework Composer Editor

 
Step 1
 
On the right-hand side of the page, select “Greeting”.
 
Step 2
 
Click on “+” Icon and select “Send a response”.
 
Step 3
 
Provide message “what your bot will say for greeting “.
 
Step 4 - Message always start with “-“
 
Response message includes one or more variations of text that must be used for composition and expansion. One of the variations provided will be picked at random. Here is an example of a simple template that includes 2 variations.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 

Build Bot Application

 
We have added a greeting message and started build the bot application using Start Bot /Restart Bot button, after build success, you can click on “Test in Emulator “.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 

Test in Bot Emulator

 
Next, Click on “ Test in Emulator” after that browser asks  permission for opening the bot emulator. Once you confirm the message, the Bot emulator will open and automatically navigate to your Bot service.
 
Multiple Dynamic Greeting Messgae Using Bot Framework Composer
 

Summary

 
You have successfully created and run the first bot with greeting message using Bot framework composer. I hope you have enjoyed learning. If you have any questions/feedback/issues, please write them in the comment box.


Similar Articles