@flowmail/openclaw-flowmail
v0.1.0
Published
FlowMail — turn business email into persistent workflows for OpenClaw
Maintainers
Readme
FlowMail
FlowMail is a local-first OpenClaw plugin that turns business email into persistent workflows.
It uses:
gogas the Gmail adapter- a local JSON store for persistent state
- lightweight business case packs
- OpenClaw tools for sync, query, and case actions
Install from a local folder
openclaw plugins install ./packages/openclaw-flowmailFor a dev link instead of a copy:
openclaw plugins install -l ./packages/openclaw-flowmailRestart the Gateway afterwards.
Requirements
gogavailable on the Gateway hostPATH- a working Gmail account already usable from
gog
Configure
Add this under plugins.entries.openclaw-flowmail in ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"openclaw-flowmail": {
"enabled": true,
"config": {
"gmailAccount": "[email protected]",
"casePackId": "external_trade_order",
"syncQuery": "newer_than:30d -category:promotions -category:social -category:forums -category:updates",
"maxThreads": 25,
"pollIntervalMinutes": 10,
"autoPoll": true
}
}
}
}
}gog command templates
The plugin shells out to configurable command templates so you can adapt it to the exact gog syntax you use.
Available template variables:
{{gmailAccount}}{{syncQuery}}{{maxThreads}}{{threadId}}{{gogPath}}
Defaults:
- list:
gog gmail search --account "{{gmailAccount}}" --query "{{syncQuery}}" --limit {{maxThreads}} --json
- thread detail:
gog gmail get "{{threadId}}" --account "{{gmailAccount}}" --json
If your local gog build differs, override those two templates in plugin config.
Tools
This plugin registers these tools:
flowmail_statusflowmail_syncflowmail_list_casesflowmail_get_caseflowmail_list_stuck_casesflowmail_list_missing_documentsflowmail_mark_handledflowmail_defer_caseflowmail_dismiss_caseflowmail_draft_reply
Current workflow packs
external_trade_ordersaas_revenue_order
Notes
- This MVP uses local JSON persistence instead of SQLite to keep install friction low.
gogis the mailbox adapter. The source of truth for case state is the plugin store, not Gmail labels.- Gmail labels can be mirrored in a later version.
