r/GoogleAppsScript • • Feb 24 '24

Guide Building a sheets-on that makes Python work in Google Sheets

13 Upvotes

Hello,

Here at Neptyne we've been working to make Python run in Google Sheets. The project itself might interest some people here, but how we got there even more. I did a write up of the various issues we encountered and how we overcame them. Let me know what you think:

https://www.neptyne.com/blog/developing-python-for-google-sheets-traps-and-tricks


r/GoogleAppsScript • • Jan 23 '24

Guide No Moderators

13 Upvotes

Friends,

I do believe we are dwindling due to lack of moderation.

I have started a discord to have a chat room and help zone for users who are looking for help.

This discord is brand new. This is not spam, this is not for profit, this is not to get anyone to talk badly about this particular subreddit. I really don't want to do anything that breaks the community guidelines, but I feel like the support could be A) more direct and B) have better moderation.

If you are interested in such a chat-based community with help rooms, moderation, segmented areas, and user roles then visit the discord and help me make it better. :)

https://discord.gg/xJHvxRwe4S


r/GoogleAppsScript • • Aug 12 '23

Guide How To Guide - Developing a GAS Powered Google Workspace Add-on And Launching It To The Marketplace

13 Upvotes

A while ago I started developing my first GAS powered Google Workspace add-on and I documented what I learned in a how-to guide. I'm sharing here in case folks find it helpful.

https://gist.github.com/imthenachoman/6cff4a1170390f01c15d4da87110124a


r/GoogleAppsScript • • Mar 24 '20

Guide Sidebar App Update W. GitHub Source Code

13 Upvotes

r/GoogleAppsScript • • May 08 '19

Develop Google Apps Script Projects Locally

Thumbnail
github.com
13 Upvotes

r/GoogleAppsScript • • 20d ago

Question How difficult is adding Google sign-in to a small Google Apps Script web app?

12 Upvotes

I'm building a custom fantasy football web app using Google Apps Script and Google Sheets as the backend, with ChatGPT helping me write the code. I'm a beginner with very little programming experience.

The app will have 10 users. Five will need to sign in to manage their own teams (add/drop players, change lineups, etc.), while the other five will only need to view the app. I'll also need commissioner/full access to manage all teams.

ChatGPT recommended using Google Identity Services for sign-in, with the Apps Script backend running under my account so users won't need access to my private spreadsheets.

Before I get too deep into this, I'd appreciate some advice from people who've actually done something similar:

- How difficult is this to set up, especially for a beginner relying on ChatGPT?
- Is it genuinely free for a project this small?
- Are there any major security issues, Google restrictions, or other headaches I should anticipate?
- Is there a simpler or better alternative I should consider?

I'm hoping to keep things free, relatively simple for users, and manageable for someone without much coding experience, but if there's a solution out there that costs but is still affordable I'm open to learning about that.

Thank you for your time.


r/GoogleAppsScript • • May 25 '26

Guide I built a tool to help you navigate your Apps Script like a wizard.

12 Upvotes

I built this tool that beautifies your Apps Script, and even explains it to you. Apps Script Commenter. It also can clean your script, so it's easy to read


r/GoogleAppsScript • • Feb 08 '26

Question Percentage of posts here that are ads?

12 Upvotes

It’s gotten pretty bad here lately, what percentage of the posts here do you guys think are ads?


r/GoogleAppsScript • • Nov 22 '25

Question Apps Script vs n8n for automated website monitoring - has anyone made this switch?

12 Upvotes

