Read and extract from email
First, let’s get AI to read an email and pull out the key information.- Gemini CLI + Voice
- Direct gws Commands
Make sure Gemini CLI is running in your terminal. Then say (with Wispr Flow) or type:Gemini CLI will use the Gmail tools to fetch your emails, find the relevant message, and give you a structured summary.
Say this or copy this prompt
From: Alex Kim (alex.kim@company.com) Subject: Invoice #4821 — follow-up needed by Friday Summary: Alex is asking you to review invoice #4821 from the design contractor. The amount is $2,400. He needs your approval before Friday so finance can process the payment before month-end. Action needed: Review and approve invoice #4821 by Friday.
Create a calendar event from the email
Now let’s turn that email into a calendar event — a follow-up reminder so you don’t forget.- Gemini CLI + Voice
- Direct gws Commands
Say or type:Gemini CLI will create the event on your Google Calendar. You should see a confirmation with the event details.
Say this or copy this prompt
Event created: “Follow up: Invoice review” When: Thursday, 26 March 2026, 2:00 PM - 2:30 PM Calendar: Primary
You just went from reading an email to scheduling a follow-up — without opening your browser. The AI understood the context from the email and created the event for you. This is what cross-app workflows look like.
Write a summary to Google Docs
Next, let’s capture the important details in a Google Doc — so you have a written record.- Gemini CLI + Voice
- Direct gws Commands
Say or type:Gemini CLI will create a new document in your Google Drive and write the summary into it.
Say this or copy this prompt
Document created: “Invoice Follow-up Notes” Content written: Summary of invoice email with key details and next steps. Location: Google Drive (My Drive)
Upload a file to Google Drive (bonus)
You can also upload files from your computer to Google Drive — useful for attaching reports or documents to your workflow.- Gemini CLI + Voice
- Direct gws Commands
Say or type:Gemini CLI will upload the file and confirm when it’s done.
Say this or copy this prompt
No file to upload? That’s fine — skip this step. It’s here to show you what’s possible. You can always come back and try it later with any file on your computer.
The complete workflow in one prompt
Here’s where it all comes together. Instead of doing each step separately, give AI one instruction that triggers actions across three Google apps:- Gemini CLI + Voice
- Direct gws Commands
Say or type:Gemini CLI will read the email, create the calendar event, write the doc, and report back — all from one prompt.
Say this or copy this prompt
This is the real power — one natural language instruction triggers actions across three Google apps. You didn’t write code. You didn’t open any websites. You told AI what you needed, and it handled Gmail, Calendar, and Docs for you.
What just happened?
Let’s recap what you did:- Read an email — AI fetched it from Gmail and extracted the key details
- Created a calendar event — a follow-up reminder based on the email content
- Wrote a Google Doc — a summary with next steps for your records
- Uploaded a file to Google Drive (bonus step)
- Combined all three actions into a single natural language prompt
Troubleshooting
Calendar event not created
Calendar event not created
Make sure your Google Calendar access is authorised. Run
gws calendar +agenda to check — if it shows your events, the connection is working. If not, run gws auth login -s gmail,calendar,drive,docs,sheets to re-authorise. Also check that you gave Gemini CLI permission when it asked (type y and press Enter).Google Doc not found
Google Doc not found
The document is created in your Google Drive. Open drive.google.com and search for the document title. If it’s not there, the Docs API may not be enabled — run
gws auth setup to check and enable all required APIs.Permission errors
Permission errors
Your Google authorisation may have expired or may not include all the required scopes. Exit Gemini CLI and run:Make sure to select all permission checkboxes when the browser window opens. Then restart Gemini CLI.
Gemini can't find the email
Gemini can't find the email
Try being more specific in your prompt. Instead of “the most recent email about an invoice”, try “the email from Alex about invoice 4821” or “emails from this week with the word invoice in the subject line”. If your inbox is empty or has no matching emails, Gemini will tell you — try a different topic.
The AI only does one action instead of all three
The AI only does one action instead of all three
Some prompts may be too complex for a single pass. Break it into two prompts: first ask AI to read and summarise the email, then ask it to create the calendar event and write the doc based on that summary. This gives AI clearer context for each step.
My voice input has errors
My voice input has errors
Wispr Flow may occasionally mishear technical terms or proper nouns. You can review and correct the text in Gemini CLI before pressing Enter. If voice input is causing too many errors, switch to typing or pasting prompts instead.
Nice work — you’ve built a cross-app workflow that turns emails into real actions. Head to Keep going for daily habit ideas and more advanced prompts.