Send welcome message to users using Bot Framework Composer

The Bot Framework Composer is a fantastic tool for creating/developing Microsoft bots, as it gives you the ability to sketch out and compose the whole simple and complex Bot applications within a visual interface instead of writing actual code. Composer 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 Composer awesome tool, as this will make your Bot development even easier in terms of building smart and engaging bots with ease. Read my previous article to build and setup 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 you create initial and create greeting messages using bot framework composer.

Send welcome message to users using Bot Framework Composer

Create New Bot Application

In Bot Framework Composer Editor provide different feature for Create a new bot project, You can choice
  • Create new bot Project from scratch
  • List of Bot Template
  • Select very Recent Project
  • Collection of Recent Project
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 we select to create a new bot from scratch with a composer.

Create New Bot Application

Provide Bot name, Location and description for create Bot application

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 a message “what your bot will say for greeting “.

Step 4: Message always starts 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.

Bot Framework Composer Editor

Build Bot Application

We have added a Greeting message and started building the bot application using the StartBot /Restart Bot button. After building success, you can click on “Test in Emulator “.

Build Bot Application

Test in Bot Emulator

Next, Click on “Test in Emulator” after that browser will ask you permission to open the bot emulator, once you confirmed the message, Bot emulator will open and automatically navigate to your Bot service. You can start clicking on “restart conversation”, the welcome message will display randomly.


Summary

You have successfully created and run the first bot with a 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.




0 Comments

Featured Post

How to learn Azure without paid subscription

Microsoft Azure is a cloud service that is constantly expanding to help your organization meet business challenges. You can build, manage d...

Subscribe to the FREE Weekly Newsletter to receive all the latest Microsoft Azure, AI, Xamarin

Popular Posts