I've been running automated website monitoring using Google Apps Script for the past few months - checking 9+ sites twice daily, sending HTML email reports, and logging historical data to Sheets. It works, but I'm hitting some limitations. Before settling on Apps Script, I actually tried building this with n8n workflows and it failed pretty badly. The reliability just wasn't there for scheduled monitoring at scale. Current Apps Script setup: Monitors site speed, uptime, and tech stack changes Sends formatted email reports automatically Stores all historical data in Google Sheets Runs on time-based triggers (twice daily) What's working well: Free (within quota limits) Integrates natively with Gmail and Sheets Relatively stable once configured Where I'm struggling: 6-minute execution time limit kills larger jobs Had to build custom auto-resume logic for 2000+ entry processing Debugging can be painful Limited options for handling complex workflows My question: For those who've used both Apps Script and n8n for similar automation tasks - what made you choose one over the other? Did n8n's reliability improve, or am I missing something in how I configured it? Is there a breaking point where n8n becomes clearly better, or does Apps Script handle most real-world monitoring scenarios fine? Would love to hear from anyone running production monitoring systems with either tool.


r/GoogleAppsScript • • Nov 07 '25

Guide I built this! What a fun experience Spoiler

12 Upvotes

What started as a quick fix to an annoying issue I came up with a little apps script to make my life easier. Now it lives on Workspace Market Place. Please feel free to check it out - Image Converter for Google Slides. Blows Cloud Convert out of the water


r/GoogleAppsScript • • Jul 13 '25

Question I built a zero-infra AI sprint assistant entirely in Google Apps Script — no DB, no server, just Slack, Gemini, and cached memory. Is this a new pattern?

12 Upvotes

So… I think I’ve stumbled onto something way bigger than a side project.

I’ve built a context-aware AI agent that lives inside Slack, understands our sprint tickets, backlog, PRs, and team goals — and responds instantly using Gemini (via API), without any server, database, or backend.

Instead of vector DBs, LangChain stacks, or full infra, I used:

🧠 Slack threads as long-term memory

⚡ Google Apps Script’s CacheService as working memory (100kb chunks, TTL-managed)

🤖 Gemini for all reasoning & summaries

💬 Slack slash commands and thread replies for all interaction

🔗 Live JIRA and GitHub integration, contextually surfaced per conversation

What it actually does:

Summarizes sprint tickets into goals in real time

Flags old backlog tickets and suggests actions

Finds GitHub PRs posted in Slack and checks if they’ve stalled

Learns what documents (spikes, decisions, etc.) are important and recalls them

Knows which memory chunks to send based on the phrasing of your question

Responds in under 1 second. Always correct.

It’s basically a fully agentic LLM bot, but running entirely on Google Apps Script.

No databases. No hosting. No vector search. Just Slack, Gemini, and a very intentional caching + event model.


Why this might matter:

Teams don’t want yet another SaaS tool

It works inside Slack, where conversations already live

No DevOps required

Costs pennies to run

You can audit every line of logic


Why I’m posting:

I’m wondering — has anyone seen this done before? Is this a new pattern for lightweight AI agents?

It feels like the early days of Lambda architecture or JAMstack — but for AI.

Would love thoughts, questions, or skepticism.

Also happy to write up a whitepaper if there's interest.


r/GoogleAppsScript • • Jun 24 '25

Guide Automatically Generate Daily PDF Appointment Reports from Google Calendar with Apps Script (Multi-Calendar, Color-Based Filtering)

12 Upvotes

Hey everyone! 👋
This is my very first public Apps Script project, so please be gentle 😅 — but I’m excited to share something that might be useful to others!

What it does:

  • Reads multiple Google Calendars, each representing a staff member, team, or location.

  • Uses color codes to include or exclude certain events (e.g., exclude personal blocks, tag special categories).

  • Generates a styled PDF listing all appointments grouped by calendar.

  • Saves the PDF to Google Drive and emails it to one or more recipients.

  • ⏱Includes time-based triggers to run automatically every morning and evening.

  • Handles structured data like “Treatment,” “Payment status,” and custom notes from the event description.

Why it's helpful:

I created this to streamline daily appointment management in a small multi-provider setting. It helped us save time, avoid overlaps, and start each day with a clear printable overview.

Open to feedback

