UNPKG

bot-handoff

Version:

Bot hand off module for the Microsoft Bot Framework. It allows you to transfer a customer from talking to a bot to talking to a human.

13 lines (10 loc) 468 B
import { Session, UniversalBot } from 'botbuilder'; //tslint:disable export type MessageReceivedWhileWaitingHandler = (bot: UniversalBot, session: Session, next: Function) => any; //tslint:enable export const defaultMessageReceivedWhileWaitingHandler: MessageReceivedWhileWaitingHandler = //tslint:disable (bot: UniversalBot, session: Session, next: Function): any => { //tslint:enable session.send('please hold on while we connect you to an agent'); };