Platform feature. Requires
WANIWANI_API_KEY. Works whether your MCP server is self-hosted or on Managed Hosting. About the Platform.Setup
The email client sits on the Waniwani client instance:Send an email
Render the email to HTML, then pass it with a recipient and a subject:text out and a plain-text version is built from the HTML. Pass text when you want to write that version yourself.
Send from a flow node or a tool
The request-scoped client carries the conversation’s session id, so the log row points back to the conversation that sent the email. Where you get that client depends on how the tool is built. Inside a flow node, it is thewaniwani field of the node context:
server.registerTool, get the scoped client with extractScopedClient(extra):
sessionId to override the one from the request.
Who the email comes from
Every email leaves from a shared address carrying your agent’s name, as it is set in the dashboard:replyTo to a mailbox you read:
The email log
Every accepted send appears in the dashboard under Settings > Modules > Email > Logs with its recipient, subject and status. The status starts at sent and moves to delivered, bounced or complained as the receiving server answers.send() resolves with the id of that log row.
Limits
Errors
Without an API key,send() throws before making any request. Every refusal from the platform throws WaniWaniError: its status is the HTTP status and its message starts with the code.