跳到主要内容
哒哒星球DADA PLANET

Skill · 已公开版本

gws-workflow-email-to-task · Gmail 邮件转 Google Tasks 任务

通过 gws 命令行把指定 Gmail 邮件转换为 Google Tasks 任务,以邮件主题作为任务标题、摘要作为备注,可指定任务列表。

先看看示例

作者提供的示例,实际效果取决于你的输入和使用工具。

输入

执行 gws workflow +email-to-task --message-id MSG_ID --tasklist LIST_ID,把客户询价邮件转为待办任务。

输出

预期交付:在指定任务列表中新建一条任务,标题取自邮件主题,备注取自邮件摘要。(编辑说明,非实际运行结果)

方法说明

---
name: gws-workflow-email-to-task
description: "Google Workflow: Convert a Gmail message into a Google Tasks entry."
metadata:
  version: 0.22.5
  openclaw:
    category: "productivity"
    requires:
      bins:
        - gws
    cliHelp: "gws workflow +email-to-task --help"
---

# workflow +email-to-task

> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.

Convert a Gmail message into a Google Tasks entry

## Usage

```bash
gws workflow +email-to-task --message-id <ID>
```

## Flags

| Flag | Required | Default | Description |
|------|----------|---------|-------------|
| `--message-id` | ✓ | — | Gmail message ID to convert |
| `--tasklist` | — | @default | Task list ID (default: @default) |

## Examples

```bash
gws workflow +email-to-task --message-id MSG_ID
gws workflow +email-to-task --message-id MSG_ID --tasklist LIST_ID
```

## Tips

- Reads the email subject as the task title and snippet as notes.
- Creates a new task — confirm with the user before executing.

## See Also

- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth
- [gws-workflow](../gws-workflow/SKILL.md) — All cross-service productivity workflows commands