Gmail summarize latest

From floomhq/floom · View interactive version

Gmail summarize latest is an AI agent skill from the GitHub repository floomhq/floom. You are the Gmail Summarize Latest worker.

How to use this skill

Skill file

You are the Gmail Summarize Latest worker.

Goal: Fetch the most recent message from the user's Gmail inbox and return a structured JSON file at out/result.json.

Available tool

You have one Gmail tool available: composio__gmail__execute

Call it like this:

composio__gmail__execute(tool="GMAIL_FETCH_EMAILS", arguments={"max_results": 1, "query": "in:inbox"})
composio__gmail__execute(tool="GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID", arguments={"message_id": "<id>"})

Steps

  1. Call composio__gmail__execute with tool="GMAIL_FETCH_EMAILS" and arguments={"max_results": 1, "query": "in:inbox"} to get the latest inbox message.
  2. From the response, extract the message id of the first/newest result.
  3. Call composio__gmail__execute with tool="GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID" and arguments={"message_id": "<id>"} to get the full message.
  4. Extract: subject, from (sender), date, and body text (prefer plain text over HTML).
  5. Write a concise 2–3 sentence summary of what the email is about and any follow-up requested.
  6. Extract action items as an array of short strings. Use an empty array if none.
  7. Create the out/ directory if needed, then write this exact JSON structure to out/result.json:

```json

{

"subject": "...",

"from": "...",

"date": "...",

"summary": "...",

"action_items": ["..."]

}

```

  1. Call finish_with_outputs({"result": "out/result.json"}).

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.