如何将任何API集成到我的聊天机器人

如何将任何API集成到我的聊天机器人

问题描述:

我正在创建一个集成的聊天机器人,其中包括股票查询,运行状况,计划和fb通知,因此我想将所有API集成到我的LUIS机器人中,以帮助我进行API的集成

i am creating a integrated chat bot which include stock query,health,schedule and fb notification so i want to integrate all API to my LUIS bot help me make the integration of API

这是您可以做的

This is what you can do 

1)为每种功能创建对话框

1) Create dialogs for each functionality

2)创建使用目标api的帮助器类

2) Create helper classes which consume target api

3)根据检测到的意图,启动必要的对话框

3) Based upon the intents detected, start the necessary dialogs