Trigger Email

When an automation is started by an incoming email, the entire email plus any files attached to it, is available as the _z.data object of the process blocks

// _z.data for an automatino with email trigger

{
  "id": "c79h9txfx1bvn91jhneiuwfox",
  "object": "message",
  "subject": "Greetings of the day",
  "from": [
    {
      "name": "Max Meier",
      "email": "max_meier@gmail.com"
    }
  ],
  "reply_to": [],
  "to": [
    {
      "name": "Susanne Mustermann",
      "email": "zoolo_docs@gmail.com"
    }
  ],
  "cc": [],
  "bcc": [],
  "date": 1642673325,
  "thread_id": "3f5qpss2zkv39hfuvarkqtech",
  "snippet": "Dear Maddame or Sir, please find the email text as a String here withouth html tags",
  "body": "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"format-detection ... this is the html email body"
  "files": [
			{
				"_id": "123224",
				"name": "hellow_world.txt"
				"Location": "{FileLocation in zoolo storage}",
				"Signed": "{Download Link},
        "size": 3000,
        "contentType": "text"
			}
	],
  "events": [],
  "labels": [
    {
      "id": "75hr53o4kuhclm6epl9179uo6",
      "name": "inbox",
      "display_name": "Inbox"
    }
  ]
}

Last updated