Office tasks
Summarize new emails and list to-dos automatically with Duaer
In Duaer, each new email goes to Basic LLM Chain with Duaer Chat Model, which writes a short summary and to-dos, then posts them to WeCom, Slack, or email.
Build the email summary flow in Duaer
- Add a trigger: Gmail Trigger for Gmail (turn off Simplify to get the body), or Email Trigger (IMAP) for any IMAP mailbox.
- Add Basic LLM Chain with Duaer Chat Model on Chat Model, and pick a model under Model. Set Source for Prompt (User Message) to Define below and Prompt (User Message) to: Summarize this email in one or two sentences, then list what I need to do, separated by semicolons, or none. Use only the email. From: {{ $json.from.text }} Subject: {{ $json.subject }} Body: {{ $json.text }}. Match the field names to your trigger output.
- Add a notifier: a WeCom group bot, Slack, or Send Email, with {{ $json.text }} in the message.
- Publish the workflow. Every new email is summarized from then on.
Post only urgent mail
- Before Basic LLM Chain, add Duaer Judgment with Text {{ $json.text }} and one question: Name is_urgent, Type Yes / No, Instructions: the email is urgent and needs action today.
- Duaer Judgment outputs only its verdict. Add Merge with Input 1 from the trigger and Input 2 from Duaer Judgment, Mode Combine, Combine By Position.
- Add If with the condition {{ $json.judgment.is_urgent }} is true, and wire the true output to Basic LLM Chain.
Basic LLM Chain and Duaer Judgment each run once per email at the selected model’s price in AI credits. Refer to Duaer plans and credits.
Questions
Can Duaer summarize mail from a non-Gmail mailbox?
Yes. Duaer reads any IMAP mailbox with Email Trigger (IMAP) and hands the body to Basic LLM Chain.
Does Duaer invent to-dos in the summary?
Models can make mistakes. Asking for the email only, and none when there is nothing to do, keeps that rare; still read important mail yourself.
In this section
Pick a model in Duaer Chat Model
In Duaer, Duaer Chat Model connects a model to an AI Agent or Basic LLM Chain. Whoever configures the node picks the model from a dropdown; each model shows its own AI credits.
NodesSend mail with Gmail in Duaer
In Duaer, Gmail defaults to Authentication OAuth2, Resource Message, and Operation Send. Email Type defaults to HTML. You need a gmailOAuth2 credential.
NodesStart on new mail with Email Trigger (IMAP)
In Duaer, Email Trigger (IMAP) starts the workflow when new mail arrives. Mailbox Name defaults to INBOX. Action defaults to Mark as Read. Format defaults to Simple. You need an imap credential.
NodesSend a WeCom message in Duaer
In Duaer, WeCom (企业微信) ships as the builtin duaer-nodes-wecom package. Send app messages with the WeCom Base node and a Corp ID / Agent ID / Secret credential; post to a group with a group-bot Webhook.