Ai un fișier cu prețuri sau o prezentare a serviciilor, și de fiecare dată când cineva scrie „vreau o ofertă”, faci același lucru: deschizi emailul, atașezi PDF-ul, scrii două rânduri, trimiți. Cinci minute de fiecare dată, de zece ori pe săptămână, înseamnă o oră pierdută pe o treabă pe care ai putea-o rezolva o singură dată.
Gmail nu are din fabrică un buton „trimite oferta automat”. Are ceva mai puternic și gratuit: Google Apps Script, un instrument care rulează cod direct în contul tău de Google și poate citi emailurile noi, poate atașa un fișier din Google Drive și poate trimite răspunsul, fără să apeși tu nimic.
Ce faci înainte să te apuci de scris cod
Încarci fișierul de ofertă în Google Drive, în format PDF. Dai clic dreapta pe el, alegi Share (Partajare) și îl faci vizibil pentru „Anyone with the link” (Oricine are linkul) — altfel scriptul nu are voie să-l citească.
Apoi copiezi ID-ul fișierului din adresa URL: porțiunea lungă de litere și cifre dintre /d/ și /view. Ai nevoie de ea la pasul următor.
Cum scrii scriptul, pas cu pas
- Deschizi script.google.com și dai clic pe New project (Proiect nou).
- Ștergi codul din casetă și lipești un script care caută emailurile noi cu cuvinte ca „ofertă” sau „preț” în subiect, cele fără etichetă „Răspuns trimis”.
- Scriptul ia ID-ul fișierului din Drive, îl atașează la un răspuns cu textul tău fix, și trimite mesajul înapoi la adresa care a scris.
- Pui eticheta „Răspuns trimis” pe emailul respectiv, ca să nu-l mai trimiți de două ori aceluiași om.
- Salvezi proiectul cu File, apoi Save (Salvare).
Nu trebuie să scrii codul de la zero — există exemple gata făcute pentru exact acest scenariu, pe care le adaptezi doar la adresa ta de Gmail, la textul răspunsului și la ID-ul fișierului din Drive.
Cum îl pui să ruleze singur
Din meniul din stânga alegi Triggers (Declanșatoare), apoi Add Trigger (Adaugă declanșator). Alegi funcția pe care ai scris-o, evenimentul „Time-driven” (După timp) și intervalul „Every 5 minutes” (La fiecare 5 minute). De acum, Gmail-ul tău verifică singur, non-stop, dacă a intrat o cerere nouă.
La prima rulare, Google îți cere permisiunea să acceseze Gmail și Drive din contul tău. E normal — scriptul e al tău, rulează doar în contul tău, nu trimite nimic altundeva.
Unde se rupe treaba asta și ce nu merită automatizat
Dacă oferta ta depinde de cantitate, oraș sau tipul clientului, un răspuns fix e greșit mai des decât ajută. Automatizarea asta e bună pentru oferta standard, aceeași pentru toată lumea — un preț fix, o listă de servicii, un catalog. Dacă tu negociezi de fiecare dată, scriptul îți trimite oferta greșită, iar asta costă mai mult decât cele cinci minute economisite.
Un exemplu real: la sitis.ro am pus exact acest tip de răspuns automat pentru cererile de ofertă pentru site-uri simple, cu preț fix. Pentru proiectele complexe, cu discuție de buget, formularul trimite direct un email către mine, fără PDF automat.
Ce faci mâine dimineață
Încarci PDF-ul cu oferta ta pe Google Drive, îi dai share public, și îți faci un cont pe script.google.com dacă nu ai deja. De acolo, scriptul de bază durează cel mult douăzeci de minute să-l pui pe picioare.
Întrebări frecvente
Trebuie să plătesc pentru Google Apps Script?
Nu, e gratuit și vine inclus în orice cont Google, inclusiv Gmail personal sau Google Workspace.
Riscă cineva să vadă fișierul meu din Drive fără voie?
Doar cei cu linkul direct, pe care îl trimite scriptul. Fișierul nu apare în căutări publice și nu e listat nicăieri.
Ce se întâmplă dacă același om scrie de două ori?
Eticheta pusă pe primul email face ca scriptul să nu mai trimită a doua oară același răspuns pentru mesajele deja etichetate, dar un email nou de la aceeași persoană primește din nou răspunsul.
You have a price sheet or a services PDF, and every time someone writes 'send me a quote', you do the same thing: open the email, attach the file, type two lines, hit send. Five minutes each time, ten times a week, adds up to an hour you could have spent on something else.
Gmail does not have a 'send offer automatically' button out of the box. It has something more flexible and free: Google Apps Script, a tool that runs code inside your own Google account and can read new emails, attach a file from Google Drive, and send the reply, without you touching anything.
What to do before writing any code
Upload your offer as a PDF to Google Drive. Right-click it, choose Share, and set it to 'Anyone with the link' — otherwise the script has no permission to read it.
Then copy the file ID from the URL: the long string of letters and numbers between /d/ and /view. You will need it in the next step.
Writing the script, step by step
- Open script.google.com and click New project.
- Delete the placeholder code and paste a script that searches for new emails with words like 'quote' or 'price' in the subject, the ones without a 'Reply sent' label.
- The script grabs the file ID from Drive, attaches it to a reply with your fixed text, and sends the message back to whoever wrote in.
- It applies the 'Reply sent' label to that email, so the same person does not get two copies.
- Save the project with File, then Save.
You do not need to write this from scratch — ready-made examples for exactly this scenario exist, and you just swap in your Gmail address, your reply text, and the Drive file ID.
Making it run on its own
From the left menu pick Triggers, then Add Trigger. Choose the function you wrote, the event type 'Time-driven', and the interval 'Every 5 minutes'. From now on, your Gmail checks by itself, around the clock, for new requests.
On the first run, Google asks permission to access Gmail and Drive in your account. That is normal — the script is yours, it only runs in your own account, it does not send anything anywhere else.
Where this breaks down, and what not to automate
If your quote depends on quantity, city, or the type of client, a fixed reply is wrong more often than it helps. This automation works well for a standard offer, the same for everyone — a fixed price, a service list, a catalog. If you negotiate every time, the script sends the wrong offer, and that costs more than the five minutes it saved.
A real example: on sitis.ro I set up exactly this kind of auto-reply for simple website quote requests with a fixed price. For complex projects that need a budget conversation, the form sends a direct email to me instead, with no automatic PDF.
What to do tomorrow morning
Upload your offer PDF to Google Drive, set it to public sharing, and create an account on script.google.com if you do not have one. From there, the basic script takes at most twenty minutes to get running.
Frequently asked
Do I have to pay for Google Apps Script?
No, it is free and comes with any Google account, whether personal Gmail or Google Workspace.
Could someone see my Drive file without permission?
Only people with the direct link the script sends. The file does not show up in public search and is not listed anywhere.
What happens if the same person writes twice?
The label added to the first email stops the script from resending on already-labeled messages, but a new email from the same person triggers the reply again.


