tock / ai.tock.bot.connector.ga / withGoogleAssistant

withGoogleAssistant

fun <T : Bus<T>> T.withGoogleAssistant(messageProvider: () -> GAResponseConnectorMessage): T (source)

Adds a Google Assistant ConnectorMessage if the current connector is Google Assistant. You need to call BotBus.send or BotBus.end later to send this message.