Google Sheets Integration
Helper class to deal with intents and lines specified in a Google Sheets document. While you can instantiate multiple instances (if using multiple Google Sheet documents, for example), the recommended approach is to use UtilsLib.GoogleSheets for convenience.
/!\ WARNING: The sheet has to be publicly readable for this integration to work properly /!\
See also
Constructors
Types
Functions
Returns a mutable map of buttons from the $sheetTab of the $googleSheet data sheet.
Returns a mutable map of intents from the $sheetTab of the $googleSheet data sheet.
Include this in a state to add wizard buttons from the Google Sheet.
Include this in a state to listen for dynamic intents from the Google Sheet.
Loads the content of a Google sheet into a map of strings sorted by language and key. Examples of the how to set the sheet are available here.
Returns an IntentCandidate from the loaded sheet with specified key and languages.
Returns a random string from the loaded sheet with specified key and language.
Returns a random utterance from the loaded sheet with specified key and language.
Update the default tab ids so that they don't need to be specified each time. The tabs ids can be found at the end of the url of a Google Sheet page. For instance, the id for a tab https://docs.google.com/spreadsheets/d/$sheetId/edit#gid=14 is 14
Update the default sheetLink so that it doesn't need to be specified each time.
Updates the texts, intents and buttons from the $sheetTab of the $googleSheet data sheet.
Updates the buttons from the $sheetTab of the $googleSheet data sheet.
Updates the intents from the $sheetTab of the $googleSheet data sheet.
Updates the lines from the $sheetTab of the $googleSheet data sheet.