FlowRunner
Features Pricing
Theme
Start Free

Inbound sales emails read by Morse on TEE into HubSpot

Each email to your sales inbox is read by Morse on attested secure hardware for the sender's name, company, role, request, budget and timeline, then written to HubSpot as a new or updated contact.

The prompt

Every few minutes, check our sales inbox in Gmail for new emails. Have Morse read each one on its TEE tier with zero data retention and pull out the sender's name, company, role, what they are asking for, their budget and their timeline, leaving anything the email does not say empty. Look the sender up in HubSpot by email. If they are already a contact, add the new request to their record. If not, create the contact with the extracted fields.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

If a step fails Not in HubSpot yet Code Prepare the HubSpotfields Action Create the contact Action Pull the fields outof the email Action Add the request tothe contact Action Look the senderup in HubSpot Starts the flow New email in thesales inbox

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New email in the sales inbox Checks the sales inbox in Gmail every 5 minutes for a new email.
  2. Pull the fields out of the email Morse Extract Structured Data reads the email on attested secure hardware, the TEE tier, with zero data retention, and returns the sender's name, company, role, request, budget and timeline as one object. A field the email does not state comes back empty; nothing is guessed from the email domain.
  3. Look the sender up in HubSpot Finds the contact by the sender's email address. The extracted fields are turned into HubSpot properties first, with the empty ones left out and the request, budget and timeline written into the Message property with the email's subject and date.
  4. Add the request to the contact A known contact gets the new request added. The rest of the record is left alone.
  5. Create the contact When HubSpot has no contact for the address, the lookup fails and Not in HubSpot yet takes over: the sender becomes a contact with the email, name, company, job title and request the email stated.

Before you turn it on

  • Connect your Gmail and HubSpot accounts, and enter your Morse API key from console.trymorse.ai. Every Morse call is paid from your Morse credits.
  • On the key's page in the Morse console, turn on the setting Let my settings reach the model host. Extract Structured Data sends your JSON schema as a response format, and Morse refuses the request while that setting is off.
  • Minimum Privacy is set to TEE and Zero Data Retention Only is on in Pull the fields out of the email, so the request runs only on attested secure hardware. The Privacy Veil stays off here because the job is to read the sender's name and company. The flow uses moonshotai/kimi-k3.1-pro; pick another model with a TEE tier from the list if you prefer.
  • Narrow the Gmail search in New email in the sales inbox if the mailbox gets more than sales email.