r/GoogleAppsScript • u/Miserable-Wolf2688 • Dec 16 '25
Question Daily reminder in chat
Good evening everyone, I created a script that sends a message in the chat space every morning with a reminder of the day's tasks, overdue tasks, and unread emails. In the chat space, tasks are assigned to various collaborators. I'd like the script to send a personalized message with the reminder to individual users so that each user only sees the things that concern them. Can anyone help me?
2
Upvotes
2
u/Log_In_Progress Dec 16 '25
where is this "chat"? and does your script have access to all your org users tasks, emails, etc. ?
1
u/Miserable-Wolf2688 Dec 17 '25
alla fine, non essendo un programmatore esperto, ed avendo alcuni vincoli (l'unica casella di posta da utilizzare deve essere la mia con delega, i task devono essere nello spazio cjhat condiviso tra tutti in modo che possanao essere riassegnati) ho pensato a questa soluzione:
dal mio account (quello dove delegherò la posta elettronica) creo un foglio dove con uno script scriverò tutte le email ancora da leggere e la relativa etichetta.
per ogni account (alla fine sono solo 4) creerò un altro script che leggerà quel foglio andando ad individuare le etichette di competenze, leggerà i task propri e creare un messaggio in chat che farà il promemoria di quanto scaduto, quanto previsto da oggi e quante email sono ancora da leggere di sua competenza
1
u/WicketTheQuerent Dec 16 '25
Please elaborate on the kind of help that you are looking for.
1
u/WicketTheQuerent Dec 16 '25
To manage this as an admin, you will require a service account with domain-wide delegation of authority to access the tasks assigned to each space member. This is because the Google Chat API doesn't have access to the tasks, and the Google Tasks API can only access the functions of the effective user.
The alternative is to take a decentralized approach, with each user creating a time-driven trigger that calls the function to send reminders.