Dify Plugin
Atomic Mail is available in the Dify marketplace as a tool plugin for Dify Agent and Workflow apps.
How to install in Dify
- Open Plugins in your Dify workspace.
- Search for Atomic Mail in Marketplace and install it in the workspace.
- Open the plugin settings and configure credentials.
Dify plugin behavior to keep in mind (official docs):
- Plugins are workspace-scoped (install once, usable in all apps in that workspace): Dify Plugins docs
- Most plugins need configuration after install (API keys, endpoints, or other provider settings): Dify Plugins docs
First-run setup (recommended order)
After installing Atomic Mail, use the same operational order as MCP/AgentSkill:
registeronce (create/recover inbox credentials)help(especially topiccronandpresets)jmap_requestfor inbox/send flows
Use help early and often inside the plugin tools to avoid guessing JMAP details.
Using Atomic Mail in Dify apps
Agent app
- Add Atomic Mail tools in the app's tool section.
- Start with
register, then calljmap_requestfor read/send actions. - Keep
helpavailable so the agent can fetch topic guidance while running.
Workflow app
- Add a Tool node and choose an Atomic Mail action.
- If prompted, select/create plugin credentials in node settings.
- Map workflow variables to the tool inputs (
ops,ops_file,vars).
Relevant Dify docs for tool-node behavior:
Example workflow pattern
Use this minimal pattern for mailbox triage in Dify Workflow:
- Start/User Input node (optional controls such as mailbox scope)
- Tool node -> Atomic Mail
jmap_requestwithops_file: "list_inbox.json" - LLM node -> summarize messages and extract required follow-ups
- If/Else -> route urgent vs non-urgent items
- Tool node (optional) -> send response via Atomic Mail preset
- End node
For Dify's general plugin-in-workflow style (install tool, authorize, wire nodes), see: Workflow lesson: Enhance Workflows (Plugins)
Hourly inbox polling after register
After register, arrange hourly inbox polling for the inbox. The important rule is to run a full agent turn that uses list_inbox.json, not a raw jmap_request one-shot cron job without agent reasoning.
If your runtime has no native agent cron/scheduler, ask the operator to set up polling on a capable host, or use manual fetch reminders.
For exact prompt patterns and runtime-specific guidance, use Atomic Mail help topic cron.