{ "name": "Pidgeon: draft a reply and hand the thread to a person", "flow": [ { "id": 1, "module": "app#pidgeon:watchMessages", "version": 1, "parameters": { "__IMTHOOK__": null, "body": "clean" }, "mapper": {}, "metadata": { "designer": { "x": 0, "y": 0, "name": "When mail arrives" } } }, { "id": 2, "module": "app#pidgeon:createDraft", "version": 1, "parameters": { "__IMTCONN__": null }, "filter": { "name": "Clean, and not spam", "conditions": [ [ { "a": "{{1.firewall_verdict}}", "b": "clean", "o": "text:equal" }, { "a": "{{1.spam}}", "o": "boolean:equal", "b": "false" } ] ] }, "mapper": { "identity_id": "{{1.address_id}}", "in_reply_to": "{{1.message_id}}", "text": "Hello {{ifempty(1.from_name; 1.from)}},\n\nThank you for your message about “{{1.subject}}”. A person on our team will answer it today.\n" }, "metadata": { "designer": { "x": 300, "y": 0, "name": "Save a draft reply" } } }, { "id": 3, "module": "app#pidgeon:updateThread", "version": 1, "parameters": { "__IMTCONN__": null }, "mapper": { "thread_id": "{{1.thread_id}}", "owner_type": "human", "reason": "A draft reply is ready to read and send." }, "metadata": { "designer": { "x": 600, "y": 0, "name": "Hand it to a person" } } } ], "metadata": { "instant": true, "version": 1, "scenario": { "roundtrips": 1, "maxErrors": 3, "autoCommit": true, "autoCommitTriggerLast": true, "sequential": false, "confidential": false, "dataloss": false, "dlq": false, "freshVariables": false }, "designer": { "orphans": [] }, "zone": "eu1.make.com" } }