This is my first go at a real-world script — feel free to try it out, and let me know how you'd improve it (just please don’t roast me too hard 🙈).

// Google Apps Script: General Appointment Report System

// Anonymized template version for public sharing

function generateHTMLReport(docTitle, dateFrom, dateTo) {

var calendarIds = {

"Provider A": "[email protected]",

"Provider B": "[email protected]",

"Provider C": "[email protected]"

};

var excludedColors = ["4", "11"]; // Skipped color codes

var grouped = {};

var specialColorData1 = [];

var specialColorData2 = [];

var dateStr = Utilities.formatDate(dateFrom, Session.getScriptTimeZone(), 'yyyy-MM-dd');

for (var name in calendarIds) {

var events = CalendarApp.getCalendarById(calendarIds[name])

.getEvents(dateFrom, dateTo)

.filter(e => e.getStartTime().getHours() >= 8 && !excludedColors.includes(e.getColor()));

events.sort((a, b) => a.getStartTime() - b.getStartTime()).forEach(e => {

var rec = {

time: Utilities.formatDate(e.getStartTime(), Session.getScriptTimeZone(), 'HH:mm') + '–' +

Utilities.formatDate(e.getEndTime(), Session.getScriptTimeZone(), 'HH:mm'),

patient: e.getTitle() || '‼ Missing name',

treatment: extractField(e, "Treatment"),

bk: extractField(e, "BK"),

kp: extractField(e, "KP"),

debt: extractField(e, "Debt"),

note: extractField(e, "Note")

};

if (e.getColor() === "9") {

specialColorData1.push(rec);

} else if (e.getColor() === "5") {

specialColorData2.push(rec);

} else {

if (!grouped[name]) grouped[name] = [];

grouped[name].push(rec);

}

});

}

var mainData = [];

for (var name in grouped) {

mainData.push({ provider: name, rows: grouped[name] });

}

var template = HtmlService.createTemplateFromFile("pdf_template");

template.title = docTitle + " – " + dateStr;

template.mainData = mainData;

template.specialColorData1 = specialColorData1;

template.specialColorData2 = specialColorData2;

return template.evaluate().getContent();

}

function exportHTMLToPDF(docTitle, html) {

var blob = Utilities.newBlob(html, 'text/html', docTitle + ".html").getAs('application/pdf');

var folderIter = DriveApp.getFoldersByName('Reports');

var folder = folderIter.hasNext() ? folderIter.next() : DriveApp.createFolder('Reports');

var pdfFile = folder.createFile(blob).setName(docTitle);

return pdfFile;

}

function generateDailyReport() {

var today = new Date(); if (today.getDay() === 0) return;

today.setHours(0,0,0,0);

var tomorrow = new Date(today); tomorrow.setDate(today.getDate()+1);

var docTitle = "Appointments Today - " + Utilities.formatDate(today, Session.getScriptTimeZone(), 'yyyy-MM-dd');

var html = generateHTMLReport("Appointments Today", today, tomorrow);

var pdfFile = exportHTMLToPDF(docTitle, html);

MailApp.sendEmail({

to: '[email protected]', subject: pdfFile.getName(),

body: 'Please find attached today\'s appointment report.', attachments:[pdfFile]

});

}

function generateTomorrowReport() {

var tomorrow = new Date(); if (tomorrow.getDay() === 6) return;

tomorrow.setDate(tomorrow.getDate()+1); tomorrow.setHours(0,0,0,0);

var nextDay = new Date(tomorrow); nextDay.setDate(tomorrow.getDate()+1);

var docTitle = "Appointments Tomorrow - " + Utilities.formatDate(tomorrow, Session.getScriptTimeZone(), 'yyyy-MM-dd');

var html = generateHTMLReport("Appointments Tomorrow", tomorrow, nextDay);

var pdfFile = exportHTMLToPDF(docTitle, html);

MailApp.sendEmail({

to: '[email protected]', subject: pdfFile.getName(),

body: 'Please find attached tomorrow\'s appointment report.', attachments:[pdfFile]

});

}

