Workflow trigger

Mailhook trigger

Mailhook gives your workflow an email address at fasthook.io. Send or forward a message to that address to start one run of the active workflow, regardless of how many files are attached. You can send from any email account.

Set up and test

  1. Select Add Trigger → Mailhook. In Setup, continue with New inbound email.
  2. Open Configure and copy the Mailhook email address. Share it only with intended senders. Anyone with the address can trigger the active workflow.
  3. In the draft, open Test and select Test step to start listening. Send a representative email with a subject, body, and attachment. The draft can capture up to three messages in 15 minutes.
  4. Select Retest step and choose your message. Use its fields to configure the following steps. Then select Activate, send a fresh email, and check Run history.

Use the message in later steps

Map from.address for the sender, subject for the subject line, and text or html for the message body. For example, map the subject into a Slack message so your team can see which invoice arrived.

attachments is a list of files. Each item includes a file reference, its name, MIME type, and size. A message without attachments has an empty list. The entire incoming email, including attachment encoding, can be up to 25 MB.

To save each attachment separately, set a Loop to iterate over trigger.attachments. Inside the Loop, map the current file to Google Drive → Upload File. To save one ZIP per email, pass the whole list to Archive → Zip and upload the resulting file once.