Skip to content
/ code-tutor Public template

Let's help people who can't use their hands to learn to code by talking to the Google Assistant (voice assistant).

License

Notifications You must be signed in to change notification settings

hchiam/code-tutor

Repository files navigation

Ok Google, Talk to Code Tutor version

2023 news: Conversational Actions are scheduled to sunset in 2023.


Try it now: 🅖 Ask Code Tutor to teach me

Code Tutor is listed in the Google Assistant web directory.

Code Tutor listed on the Google Assistant web directory

Long-term goal: Let's help people who can't use their hands to learn to code by talking to the Google Assistant.

For now: Conversationally teach simple coding concepts. Code hands-free.

Made possible thanks to support from family and friends.

Built using lessons learned from my mental-temp-converter backend and a Zeitspace workshop I attended. (EDIT: Now updated to use API V2.)

Privacy policy: https://goo.gl/PMwsDW

Use the Google Assistant on Your Phone:

Code Tutor on mobile

This app works great on a device with a screen. You can get the Google Assistant on your device:

Files:

I'm open-sourcing my code to help others learn faster (just please change the author in package.json before you publish). It also enables you to help me improve the app faster by contributing on GitHub.

  • START HERE: Screenshots for reference. Use them to get a quick overview of the app's conversation flow. Start at "1.0 Default Welcome intent". I think I followed best practice by treating each intent name as a numbered bullet point (or sub-point). This makes it easier to navigate them all when Dialogflow alphabetically sorts them.
  • index.js is my inline editor code in Dialogflow. Use it to figure out how to use the inline editor to add extra functionality to the intents. For it to work, my code requires the imports listed in package.json
  • package.json (you’ll see a tab for this in the inline editor in Dialogflow).
  • The CodeTutor folder is an un-zipped export of my agent from Dialogflow, which may contain the app’s intents, entities, and other info besides the other 2 files. NOTE: If you're importing the zip file into your own Dialogflow project, make sure to set the "-1.0 No/Bye" intent's response as end of conversation in the Dialogflow interface. This option does not appear to be stored in the intents .json files, so you'll have to set this option manually.

Hidden Features:

Hint: try a number over 9000 :)

Want to Create Your Own Google Assistant App?

Check out these AoG codelabs: https://developers.google.com/actions/codelabs/

Related:

https://github.com/hchiam/code-tutor-sandbox-test and https://code-tutor-sandbox-test.glitch.me/

Previous Work:

Newer Experiments:

You Might Also Like:

https://github.com/hchiam/sourcefetch-server