Do you have any experience creating custom dialogs handling in bot framework using teams ai library & function calling? There are none examples from Microsoft site – correct me if I am wrong.
Instead of using Dialogs components from bot-builder library, I added to ConverstationState:
export interface ConversationState extends DefaultConversationState { allDialogs: Record<string, Dialog>; activeDialog?: string; }
& in skprompt we tell bot that he must always have an activeDialog, and when user changes topic it should generate new dialog & set it as active. Also using bot.ai.action we give bot functions to do that.
What do you think about this approach? Does Microsoft provide any examples how to combine botbuilder dialogs & ai planner?
Jakub Nowicki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.