tock / ai.tock.bot.connector.ga / endForGoogleAssistant

endForGoogleAssistant

fun <T : Bus<T>> T.endForGoogleAssistant(messageProvider: T.() -> GAResponseConnectorMessage, delay: Long = defaultDelay(currentAnswerIndex)): T (source)

Sends a Google Assistant message as last bot answer, only if the ConnectorType of the current BotBus is gaConnectorType.