Mailhook and Slack: Inbound Lead Notification Template

A Spojit template that catches forwarded sales inquiry emails on a Mailhook, extracts the sender and intent with an Agent-mode Connector node, and posts a formatted lead alert to a Slack channel for fast follow-up.

What It Builds

This template starts with a Mailhook trigger that receives forwarded sales inquiry emails at a unique Spojit address. An Agent-mode Connector node reads the email body and pulls out the sender details and what the prospect is asking for, then a Slack Connector node uses send-message to post a clean lead alert into the channel where your sales team watches for new opportunities. The whole flow runs in seconds, so a forwarded inquiry turns into an actionable Slack message before anyone has a chance to refresh their inbox.

The Prompt

Paste this into Miraxa and it builds the workflow, connecting the tools for you:

Build a workflow with a Mailhook trigger that receives forwarded sales inquiry emails. Use an Agent-mode Connector node to extract the sender name, sender email, company, and a one-line summary of what the prospect wants from the email subject and body. Then post a formatted lead alert to the #sales-leads Slack channel that includes the sender name, email, company, the summary, and the reply-to address so the team can follow up.

Connectors Used

  • Mailhook trigger - generates a unique @mailhook.spojit.com address; any email forwarded to it starts a run, with the message available as {{ input }}.
  • Slack - posts the lead alert with the send-message tool into your chosen channel.
  • An Agent-mode Connector node reads the email and extracts the sender and intent into structured fields for the Slack message.

Customize It

Change #sales-leads to the Slack channel your team actually watches, and adjust which fields the agent extracts (add a budget, region, or product line) to match how you qualify leads. To only act on inquiries from a known forwarding address, add a From allowlist on the Mailhook trigger, or use a Subject regex to catch only emails whose subject marks them as a lead. You can also widen the Slack message to @mention the rep who owns that region.

Tips

  • Use a From allowlist or Subject regex on the Mailhook trigger so internal or off-topic mail does not create noise in your Slack channel.
  • Give the Slack Connector node a Response Schema on the agent step so the sender, email, company, and summary always come back as the same fields, keeping the Slack message format consistent.
  • Slack send-message works in Direct mode once the message is assembled, which avoids spending AI credits on the posting step; reserve Agent mode for the extraction.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.