function createMorningTrigger() {

ScriptApp.newTrigger('generateDailyReport')

.timeBased().everyDays(1).atHour(6).nearMinute(55).create();

}

function createEveningTrigger() {

ScriptApp.newTrigger('generateTomorrowReport')

.timeBased().everyDays(1).atHour(17).nearMinute(0).create();

}

function extractField(event, label) {

var desc = event.getDescription() || "";

var m = desc.match(new RegExp(label + '\\s*:\\s*([^;\\n]+)'));

return m ? m[1].trim() : '';

}

function customReportForDate(dateString) {

var date = new Date(dateString); date.setHours(0,0,0,0);

var next = new Date(date); next.setDate(date.getDate() + 1);

var title = "Appointments Report - " + Utilities.formatDate(date, Session.getScriptTimeZone(), 'yyyy-MM-dd');

var html = generateHTMLReport(title, date, next);

var pdf = exportHTMLToPDF(title, html);

MailApp.sendEmail({

to: '[email protected]', subject: pdf.getName(),

body: 'Custom report attached.', attachments:[pdf]

});

}

PDF_TEMPLATE.HTML:

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<style> @page { size: A4 landscape; margin: 9mm; } @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); body { font-family: 'Roboto', sans-serif; font-size: 9pt; line-height: 1.2; margin: 10mm; zoom: 0.8; } h1 { font-size: 9pt; margin-bottom: 10px; } h2 { font-size: 9pt; margin-top: 20px; margin-bottom: 5px; } table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 10px; page-break-inside: avoid; } th, td { border: 1px solid #888; padding: 6px; text-align: left; overflow-wrap: break-word; word-wrap: break-word; min-height: 24px; page-break-inside: avoid; } tr { height: 24px; } td { vertical-align: top; } th { background-color: #f0f0f0; } th:nth-child(2), td:nth-child(2), th:nth-child(7), td:nth-child(7) { width: 150px; } th:not(:nth-child(2)):not(:nth-child(7)), td:not(:nth-child(2)):not(:nth-child(7)) { width: 75px; } td:last-child { max-height: 3em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } </style>

</head>

<body>

<h1><?= title ?></h1>

<? if (mainData.length) { ?>

<? for (var i = 0; i < mainData.length; i++) { var block = mainData\[i\]; ?>

<h2><?= block.provider ?></h2>

<table>

<thead>

<tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr>

</thead>

<tbody>

<? for (var j = 0; j < block.rows.length; j++) { var row = block.rows\[j\]; ?>

<tr>

<td><?= row.time ?></td>

<td><?= row.patient ?></td>

<td><?= row.treatment ?></td>

<td><?= row.bk ?></td>

<td><?= [row.kp](http://row.kp) ?></td>

<td><?= row.debt ?></td>

<td><?= row.note ?></td>

</tr>

<? } ?>

</tbody>

</table>

<? if (block.rows.length) { ?>

<div style="page-break-inside: avoid; margin-top:10px;">

<table>

<thead>

<tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr>

</thead>

<tbody>

<? for (var x = 0; x < 4; x++) { ?>

<tr><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td></tr>

<? } ?>

</tbody>

</table>

</div>

<? } ?>

<? } ?>

<? } ?>

<? if (specialColorData1.length) { ?>

<div style="page-break-before: always;"></div>

<h1>Special Category 1</h1>

<table>

<thead>

<tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr>

</thead>

<tbody>

<? for (var k = 0; k < specialColorData1.length; k++) { var row = specialColorData1\[k\]; ?>

<tr>

<td><?= row.time ?></td>

<td><?= row.patient ?></td>

<td><?= row.treatment ?></td>

<td><?= row.bk ?></td>

<td><?= [row.kp](http://row.kp) ?></td>

<td><?= row.debt ?></td>

<td><?= row.note ?></td>

</tr>

<? } ?>

</tbody>

</table>

<table>

<thead><tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr></thead>

<tbody>

<? for (var x = 0; x < 4; x++) { ?>

<tr><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td></tr>

<? } ?>

</tbody>

</table>

<? } ?>

<? if (specialColorData2.length) { ?>

<div style="page-break-before: always;"></div>

<h1>Special Category 2</h1>

<table>

<thead>

<tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr>

</thead>

<tbody>

<? for (var b = 0; b < specialColorData2.length; b++) { var row = specialColorData2\[b\]; ?>

<tr>

<td><?= row.time ?></td>

<td><?= row.patient ?></td>

<td><?= row.treatment ?></td>

<td><?= row.bk ?></td>

<td><?= [row.kp](http://row.kp) ?></td>

<td><?= row.debt ?></td>

<td><?= row.note ?></td>

</tr>

<? } ?>

</tbody>

</table>

<table>

<thead><tr><th>Time</th><th>Client</th><th>Treatment</th><th>Field A</th><th>Field B</th><th>Debt</th><th>Note</th></tr></thead>

<tbody>

<? for (var x = 0; x < 4; x++) { ?>

<tr><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td><td>\&nbsp;</td></tr>

<? } ?>

</tbody>

</table>

<? } ?>

</body>

</html>


r/GoogleAppsScript • • Jun 21 '25

Question What are you currently building with appscript?

Thumbnail
skillsverification.co.uk
12 Upvotes

I've used appscript to build a bunch of small tools. And I've been curious what kind of webapps others are building, use cases and how you're handing scalability. I recently created a free SQL Practice platform entirely with Apps Script (both front end and backend). Just wanted to share and see what others are building too.


r/GoogleAppsScript • • Sep 03 '24

Guide Building an Interactive XY Image Plot with Google Apps Script and Leaflet.js

12 Upvotes

Hey Apps Script Devs! I just wanted to share a quick tutorial I wrote on using Leaflet.js in an Apps Script web app. I made a simple CRUD app to display markers from a spreadsheet, with a custom background image. This could be used for building floor plans, job site inspections, or even a game!

You can check out the full tutorial here:
https://blog.greenflux.us/building-an-interactive-xy-image-plot-with-google-apps-script-and-leafletjs

This was just a fun experiment to see how far I could get. There's a lot more you could do, like loading images from Google Drive based on a url parameter, or exporting an image of the map to send in an email. Got an idea for a use case? Drop a comment below, and feel free to reach out if you need help!


r/GoogleAppsScript • • May 12 '24

Guide Collection of Apps Scripts Functions & Web Apps (GitHub Repo)

12 Upvotes

Hey, I’m Joseph, founder at GreenFlux, LLC and Senior Developer Advocate at Appsmith. I worked full-time as a freelance developer for nearly a decade, and over the years I posted a lot of Apps Script tutorials on my blog, various forums, and this sub-reddit.

I wanted to consolidate the sources and make them easier to share, so I just created this GitHub repo:

https://github.com/GreenFluxLLC/google-apps-script-utils

Feel free to copy, modify, and use however you want. I chose The Unlicense License, so there are no business restrictions.


r/GoogleAppsScript • • Apr 17 '24

Question How to automate and fill out google forms while being AFK

12 Upvotes

Is there way to fill out a google form over and over again almost every minute without touching it or being near your computer. Maybe a software or something or possibly just a command that records your mouse clicks and the copies it over and over again. I just need something that continuously fills out a google form when I am away from the computer.


r/GoogleAppsScript • • Aug 07 '23

Question How to run Google Colab notebook through appscript

12 Upvotes

I am working on a project where a user submits a spreadsheet, the spreadsheet is processed into a report, and the report is emailed to the user.

I’ve set up a Google Form that lets a user submit a file that is sent to a drive folder. I have also written a Colab notebook that can pull a file from Google drive and manipulate it. I have a decent understanding of how to automatically send an email with appscript, although I haven’t written any code to do so yet.

How can I make these components work together? I know I can trigger the appscript to run when a file is uploaded to the drive folder, but from there I don’t know how to interact with my Colab code.

Any insight helps, and if there is a more appropriate sub for me to ask this question please let me know.


r/GoogleAppsScript • • Jul 20 '23

Question Help - where to start learning process?

12 Upvotes

Hey,

I'm an accountant whose really good at complex functions in sheets & excel. I see a huge benefit from learning Google App Script in my work, but I have no idea where to even start. Ideally I'd love to learn to pull data from outside sources to bring into my sheets. My work will pay for me to learn this, and I understand it'll take a long time.

My question here is, where do I even begin? Do you have any good suggestions of courses I could take?

Much appreciated!


r/GoogleAppsScript • • Apr 21 '23

Guide Saving Bookmarks in Google Sheets with a bookmarklet

12 Upvotes

I created a "Bookmarker" bookmarklet that lets you add the current page you're on to a sheet in Google Sheets - https://mvark.blogspot.com/2021/05/bookmarker-bookmarklet.html

This way you have a centralized place of your own to view bookmarklets, add notes and download the list when required.

Please try it out and let me know if it can be improved.


r/GoogleAppsScript • • Dec 25 '22

Question Interested in learn how other companies have used Google Apps Script

12 Upvotes

For people at companies where spreadsheets or workflows with Google App Script were used by more than 1 person:

  • who set up the sheets/workflows with Google App Script

  • what was the use case?

I can share my experience. In my startup, the Operations Team was sending out project assignments to multiple people 1-1 manually via Slack DMs. This was insane after we got to a certain volume of projects and people to contact. So we built a workflow in Google Sheets to specify what project to send to which people via Slack, and submit these all at once. There weren't any Engineers who were willing to help us automate this workflow, so were extremely lucky that someone on our team self-taught themselves Google Appscript.


r/GoogleAppsScript • • Sep 27 '22

Question Careers

12 Upvotes

Does anyone here make a living with Google Apps script? I have always loved Apps script and would love to make money with it but I’d t know where to start. Does anyone have advice?


r/GoogleAppsScript • • Jun 27 '22

Resolved Leverage your Apps Script skills in the Coda Packathon and compete for $20K in prizes

12 Upvotes

[Disclaimer: I work for Coda. I also worked at Google for years on Apps Script.]

In my opinion Apps Script is a somewhat undervalued skill. So much of the world runs on spreadsheets, and many of those sheets are glued together using Apps Script. Well the good news is that your Apps Script skills are the perfect fit for a virtual hackathon running now: the Coda Packathon.

Coda is a new kind of doc, built for teams, sort of like a cross between Sheets, Docs, and Sites. Instead of a scripting language Coda includes Packs, a simple plugin mechanism that lets you enhance the core features of the doc. We just launched the platform publicly last week, and to celebrate we're running a six-week virtual hackathon to see who can build the best Packs.

Writing a Pack is a lot like writing an Apps Script:

  1. You can create a Pack from start to finish in your browser (use pack.new)

  2. Packs are written using JavaScript (technically TypeScript, but you don't need to use types)

  3. Packs can be used to add a custom formula, sync data into a table, update a record in an API.

You can learn more about the Packathon and register here: coda.devpost.com.

We'll also be hosting a webinar tomorrow (2022-06-28) to teach folks about the basics of Coda and how to create a Pack. If you want to join us, sign up here.


r/GoogleAppsScript • • Jun 08 '22

Question I have no prior knowledge of coding. Can I learn Google App Script?

12 Upvotes

r/GoogleAppsScript • • Dec 07 '20

Question New Google App Script IDE

12 Upvotes

Looks like Google is rolling out a new app script IDE. Have you had it roll out to you yet?

https://developers.google.com/apps-script/releases