Canned replies in one tap
A few lines of JavaScript running inside your Google account. Good when the text lives in Sheets, Calendar or Gmail and you do not want to publish it.
Replace the code with:
function doGet() {
const sheet = SpreadsheetApp.openById("YOUR_SHEET_ID").getSheetByName("Sheet1");
const text = sheet.getRange("A1").getDisplayValue();
return ContentService.createTextOutput(text)
.setMimeType(ContentService.MimeType.TEXT);
}
https://script.google.com/macros/s/…/exec) and
paste into a Dynamic snippet.CalendarApp.getDefaultCalendar().getEventsForDay(new Date())
and join the titles with \n.