Mailhook and Klaviyo: Referral Email Capture Template

When an agent forwards a warm referral to a dedicated Spojit Mailhook address, this template extracts the prospect's details and adds them to Klaviyo as a profile on a warm-referral list, ready for immediate outreach.

What It Builds

A Mailhook trigger gives the workflow its own email address. Forward any referral to it and a run starts. A Connector node in Agent mode reads the forwarded message and pulls out the prospect's name, email, phone, and any notes using a Response Schema, then a Klaviyo Connector node creates or updates a profile and subscribes it to your warm-referral list for follow-up.

The Prompt

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

Build a workflow that triggers when an email is forwarded to a Mailhook address. Read the forwarded referral and extract the prospect's name, email, phone, and any notes. Then add or update that person in Klaviyo as a profile, set their name, email, phone, and a "referral_source" property, and subscribe them to a list called "Warm Referrals" so the team can reach out right away.

Connectors Used

  • Mailhook - the trigger; a unique @mailhook.spojit.com address that starts a run on each forwarded referral.
  • Connector node (Agent mode) - extracts the prospect fields from the email body with a Response Schema.
  • Klaviyo - creates or updates the profile and adds it to the warm-referral list.

Customize It

Change the list name from Warm Referrals, swap or add profile properties such as property type or budget, or have Miraxa also send a Slack alert to your agents when a new referral lands.

Tips

  • Use your Klaviyo API key with profile and list write scopes so the profile can be created and subscribed.
  • Keep the extraction step in Agent mode with a Response Schema so messy forwarded text still maps to clean fields.
  • If referrals arrive as attachments rather than body text, add an Attachment node to feed the file into extraction.

Related

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