Mailhook, Knowledge and Slack: Document Summary Alert Template
When a document is emailed to your Mailhook address, this Spojit template summarizes it and posts the summary to a Slack channel so your team sees new docs the moment they land.
What It Builds
A Mailhook trigger gives the workflow its own inbound email address. When a document arrives as an attachment, an Attachment node fetches the file bytes, a Knowledge node embeds and queries it in a single Transient run to produce a plain-language summary, and a Slack Direct-mode node posts that summary into a channel. No one has to open the file to know what just came in.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow with a Mailhook trigger. When a document is emailed to it, fetch the attachment, summarize the document in a few sentences, and post the summary to the #documents Slack channel along with the sender and the email subject.
Connectors Used
- Mailhook - the trigger; mail sent to the workflow's address starts each run.
- Knowledge - summarizes the document via a Transient embed-and-query (no saved collection).
- Slack - posts the finished summary to a channel in Direct mode.
Customize It
Change #documents to the channel your team watches, and adjust the summary length or focus (for example, "list any due dates and dollar amounts"). You can also have the prompt include the file name or only post when the subject contains a keyword.
Tips
- The Attachment node is Mailhook-only; it feeds the document bytes straight into the Knowledge node.
- Transient mode keeps it lightweight: the doc is embedded, queried, and discarded in one run.
- Knowledge handles OCR and many file types, so scanned PDFs summarize too.