Introducing Actions on Google SDK for Kotlin / Java

Patrick Jackson
Aug 24, 2017 · 2 min read

Development for Actions on Google is new for us all. For JVM developers (like the masses of Android devs), the official Node.js SDK may not get you excited. Javascript is a fine choice for lots of people, but if your expertise lies in Kotlin or Java, you may not feel like you’re using your skills and experience to your advantage. Now there is an option with the unofficial Kotlin/Java Actions on Google SDK.

Quick Facts:

  • API.AI support
  • Actions SDK support
  • All tests from official SDK ported and passing (~230)
  • Conversation components example for API.AI & Actions SDK
  • Transaction Sample for API.AI
  • Java conversation sample
  • Available on JCenter and Maven Central

Since this is a port, and the API is nearly identical, one can look at the Node.js docs and examples and easily do the same in Kotlin, Java, or any JVM language. Below are snippets of the conversation components sample that is available in the github repo.

Actions in Kotlin

Top level functions and named parameters make Kotlin a natural fit! Now lets see how to do the same thing in Java:

Actions in Java

Many Android and Java developers should be able to get started quickly, even if you’re a newbie to back-end development. Check out our GitHub repo for examples and more information on getting started.

I’ll be writing on some of the basic concepts and tools for developing Actions on Google. Follow Ticketmaster Mobile Studio and myself to catch those soon!

)

Patrick Jackson

Written by

Ticketmaster Mobile Studio

Thought, musing, and honest exploration from the minds behind Ticketmaster’s elite innovation team.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade