Sep 21, 2018

Google Docs has a pretty full-featured scripting system called Apps Script.

It lets you write JavaScript to do some pretty useful things:

Run code in response to events like documents opening or cells changing
Make custom Google Sheets spreadsheet functions for formulas
Use services like Google Translate to translate text or Gmail to send email
Add new menu items to the Google Docs interface with your custom features