r/GoogleAppsScript • u/windworshipper • Apr 17 '25
Question Chat GPT suggested Script
I hope this post is allowed. I have a pretty simple work problem (at least I thought it was simple) and I wanted to create a solution for it. Consulted Chat GPT as to how to set up an automation on my email to batch download PDF attachments from several emails and then convert the table data to excel.
Chat GPT suggested using a script. I've never used one and have no idea as to the security risks of trying to implement one. I would use a consultant to set one up for me but I don't know that I can trust some consultant either, we currently don't have IT for our extremely small business.
Is this a pretty common thing that people do to automate a process at work?
4
u/marcnotmark925 Apr 18 '25
Are you asking whether it's common for people to use scripting/software to automate work processes, or whether it's common to use chatgpt to set up the automations? The former, absolutely. The latter, mildly and increasingly so, but it can be bad to blindly trust the output if you don't already know what you're doing.
3
u/Papa_Bear_20 Apr 18 '25
I’ve never scripted anything before, but lately I’ve been using ChatGPT to help me build all kinds of tools. Right now, I’m working on a form for volunteers (I’m on the board of a local nonprofit). The script automatically creates a calendar event when a form is submitted, sends a reminder email 24 hours before their shift, and delivers a text message—either the night before or at 8 AM, depending on whether the shift is in the morning or afternoon.
It’s taken about a week, a couple of hours a day, and here’s what I’ve learned: • ChatGPT tends to write code with lots of interdependencies between functions. That’s fine when everything works, but when something breaks, it can be tricky to debug—especially if GPT loses the thread. I’ve learned to ask it to keep things modular before we start building. • Sometimes I think ChatGPT is too smart for its own good. It might miss simpler fixes while chasing more complex solutions. That’s only happened a couple of times across hundreds of errors, but still worth noting. • It can get a little lost or forgetful over time. So, whenever I feel like things are getting off track—or if I just want to be sure we’re working with the latest version—I paste the entire Apps Script code back into the chat to reset the context.
1
u/Beneficial-Law-171 Apr 18 '25
U're doing everything in Google service, it's common procedure when u first run of script, it would ask u is it agree to share your account email permission to access by script owner (which is YOU) since u said u're creating auto download email attachment something from apps script, GAS will always auto asking permission for the related action u write in your script for the first time, should be dont worry too much since u're using gmail, GAS just a part of the Google product also, if their security is weak then Google wont exist anymore in this world.
1
u/Emotional_Nail985 Apr 22 '25
There are layers of security and SSO sign ins for the sheet and scripts separately, it's safe.