Compose Gmail drafts with file attachments, search emails, find uploaded files, and manage drafts
Compose Gmail drafts with optional file attachments. Locate files uploaded via Telegram, gather email details conversationally, and save drafts for review.
CRITICAL: Do NOT auto-compose. When this skill is invoked, FIRST ask what the user wants. Present these options:
📧 DynoSist — What would you like to do?
- Compose draft — Create a new Gmail draft (with or without attachments)
- Email a file — Find a recently uploaded file and draft an email with it attached
- List drafts — Show recent Gmail drafts
- Find files — Search for files on the system (e.g. recent Telegram uploads)
- Search emails — Find emails by sender, subject, date, or keywords
You can also give a direct instruction, e.g. "email the PDF I just sent to with subject Monthly Report"
Wait for the user's response before taking any action. If they give a direct instruction (e.g. "email this to [email protected]"), skip the menu and act on it.
Gather the required info conversationally. Ask for anything missing:
Before creating the draft, show a preview:
📧 Draft Preview
- To: [email protected]
- Subject: Monthly Report
- Body: (first 200 chars or full text if short)
- Attachments: report.pdf (2.1 MB)
Create this draft? (yes/no)
On confirmation, call dynosist_create_draft. Report the result:
✅ Draft saved in Gmail. Open draft Review it and hit Send when ready.
When the user says "email this file", "send the PDF I uploaded", or similar:
dynosist_find_files to locate the file. Search /tmp/ for recent files matching the description.dynosist_create_draft with the file path as an attachment.Call dynosist_list_drafts and present results as a table:
| # | Subject | To | Date |
|---|
Call dynosist_find_files with the user's search pattern. Present results:
| Filename | Size | Modified | Path |
|---|
Suggest: "Want me to draft an email with any of these files attached?"
Call dynosist_search_emails with the user's query. Gmail search supports these operators:
from:[email protected] — emails from a specific senderto:[email protected] — emails to a specific recipientsubject:invoice — emails with a word in the subjectafter:2026/02/01 / before:2026/02/28 — date rangehas:attachment — only emails with attachmentsis:unread — only unread emailslabel:important — emails with a specific labelin:inbox / in:sent — search specific mailboxesOperators can be combined: from:[email protected] subject:invoice after:2026/02/01
Present results as a numbered list:
📧 Search results for
from:[email protected]
- Subject: Monthly Report — From: John Smith [email protected] — Date: Feb 15, 2026 Preview: Here's the monthly report for January...
- ...
After showing results, suggest follow-ups: "Want me to draft a reply to any of these?"
/tmp/ for the most recently modified files and present matches.