Ktor is a framework for building asynchronous servers. It allows you to quickly setup any HTTP server like Netty or Jetty and serve your JAICF agent.

How to use

This server can be used with any channel that implements HttpBotChannel interface.

Learn more about channels here.

1. Append Ktor dependency to build.gradle




2. Configure routing and run server

Use httpBotRouting extension to create a routing for HttpBotChannel endpoints.

fun main() {
    embeddedServer(Netty, 8000) {
        routing {
                "/alexa" to AlexaChannel(gameClockBot),
                "/actions" to ActionsFulfillment.dialogflow(gameClockBot)
    }.start(wait = true)

The same for Jetty server.