අද කාලේ Chatbot කියන වචනය අහලා නැති කෙනෙක් හරි ගොඩක් අඩුයි. අපි Facebook Messenger එකේ chat කරනවා, Microsoft Teams වල quick reply ලැබෙනවා, හෝ website එකකින් support agent එක්ක chat කරනවා – මේ සියල්ලකට පසුපස Bot Framework වගේ තාක්ෂණික මගපෙන්වීමක් තියෙනවා.
Microsoft විසින් ලබාදෙන Azure AI Bot Framework කියන්නේ ඒ වගේ මිනිසුන්ගේ සංවාදමය (conversational) අවශ්යතා AI වලින් නිරාකරණය කරන, bots නිර්මාණය, testing, publishing සහ පවත්වාගෙන යාමට සම්පූර්ණම platform එකක්.
Azure AI Bot Framework කියන්නේ මොකක්ද?
සරලව කිව්වොත් – මෙය ඔබට මිනිස්සුන්ගෙන් සංවාදමය පණිවිඩ (text, voice, image) ලබාගෙන, ඒවා විග්රහ කර, ප්රතිචාර දෙන smart bot එකක් සාදන්න උදව් කරන toolkit එකක්.
ඔබට හැකි වෙනවා:
- Customer support chatbot – FAQ වලට උත්තර දෙන, tickets create කරන.
- Personal productivity assistant – දිනපතා reminder, task update, schedule manage කරන.
- Enterprise virtual agent – ගොඩක් systems එකට API මගින් connect වෙලා පරිශීලකයන්ගේ සේවා automated කරන.
මූලික කොටස් සහ ඒවා කෙලින්ම තේරුම් ගන්නා විදිහ
Azure AI Bot Framework එකේ හෘදස්ථානයේ තියෙන්නේ මේවයි:
- Bot Framework SDK – Bot ලියන්න libraries.
- Bot Connector Service – ඔබේ Bot එක Microsoft Teams, Facebook Messenger, Website chat box වැනි නාලිකා වලට connect කරනවා.
- Bot Framework Emulator – Local environment එකේ bot එක conversation එකක් simulate කරලා test කරනවා.
- Azure Bot Service – Bot එක cloud වල host කරලා manage කරනවා.
- Azure Cognitive Services – AI services (LUIS, QnA Maker, Speech-to-Text, Vision APIs) add කරනවා.
- Application Insights – Bot එක live වෙද්දී performance track කරනවා, errors log කරනවා.
ඒක basically මෙහෙම flow එකකට සමානයි:
User → Channel (Teams, Web, Messenger) → Bot Connector → Bot App (SDK) → AI services → Response to User.
ඇත්තටම Bot එකක් පාවිච්චි වෙන්නේ කොහේද?
- Customer Support – FAQ, order status, complaint tracking.
- Healthcare – Appointment booking, symptom checking.
- E-commerce – Product suggestions, order tracking, payments.
- Banking – Balance check, transaction history, fraud alerts.
- Education – Student Q&A, timetable updates.
- HR / Internal – Onboarding, leave request processing.
Azure Services මොනවා Bot එකේ යොදා ගන්න පුළුවන්?
- Azure Bot Service – Hosting, scaling, deployment.
- Cognitive Services – Natural language understanding, speech recognition.
- Azure Functions – Serverless business logic.
- Azure Storage / Cosmos DB – User data store කරනවා.
- Logic Apps / Power Automate – Workflows automate කරනවා.
Bot Development ආරම්භ කරමු
- Environment එක සැකසීම
- Visual Studio Code හෝ Visual Studio install කරන්න.
- Node.js (JavaScript bots) හෝ .NET SDK (C# bots) install කරන්න.
- Bot Framework Emulator download කරන්න.
- Azure account එකක් create කරගන්න.
ඔබේ ප්රථම Bot එක සාදමු
-
- Microsoft එකේ ready-made templates වලින් start කරන්න (e.g., Echo Bot).
- Language understanding එක add කරන්න (LUIS integration).
- Dialog logic එක වෙන වෙනම components වලට split කරන්න maintain කරන්න easy වෙන්න.
const { ActivityHandler } = require('botbuilder');
class MyBot extends ActivityHandler {
constructor() {
super();
this.onMessage(async (context, next) => {
await context.sendActivity(`You said: ${context.activity.text}`);
await next();
});
}
}
- Bot Channels Azure වල Register කරන්න
- Azure Portal → Create Web App Bot.
- Messaging endpoint configure කරන්න.
- Channels connect කරන්න (Teams, Facebook, Telegram).
- Channel-specific settings adjust කරන්න.
- Bot Framework Emulator එකෙන් Test කරන්න
- npm start හෝ local server එක run කරන්න.
- Emulator එක open කර connect කරන්න http://localhost:3978/api/messages.
- Conversation test කරන්න, errors fix කරන්න.
- Dialog Management කියන්නේ Bot එකේ හදවත
Waterfall Dialogs vs Adaptive Dialogs
- Waterfall Dialogs – Step-by-step process (ticket booking වගේ).
- Adaptive Dialogs – User input අනුව dynamic changes (open-ended conversations).
Prompts සහ Dialog Context
Prompts → User input collect කරන්න:
- TextPrompt – Text එකක් collect කරනවා.
- NumberPrompt – Number එකක් collect කරනවා.
- ChoicePrompt – Multiple choice options.
- ConfirmPrompt – Yes/No confirm.
Dialog Context → User conversation progress manage කරනවා.
Interruptions handle කිරීම
- User එකක් අතරම conversation එක change කරනවා.
- Mismatched answers.
- Incomplete info.
Adaptive Dialogs වලින් මේවා gracefully handle කරන්න පුළුවන්.
Dialog Design Best Practices
- Short & clear messages.
- Confirm critical actions.
- Use AI for natural language.
- Error handling තියන්න.
- Context sessions maintain කරන්න.
Azure AI Bot Framework එකෙන් ඔබට හැකි වෙන්නේ පරිශීලකයන්ට ලස්සන, බුද්ධිමත්, සහ ක්රියාකාරී chat experience එකක් ලබා දීම. ඔබ හදන Bot එක customer support එකකට වුවත්, e-commerce sales වලට වුවත්, හෝ office automation එකකට වුවත් – මේ platform එකෙන් පුදුම දේවල් කරන්න පුළුවන්.
ඊළඟ ලිපියෙදි අපි බලමු Azure Cognitive Services සහ Bot එකේ AI එක වැඩිපුර integrate කරන විදිහ.

















