dingtalk-mail

Automate enterprise email workflows inside the DingTalk workspace CLI.

2.7k|181|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli --skill dingtalk-mail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dingtalk-mail
Source: https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli/tree/main/skills/multi/dingtalk-mail
Command: npx skills add https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli --skill dingtalk-mail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Automates enterprise email tasks inside the DingTalk Workspace CLI, reducing manual steps and context switching for busy teams.

Core Features & Use Cases

  • Manage searches, reads, and sends across mailboxes with support for replies, forwards, and drafts
  • Attach files and inline images to messages, including handling of attachments and inline content in a safe, auditable workflow
  • Use case: a teammate needs to find a specific email, reply with context, and attach a document without leaving the terminal

Quick Start

Ask the AI to compose and send a mail from my corporate mailbox to a colleague with a subject and body.

Frequently Asked Questions about dingtalk-mail

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate enterprise email workflows from the command line?

You can automate enterprise email workflows by using a CLI tool that searches, reads, composes, replies, and forwards messages. It operates inside the DingTalk workspace to manage drafts, folders, and unread mail without manual context switching.

Can I search and filter corporate mailbox messages using KQL syntax?

Yes, you can search and filter corporate mailbox messages using KQL syntax. The CLI tool executes KQL queries to locate specific emails across folders, enabling precise retrieval of unread mail and targeted conversation threads.

How do I attach files and inline images to emails via a terminal interface?

You attach files and inline images to emails via a terminal interface by using explicit flags during composition. This enforces safe file uploads and ensures attachments are handled in a secure, auditable workflow directly from the CLI.

What is the best way to resolve recipient addresses when composing mail from a CLI?

The best way to resolve recipient addresses when composing mail from a CLI is to follow the mailbox list flow. This mechanism automatically resolves target contacts within the enterprise directory to ensure accurate message delivery.

Does the DingTalk workspace CLI support managing email drafts and folders?

Yes, the DingTalk workspace CLI supports managing email drafts and folders. You can programmatically save, retrieve, and organize draft messages, as well as move or categorize received mail across various enterprise mailbox directories.

Are there limitations when handling email attachments in an automated enterprise workflow?

When handling email attachments in an automated enterprise workflow, you must use explicit flags to enforce safe file uploads. This constraint prevents unintended file executions and ensures all inline content and attachments are managed securely.