おはようございます、岡田です。 今回は、みなさん馴染み深いjQueryを使って、Webブラウザ上でBotと対話をしてみます! 非常に多くのチャンネルでBotを作成できるMicrosoft Bot Framework。実はBotをREST APIとして扱う事ができる仕組みが用意されています。それが「Direct Line API」です。 Direct Line APIとjQueryを組み合わせれば、WebブラウザでBotと会話できる事はもちろん、Botに柔軟なUIを与えてあげる事ができそう。 REST APIですので、HTTP通信さえできればプログラミング言語やデバイスを問わず、様々なシーンでBotを呼び出せるというメリットがあります。覚えといて損はありません。 記事の最後には、すぐに試せるデモとサンプルコードもありますので、参考にしてみてください。 Direct Line APIを使うため