AI recipes
Let AI draft Gmail replies to new emails with Duaer
In Duaer, each new email goes to a model that writes a reply, saved as a Gmail draft in the same thread. You review and send; the AI never sends for you.
Build the reply draft flow in Duaer
- Add Gmail Trigger polling every minute, Simplify off for the body, filtered to unread.
- Optionally add If to skip noreply and notification senders.
- Add Basic LLM Chain with Duaer Chat Model on Chat Model. Prompt: Write a short, polite reply draft. Output only the body. Original email: {{ $json.text }}.
- Add Gmail with Resource Draft and Operation Create. Subject: Re: {{ $('Gmail Trigger').item.json.subject }}; Message: {{ $json.text }}.
- Under Options add Thread ID {{ $('Gmail Trigger').item.json.threadId }} and To Email {{ $('Gmail Trigger').item.json.from.value[0].address }} so the draft sits in the original thread.
- Publish the digital organization.
Make Duaer drafts sound like you
- State your role, tone, and what not to promise in the prompt, such as Do not promise refunds; hand off to a person.
- To look up orders or calendars, swap Basic LLM Chain for an AI Agent with the matching tools.
Questions
Does Duaer send the reply for me?
No. This Duaer flow only creates Gmail drafts; you decide whether to send.
Why is the Duaer draft not in the original thread?
Add Thread ID under Options on the Duaer Gmail draft node, using threadId from the trigger.
In this section
Send 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.
NodesPick 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.
Office tasksSummarize new emails and list to-dos automatically with Duaer
In Duaer, each new email goes to the email summary employee, which returns a short summary, to-dos, and tone, then posts them to WeCom, Slack, or email.
ErrorsFix Google invalid_grant and 7-day token expiry in Duaer
When a Gmail, Google Sheets, or Google Drive credential in Duaer fails with invalid_grant after a few days, the Google app is usually still in Testing. Publish it and reconnect.